WishMeLz

生活其实很有趣

x-ui申请SSL证书提示出错

/usr/bin/x-ui: line 447: /root/.acme.sh/acme.sh: No such file or directory
[ERR] 修改默认CA为Lets'Encrypt失败,脚本退出

其实在你选择申请SSL证书的时候,他会自动安装Acme脚本,这个时候已经提示问题了

[Mon Sep 30 02:05:55 UTC 2024] Installing from online archive.
[Mon Sep 30 02:05:55 UTC 2024] Downloading https://github.com/acmesh-official/acme.sh/archive/master.tar.gz
[Mon Sep 30 02:05:56 UTC 2024] Extracting master.tar.gz
[Mon Sep 30 02:05:56 UTC 2024] It is recommended to install crontab first. Try to install 'cron', 'crontab', 'crontabs' or 'vixie-cron'.
[Mon Sep 30 02:05:56 UTC 2024] We need to set a cron job to renew the certs automatically.
[Mon Sep 30 02:05:56 UTC 2024] Otherwise, your certs will not be able to be renewed automatically.
[Mon Sep 30 02:05:56 UTC 2024] Please add '--force' and try install again to go without crontab.
[Mon Sep 30 02:05:56 UTC 2024] ./acme.sh --install --force
[Mon Sep 30 02:05:56 UTC 2024] Pre-check failed, cannot install.

sudo apt install cron 安装一下就行了

2024-09-30T02:22:02.png