cd /root/.openclaw/workspace/ssl-manager
./install.sh
cd backend
# 配置淘宝 npm 镜像(可选,加速下载)
npm config set registry https://registry.npmmirror.com
npm install
cp .env.example .env
# 编辑 .env 配置你的邮箱
vim .env
npm start
cd frontend
# 配置淘宝 npm 镜像(可选,加速下载)
npm config set registry https://registry.npmmirror.com
npm install
npm run dev
# 访问 http://localhost:5173
# 构建前端
cd frontend
# 配置淘宝 npm 镜像(可选,加速下载)
npm config set registry https://registry.npmmirror.com
npm install
npm run build
# 后端会静态文件,直接访问 http://localhost:3000
配置自动续期 - 执行以下命令:
chmod +x scripts/auto-renew.sh
crontab -e
# 添加:0 0 * * * /root/.openclaw/workspace/ssl-manager/scripts/auto-renew.sh
# 检查后端服务
curl http://localhost:3000/api/health
# 检查 acme.sh
~/.acme.sh/acme.sh --version
# 查看证书列表
~/.acme.sh/acme.sh --list
cd backend
npm install # 确保依赖已安装
node src/index.js # 查看详细错误
cd frontend
rm -rf node_modules package-lock.json
npm install
npm run build
# 使用 Gitee 镜像手动安装
git clone https://gitee.com/Neilpang/acme.sh.git ~/.acme.sh
cd ~/.acme.sh
./acme.sh --install
source ~/.bashrc
有问题随时找小弟!👋