Comments (6)
iptables -F
不一定有用,我尝试了下发现原因是 nginx 不能正常启动。因此,假如你不是在全新的 vps 上第一次使用该脚本,可以先看下 nginx 是否启动报错了。
我的话是因为之前已经运行过脚本并且安装了 nginx,再次启动脚本的时候 nginx 使用了旧的证书路径,导致无法正常启动 (cannot load certificate),解决了这个问题之后再运行脚本就可以正常生成证书了。
如果还是不行,最好先检查下你的域名能否正常访问:
curl -IkL -m20 http://[your domain]
from xray_onekey.
服务运行情况
● xray.service - Xray Service
xray.service - Xray Service
Loaded: loaded (/etc/systemd/system/xray.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/xray.service.d
└─10-donot_touch_single_conf.conf
Active: active (running) since Tue 2023-02-28 00:59:54 CST; 7min ago
Docs: https://github.com/xtls
Main PID: 198087 (xray)
Tasks: 9 (limit: 28701)
Memory: 4.1M
CPU: 96ms
CGroup: /system.slice/xray.service
└─198087 /usr/local/bin/xray run -config /usr/local/etc/xray/config.json
Feb 28 00:59:54 instance-20220619 systemd[1]: Started Xray Service.
Feb 28 00:59:54 instance-20220619 xray[198087]: Xray 1.7.5 (Xray, Penetrates Everything.) Custom (go1.20 linux/arm64)
Feb 28 00:59:54 instance-20220619 xray[198087]: A unified platform for anti-censorship.
Feb 28 00:59:54 instance-20220619 xray[198087]: 2023/02/28 00:59:54 [Info] infra/conf/serial: Reading config: /usr/local/etc/xray/config.json
请运行命令 service nginx status 并粘贴输出:
nginx.service - nginx - high performance web server
Loaded: loaded (/lib/systemd/system/nginx.service; disabled; vendor preset: enabled)
Active: active (running) since Tue 2023-02-28 00:59:53 CST; 9min ago
Docs: https://nginx.org/en/docs/
Process: 198078 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS)
Main PID: 198079 (nginx)
Tasks: 5 (limit: 28701)
Memory: 3.9M
CPU: 23ms
CGroup: /system.slice/nginx.service
├─198079 "nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf"
├─198080 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
├─198081 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
├─198082 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
└─198083 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
Feb 28 00:59:53 instance-20220619 systemd[1]: Starting nginx - high performance web server...
Feb 28 00:59:53 instance-20220619 systemd[1]: Started nginx - high performance web server.
环境 Environment
oracle cloud, ubuntu 刚刚更新
不是全新安装,有安装X-UI,ACME,之前用的网络跳跃脚本装的XRAY,卸载后用你的脚本安装,但是无法生成证书
重现问题的具体步骤
[OK] 当前版本为最新版本
[OK] 您可以通过 bash install.sh 执行本程序
Xray 安装管理脚本 [0.2.2]
---authored by wulabing---
https://github.com/wulabing
当前已安装版本:ws
—————————————— 安装向导 ——————————————
0. 升级 脚本
- 安装 Xray (VLESS + TCP + TLS + Nginx + WebSocket)
—————————————— 配置变更 —————————————— - 变更 UUID
- 变更 连接端口
- 变更 WebSocket PATH
—————————————— 查看信息 —————————————— - 查看 实时访问日志
- 查看 实时错误日志
- 查看 Xray 配置链接
—————————————— 其他选项 —————————————— - 安装 4 合 1 BBR、锐速安装脚本
- 安装 MTproxy(不推荐使用,请相关用户关闭或卸载)
- 卸载 Xray
- 更新 Xray-core
- 安装 Xray-core 测试版(Pre)
- 手动更新SSL证书
- 退出
请输入数字:36
[Tue Feb 28 00:59:37 CST 2023] ===Starting cron===
[Tue Feb 28 00:59:37 CST 2023] Renew: 'hins007.xyz'
[Tue Feb 28 00:59:37 CST 2023] Renew to Le_API=https://acme.zerossl.com/v2/DV90
[Tue Feb 28 00:59:37 CST 2023] Skip invalid cert for: hins007.xyz
[Tue Feb 28 00:59:38 CST 2023] Skipped hins007.xyz
[Tue Feb 28 00:59:38 CST 2023] Renew: 'hins007.xyz'
[Tue Feb 28 00:59:38 CST 2023] Renew to Le_API=https://acme.zerossl.com/v2/DV90
[Tue Feb 28 00:59:39 CST 2023] Using CA: https://acme.zerossl.com/v2/DV90
[Tue Feb 28 00:59:39 CST 2023] Multi domain='DNS:hins007.xyz,DNS:www.hins007.xyz '
[Tue Feb 28 00:59:39 CST 2023] Getting domain auth token for each domain
[Tue Feb 28 00:59:47 CST 2023] Getting webroot for domain='hins007.xyz'
[Tue Feb 28 00:59:47 CST 2023] Getting webroot for domain='www.hins007.xyz'
[Tue Feb 28 00:59:48 CST 2023] Adding txt value: el-89APMRUIMTX6hkuhyGzGJMEoSZo7 F-rX7wa9DP-M for domain: _acme-challenge.hins007.xyz
[Tue Feb 28 00:59:49 CST 2023] invalid domain
[Tue Feb 28 00:59:49 CST 2023] Error add txt for domain:_acme-challenge.hins007. xyz
[Tue Feb 28 00:59:49 CST 2023] Please check log file for more details: /root/.ac me.sh/acme.sh.log
[Tue Feb 28 00:59:53 CST 2023] Error renew hins007.xyz_ecc.
[Tue Feb 28 00:59:53 CST 2023] ===End cron===
我用ACME申请证书也是同样的错误。请教如何解决。
from xray_onekey.
碰到同样问题,CENTOS 7
from xray_onekey.
换ubuntu,亲测可行
from xray_onekey.
把 iptables 规则清一下
from xray_onekey.
把 iptables 规则清一下
请问大佬具体怎样做
from xray_onekey.
Related Issues (20)
- 希望一键脚本可以自动校准时区 HOT 2
- xray
- [BUG] install.sh: line 123: [[: 20.04: syntax error: invalid arithmetic operator (error token is ".04") HOT 1
- 更改端口后伪装网站无法访问? HOT 1
- 请教一个比较弱智的问题 HOT 3
- [BUG]
- 希望增加一个功能。 HOT 1
- 端口基本一天封一次,怎么破 HOT 4
- 新版v2rayN流控flow不支持xtls-rprx-direct HOT 2
- [BUG] 不能使用,我换了个shadowsocks的服务就可以使用 HOT 1
- 是不是被恶意注入了 HOT 1
- [BUG]最新版本的脚本安装Xray 前置模式 HOT 3
- 可以制作个Docker版本吗
- 会考虑推出 VLESS-Vision-REALITY 的一键搭建脚本吗? HOT 1
- [BUG]xray一键安装脚本,ssl证书生成失败 HOT 5
- [BUG]xray版本大于1.7.5,不再支持xtls-rprx-direct/ xtls-rprx-origin流控
- [BUG] 全新机器安装后无法启动NGINX,提示端口绑定失败 HOT 1
- 问一下,我的steam deck想连上机场的话,只能选择订阅地址,怎么转换?
- 请求支持almalinux 8.9[BUG] HOT 1
- [BUG]后门!!!!!!!!! HOT 1
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 xray_onekey.