Files
script/nginx
牡蛎 899dc42448 fix(nginx): 更新 note.sugarscat.cn 的 SSL 证书路径
- 将 SSL 证书路径从 fullchain.crt 和 privkey.key 更改为 sugarscat.cn.crt 和 sugarscat.cn.key
- 这些更改提高了 SSL 配置的安全性和一致性
2025-06-02 13:52:37 +08:00
..

Nginx

安装 Nginx

安装 Nginx

apt-get update && apt-get install nginx

启动 Nginx

systemctl start nginx

开机自启动

systemctl enable nginx

查看状态

systemctl status nginx

Nginx 配置

下载配置

curl -fsSL https://i.sugarscat.cn/me/script/-/raw/main/nginx/nginx.conf > /etc/nginx/nginx.conf

测试配置

nginx -t

重启 nginx

systemctl restart nginx