Comments (7)
wget --no-check-certificate https://raw.githubusercontent.com/jinwyp/one_click_script/master/trojan_v2ray_install.sh && chmod +x ./trojan_v2ray_install.sh && ./trojan_v2ray_install.sh
确保你vps网络是否正常, 看看github 是否可以正常下载, 脚本我已修复了。 你安装时有没有报错
包括申请域名 ,下载github xray的文件是否报错。 不要用国内vps安装
https://github.com/XTLS/Xray-core/releases
from one_click_script.
可以确定vps网络正常,github可以正常下载,安装时候没有出错,想请问能否tg联系进一步查看?
from one_click_script.
运行脚本 选19卸载后 重新安装 把安装的信息的log 贴出来 类似下面的
==================================================
请选择安装 Trojan 或 Trojan-go ? 默认选择4 修改版Trojan-go
1 原版 Trojan 不支持 websocket (not support websocket)
2 原版 Trojan-go 支持 websocket (support websocket)
3 修改版 Trojan-go 支持 websocket by fregie (support websocket)
4 修改版 Trojan-go 支持模拟浏览器指纹 支持 websocket by Potterli20 (support websocket)
请选择哪种 Trojan ? 直接回车默认选2, 请输入纯数字:4
==================================================
Enable Websocket or not, default is Y
是否开启 Websocket 用于CDN中转, 注意原版trojan客户端不支持 Websocket
请选择是否开启 Websocket? 直接回车默认开启, 请输入[Y/n]:
versionTrojanGo: 2023.03.08
==================================================
开始安装 Trojan-go Version: 2023.03.08 !
==================================================
==================================================
Input trojan-go password prefix, default is ramdom char:
请输入 trojan-go 密码的前缀? (会生成若干随机密码和带有该前缀的密码)
请输入密码的前缀, 直接回车默认随机生成前缀:
是否自定义Trojan-go的端口号? 直接回车默认为443
是否自定义Trojan-go的端口号? 直接回车默认为443, 请输入自定义端口号[1-65535]:
输入的端口号 443 没有被占用, 继续安装...
===== 下载并解压zip文件: trojan-go-fork-linux-amd64.zip
--2023-03-08 20:39:04-- https://github.com/Potterli20/trojan-go-fork/releases/download/V2023.03.08/trojan-go-fork-linux-amd64.zip
Resolving github.com (github.com)... 140.82.114.3
Connecting to github.com (github.com)|140.82.114.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/437504501/dc52e054-b35e-492a-90e1-237d7dbbb93d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230308%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230308T123904Z&X-Amz-Expires=300&X-Amz-Signature=db45b2e02b1fafa64ab48d502b0e5d1447bb378e793e379ffbc47f9c70aa0912&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=437504501&response-content-disposition=attachment%3B%20filename%3Dtrojan-go-fork-linux-amd64.zip&response-content-type=application%2Foctet-stream [following]
--2023-03-08 20:39:04-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/437504501/dc52e054-b35e-492a-90e1-237d7dbbb93d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230308%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230308T123904Z&X-Amz-Expires=300&X-Amz-Signature=db45b2e02b1fafa64ab48d502b0e5d1447bb378e793e379ffbc47f9c70aa0912&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=437504501&response-content-disposition=attachment%3B%20filename%3Dtrojan-go-fork-linux-amd64.zip&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.110.133, 185.199.111.133, 185.199.108.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10498430 (10M) [application/octet-stream]
Saving to: '/root/temp/trojan-go-fork-linux-amd64.zip'
/root/temp/trojan-go-fork-linux-amd64.zip 100%[========================================================================================>] 10.01M 7.39MB/s in 1.4s
2023-03-08 20:39:06 (7.39 MB/s) - '/root/temp/trojan-go-fork-linux-amd64.zip' saved [10498430/10498430]
Archive: /root/temp/trojan-go-fork-linux-amd64.zip
inflating: /root/trojan-go/trojan-go-fork
inflating: /root/trojan-go/example/client.json
inflating: /root/trojan-go/example/client.yaml
inflating: /root/trojan-go/example/server.json
inflating: /root/trojan-go/example/server.yaml
inflating: /root/trojan-go/example/trojan-go.service
inflating: /root/trojan-go/example/[email protected]
inflating: /root/trojan-go/geoip-only-cn-private.dat
inflating: /root/trojan-go/geoip.dat
inflating: /root/trojan-go/geosite.dat
Created symlink /etc/systemd/system/multi-user.target.wants/trojan-go.service -> /lib/systemd/system/trojan-go.service.
======================================================================
Trojan-go Version: 2023.03.08 安装成功 !
Trojan-go 服务器端配置路径 /root/trojan-go/server.json
Trojan-go 运行日志文件路径: /root/trojan-access.log
Trojan-go 查看日志命令: journalctl -n 50 -u trojan-go.service
Trojan-go 停止命令: systemctl stop trojan-go.service 启动命令: systemctl start trojan-go.service 重启命令: systemctl restart trojan-go.service
Trojan-go 查看运行状态命令: systemctl status trojan-go.service
Trojan-go 服务器 每天会自动重启, 防止内存泄漏. 运行 crontab -l 命令 查看定时重启命令 !
======================================================================
from one_click_script.
域名和用户id 及密码做了删除处理,其余不变
net-tools is already the newest version (1.60+git20181103.0eebece-1).
socat is already the newest version (1.7.4.1-3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
grep: /etc/selinux/config: No such file or directory
Hit:1 http://ftp.debian.org/debian bullseye InRelease
Hit:2 http://security.debian.org/debian-security bullseye-security InRelease
Hit:3 https://download.docker.com/linux/debian bullseye InRelease
Hit:4 http://ftp.debian.org/debian bullseye-updates InRelease
Reading package lists... Done
是否不申请域名的证书 直接使用本VPS的IP安装? 默认直接回车为不申请证书,请输入[Y/n]:
请输入本VPS的IP 或 解析到本VPS的域名:dy6xxxxxxxx
==================================================
开始安装 V2ray or Xray
==================================================
是否使用Xray内核? 直接回车默认为V2ray内核, 请输入[y/N]:y
是否使用VLESS协议? 直接回车默认为VMess协议, 请输入[y/N]:
是否自定义xray的端口号? 如要支持cloudflare的CDN, 需要使用cloudflare支持的HTTPS端口号 例如 443 8443 2053 2083 2087 2096 端口
具体请看cloudflare官方文档 https://developers.cloudflare.com/fundamentals/get-started/network-ports
是否自定义xray的端口号? 直接回车默认为34916, 请输入自定义端口号[1-65535]:
输入的端口号 34916 没有被占用, 继续安装...
==================================================
请选择 V2ray或Xray的 StreamSettings 传输协议, 默认为3 Websocket
1. TCP
2. KCP
3. WebSocket 支持CDN
4. HTTP/2 (注意Nginx不支持HTTP/2的转发)
5. QUIC
6. gRPC 支持CDN
7. WebSocket + gRPC 支持CDN
请选择传输协议? 直接回车默认选3 Websocket, 请输入纯数字:
是否自定义xray的 WS的Path? 直接回车默认创建随机路径, 请输入自定义路径(不要输入/):
是否添加一个额外监听端口, 与主端口34916一起同时工作
一般用于 中转机无法使用443端口 使用额外端口中转给目标主机时使用
是否给xray添加额外的监听端口? 直接回车默认否, 请输入额外端口号[1-65535]:
是否自定义xray的密码? 直接回车默认创建随机密码, 请输入自定义UUID密码:
==================================================
是否屏蔽回国流量, 根据 geosite:cn 和 geoip:cn 规则判断是否回国流量
1. 屏蔽回国流量
2. 不屏蔽回国流量
3. 回国流量走 WARP IPv6 解锁
默认选1 屏蔽回国流量. 选择3 需要安装好 Wireguard 与 Cloudflare WARP, 可重新运行本脚本选择第一项安装.
推荐先安装 Wireguard 与 Cloudflare WARP 后,再安装v2ray或xray. 实际上先安装v2ray或xray, 后安装Wireguard 与 Cloudflare WARP也没问题
请输入? 直接回车默认选1, 请输入纯数字:2
==================================================
是否要解锁 Netflix HBO Disney+ 等流媒体网站
是否要解锁流媒体网站? 直接回车默认不解锁, 请输入[y/N]:
==================================================
请选择 避免弹出 Google reCAPTCHA 人机验证的方式
1. 不解锁
2. 使用 WARP Sock5 代理解锁
3. 使用 WARP IPv6 解锁 推荐使用
4. 通过转发到可解锁的v2ray或xray服务器解锁
请输入解锁选项? 直接回车默认选1 不解锁, 请输入纯数字:
==================================================
versionXray: 1.7.5
准备下载并安装 Xray Version: 1.7.5 !
===== 下载并解压zip文件: Xray-linux-64.zip
--2023-03-08 20:58:42-- https://github.com/XTLS/Xray-core/releases/download/v1.7.5/Xray-linux-64.zip
Resolving github.com (github.com)... 192.30.255.112
Connecting to github.com (github.com)|192.30.255.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/311315731/73ca257d-62d6-4432-93d0-ec5112492b18?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230308%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230308T125657Z&X-Amz-Expires=300&X-Amz-Signature=9fd642b77daf9b0ec377a45822e7976a483b1cb6a9204d619ff96f707d96fc34&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=311315731&response-content-disposition=attachment%3B%20filename%3DXray-linux-64.zip&response-content-type=application%2Foctet-stream [following]
--2023-03-08 20:58:42-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/311315731/73ca257d-62d6-4432-93d0-ec5112492b18?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230308%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230308T125657Z&X-Amz-Expires=300&X-Amz-Signature=9fd642b77daf9b0ec377a45822e7976a483b1cb6a9204d619ff96f707d96fc34&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=311315731&response-content-disposition=attachment%3B%20filename%3DXray-linux-64.zip&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12116230 (12M) [application/octet-stream]
Saving to: '/root/temp/Xray-linux-64.zip'
/root/temp/Xray-linux-64.zip 100%[============================================================>] 11.55M 70.7MB/s in 0.2s
2023-03-08 20:58:42 (70.7 MB/s) - '/root/temp/Xray-linux-64.zip' saved [12116230/12116230]
Archive: /root/temp/Xray-linux-64.zip
inflating: /root/v2ray/geosite.dat
inflating: /root/v2ray/LICENSE
inflating: /root/v2ray/geoip.dat
inflating: /root/v2ray/README.md
inflating: /root/v2ray/xray
== URL Encoded: 7d9c4495-344e-460a-a7f4-59439e5b4314
======================================================================
Xray Version: 1.7.5 安装成功 !
Xray 服务器端配置路径 /root/v2ray/config.json !
Xray 访问日志 /root/v2ray-access.log !
Xray 错误日志 /root/v2ray-error.log !
Xray 查看日志命令: journalctl -n 50 -u xray.service
Xray 停止命令: systemctl stop xray.service 启动命令: systemctl start xray.service
Xray 重启命令: systemctl restart xray.service
Xray 查看运行状态命令: systemctl status xray.service
Xray 服务器 每天会自动重启, 防止内存泄漏. 运行 crontab -l 命令 查看定时重启命令 !
======================================================================
Xray 配置信息如下, 请自行复制保存, 密码任选其一 (密码即用户ID或UUID) !!
服务器地址: dyxxxxxx 端口: 3
用户ID或密码1: 760a-a7f4-59439e5b4314
用户ID或密码2: e301cf3879-646638aa5bd5
用户ID或密码3: 9e5ec00f-26b52c564f9c7d13
用户ID或密码4: d6550bf2-7798841dc102
用户ID或密码5: 197dc002-863f5-e95bf6dfc6e6
用户ID或密码6: 0f2ee995-d737-3e0401096f
用户ID或密码7: c1406f4d-6f1401dd644592c
用户ID或密码9: da154455-17-65935bbc06fb
用户ID或密码10: 0936ee13-cf92-4f0c57a3029b
=========== Xray客户端配置参数 =============
{
协议: vmess,
地址: dy6.eu.org,
端口: 36,
uuid: 7d939e5b4314,
额外id/AlterID: 0, // AlterID, Vmess 请填0, 如果是Vless协议则不需要该项
加密方式: aes-128-gcm, // 如果是Vless协议则为none
传输协议: websocket,
websocket路径:/2baa6706,
底层传输协议: none,
别名:自己起个任意名称
}
导入链接 Vmess Base64 格式:
vmess://ewogICAgInRscyI6ICIiLAogICAgInNuaSI6ICJkeTYuamh4bHouZXUub3JnIgp9Cgo=
导入链接 Vless 格式:
======================================================================
请下载相应的 xray 客户端:
1 Windows 客户端V2rayN下载:http://dy6.jhxlz.eu.org/download/97fda90641e15cc864cf/v2ray-windows.zip
2 MacOS 客户端下载:http://dy6.jhxlz.eu.org/download/97fda90641e15cc864cf/v2ray-mac.zip
3 Android 客户端下载 https://github.com/2dust/v2rayNG/releases
4 iOS 客户端 请安装小火箭 https://shadowsockshelp.github.io/ios/
iOS 请安装小火箭另一个地址 https://lueyingpro.github.io/shadowrocket/index.html
iOS 安装小火箭遇到问题 教程 https://github.com/shadowrocketHelp/help/
全平台客户端程序汇总 https://tlanyan.pp.ua/v2ray-clients-download/
其他客户端程序请看 https://www.v2fly.org/awesome/tools.html
======================================================================
root@3:~# journalctl -n 50 -u xray.service
-- Journal begins at Thu 2021-12-30 18:13:58 CST, ends at Wed 2023-03-08 20:58:53 CST. --
Mar 08 20:23:09 3 systemd[1]: xray.service: Scheduled restart job, restart counter is at 4.
Mar 08 20:23:09 3 systemd[1]: Stopped Xray.
Mar 08 20:23:09 3 systemd[1]: Started Xray.
Mar 08 20:23:09 3 systemd[15984]: xray.service: Failed to locate executable /root/v2ray/xray: No such file or directory
Mar 08 20:23:09 3 systemd[15984]: xray.service: Failed at step EXEC spawning /root/v2ray/xray: No such file or directory
Mar 08 20:23:09 3 systemd[1]: xray.service: Main process exited, code=exited, status=203/EXEC
Mar 08 20:23:09 3 systemd[1]: xray.service: Failed with result 'exit-code'.
Mar 08 20:23:09 3 systemd[1]: xray.service: Scheduled restart job, restart counter is at 5.
Mar 08 20:23:09 3 systemd[1]: Stopped Xray.
Mar 08 20:23:09 3 systemd[1]: xray.service: Start request repeated too quickly.
Mar 08 20:23:09 3 systemd[1]: xray.service: Failed with result 'exit-code'.
Mar 08 20:23:09 3 systemd[1]: Failed to start Xray.
Mar 08 20:57:02 3 systemd[19672]: xray.service: Failed to locate executable /root/v2ray/xray: No such file or directory
Mar 08 20:57:02 3 systemd[19672]: xray.service: Failed at step EXEC spawning /root/v2ray/xray: No such file or directory
Mar 08 20:57:02 3 systemd[1]: Started Xray.
Mar 08 20:57:02 3 systemd[1]: xray.service: Main process exited, code=exited, status=203/EXEC
Mar 08 20:57:02 3 systemd[1]: xray.service: Failed with result 'exit-code'.
Mar 08 20:57:03 3 systemd[1]: xray.service: Scheduled restart job, restart counter is at 1.
Mar 08 20:57:03 3 systemd[1]: Stopped Xray.
Mar 08 20:57:03 3 systemd[1]: Started Xray.
Mar 08 20:57:03 3 systemd[19695]: xray.service: Failed to locate executable /root/v2ray/xray: No such file or directory
Mar 08 20:57:03 3 systemd[19695]: xray.service: Failed at step EXEC spawning /root/v2ray/xray: No such file or directory
Mar 08 20:57:03 3 systemd[1]: xray.service: Main process exited, code=exited, status=203/EXEC
Mar 08 20:57:03 3 systemd[1]: xray.service: Failed with result 'exit-code'.
Mar 08 20:57:03 3 systemd[1]: xray.service: Scheduled restart job, restart counter is at 2.
Mar 08 20:57:03 3 systemd[1]: Stopped Xray.
Mar 08 20:57:03 3 systemd[1]: Started Xray.
Mar 08 20:57:03 3 systemd[19696]: xray.service: Failed to locate executable /root/v2ray/xray: No such file or directory
from one_click_script.
from one_click_script.
这回已经有/root/v2ray/xray 可执行文件了啊 至于为 运行没成功 我也不清楚
查看/root/v2ray/xray的权限,
还有查看一下 /lib/systemd/system/xray.service 文件内容
运行一下命令
systemctl status xray.service
from one_click_script.
嘶,不知道为什么我刚刚访问了目录直接。/xray就直接起来了,然后就行了= =
cd v2ray
root@3:~/v2ray# ls
clientConfig.json config.json geoip.dat geosite.dat LICENSE README.md vmess_link1.json vmess_link2.json xray
root@3:~/v2ray# ./xray
Xray 1.7.5 (Xray, Penetrates Everything.) Custom (go1.20 linux/amd64)
A unified platform for anti-censorship.
2023/03/08 21:04:21 Using default config: /root/v2ray/config.json
2023/03/08 21:04:21 [Info] infra/conf/serial: Reading config: /root/v2ray/config.json
^Croot@3:~/v2ray# ls -l /root/v2ray/xray
-rwxr-xr-x 1 root root 25346048 Jan 1 08:00 /root/v2ray/xray
root@3:~/v2ray# systemctl start xray.service
root@3:~/v2ray# systemctl status xray.service
● xray.service - Xray
Loaded: loaded (/lib/systemd/system/xray.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2023-03-08 20:58:43 CST; 15min ago
Docs: https://xtls.github.io/
Main PID: 20202 (xray)
Tasks: 8 (limit: 1093)
Memory: 51.8M
CPU: 5.483s
CGroup: /system.slice/xray.service
└─20202 /root/v2ray/xray run -config /root/v2ray/config.json
Mar 08 20:58:43 3 systemd[1]: Started Xray.
Mar 08 20:58:43 3 xray[20202]: 2023/03/08 20:58:43 [Info] infra/conf/serial: Reading config: /root/v2ray/config.json
root@3:~/v2ray#
from one_click_script.
Related Issues (20)
- Debian11安装vmess后无法启动 HOT 2
- 建议写个自动获取版本号 HOT 4
- xray升级1.8.0 一键脚本无法启动xray HOT 1
- 报错/root/trojan-go/trojan-go未能创建成功 HOT 2
- 甲骨文 Ubuntu, 20.04.5, 选则2安装trojan-go脚本后,端口监听失败,无法使用 HOT 3
- 安装 Trojan 默认选项的提示不一致 HOT 1
- 安装xray的时候无法获取证书 HOT 2
- 这个脚本能不能安装锐速? HOT 2
- 安装ss2022完后不能正常用 HOT 10
- 为什么trojan、vmess等不是走443端口? HOT 2
- 甲骨文centos ubuntu安装都不正常 HOT 5
- 是否能解决Openai 1020错误? HOT 3
- how can i bypass spotify 403 error? HOT 2
- VLess-gRPC-TLS生成的vless链接多了一个“/” HOT 3
- 最新版本生成的vless链接用acl4ssr转换为clash订阅不正确 HOT 3
- bug HOT 3
- Connection Bug in Telegram. HOT 5
- v2board 1.7.4 新增协议
- Is there a pure English version of this Script
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from one_click_script.