- 简化了 clean.sh 脚本的注释 - 更新了 37point2.cn 网站配置的安装步骤,增加了创建目录的指令 - 调整了 37point2.cn 网站配置文件的下载顺序,先下载 index.html 再下载 nginx.conf
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