jinwyp / one_click_script

install latest or LTS linux kernel and enable BBR or BBR plus
MIT License
4.64k stars 1.41k forks source link

安装ss2022完后不能正常用 #230

Closed Ball727 closed 1 year ago

Ball727 commented 1 year ago

Describe the bug A clear and concise description of what the bug is. 在提出问题前请先自行排除服务器端问题和升级到最新客户端,同时也请通过搜索确认是否有人提出过相同问题。

!!! 请务必提供安装的选择的第几项 !!! !!! 请务必提供什么操作系统 和用的什么终端 !!!

Steps to reproduce the behavior:

  1. 例如选择的第2项 安装trojan

OS and Terminal: 系统环境 信息 请务必提供什么操作系统 和用的什么终端 ,还有VPS主机商

To Reproduce 复现方法

Log Info 日志信息: 请提供安装出错的信息 例如xxx

安装完成nginx 是否启动成功,域名的网站是否能正常打开,如果打不开说明nginx安装有问题,请给出nginx安装时输出日志

第七项,系统是搬瓦工vps的debian11 我发现脚本到获取xray的权限的时候报错了,但是继续进行了下去,报错显示没有找到ssxray文件夹里的xray文件,我去查看也确实没有下载到本地,最终结果导致节点不可用,查看ssxray的运行状态为运行失败,估计就是这个原因

jinwyp commented 1 year ago

1 看下 /root/shadowsocksxray/xray 是否xray下载成功 2 运行 systemctl status shadowsocksxray.service 看下是否运行

3 脚本更新了一下 修复了一个bug 可以卸载重新安装 配置文件之前多了逗号. 如果不想卸载 可以 手动编辑 vi /root/shadowsocksxray/config.json 删除 最后2行的2个逗号. 可以参考下面的3888行位置 删除2个逗号 https://github.com/jinwyp/one_click_script/commit/21a11173145b4b79fd62a7649572d481ff8d36ba#diff-4bd6e80eb4584137c721a1ed45b73de4051539bc464543e7c2c9466ae35f5d24L3888

然后保存退出后 重启 shadowsocks 运行 systemctl restart shadowsocksxray.service

Ball727 commented 1 year ago

1 看下 /root/shadowsocksxray/xray 是否运行 systemctl status shadowsocksxray.service 运行 systemctl status shadowsocksxray.service 看下是否运行

3脚本更新个个个个可以借载安装配置配置 配置文件文件了了了一一个个借号借号。。。。。。如果如果如果如果如果如果不不不不不不不不想 不 。的3888行位置删去2个逗号 21a1117 #diff-4bd6e80eb4584137c721a1ed45b73de4051539bc464543e7c2c9466ae35f5d24L3888

然后保存退出后重新启动shadowsocks 运行systemctl restart shadowsocksxray.service

image 还是这样

Ball727 commented 1 year ago

image

jinwyp commented 1 year ago

1 看看你的机器DNS问题 是否下载xray 和 github网络有问题 编辑 vi /etc/resovle.conf 查看DNS

wget https://github.com/XTLS/Xray-core/releases/download/v1.7.5/Xray-linux-64.zip 下载 xray是否能下载?

2 是否安装 unzip 运行 apt install unzip 3 选8 卸载 重装一下 看看是否无法下载

Ball727 commented 1 year ago

wget可以下载xray文件 dns image

jinwyp commented 1 year ago

那就是unzip 没有安装导致的 我已经改进了脚本 增加unzip的安装 你可以更新一下脚本卸载后重新安装

Ball727 commented 1 year ago

依旧无法授权? image

jinwyp commented 1 year ago

你安装 unzip了吗? apt install -y unzip

安装过程中 下面的链接 是否xray下载成功

https://github.com/XTLS/Xray-core/releases/download/v1.8.0/Xray-linux-64.zip

或者手动下载 wget https://github.com/XTLS/Xray-core/releases/download/v1.7.5/Xray-linux-64.zip

然后解压 把 xray 文件 放到 /root/shadowsocksxray 下面

然后添加权限, chmod +x ${configSSXrayPath}/xray

重启 systemctl restart shadowsocksxray.service 就可以了

最后实在不行就重装系统 重新运行脚本

Ball727 commented 1 year ago

运行脚本前 我按照你说的 安装了unzip 这样应该是可以了? image

jinwyp commented 1 year ago

对这样就可以了