Files
mkdocs/docs/Obsidian笔记体系/Projects/女童生长激素项目/使用系统nginx.md
2026-01-30 10:45:19 +08:00

89 lines
1.4 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
### 已完成的操作
1. 停止宝塔nginx
- 已停止所有宝塔nginx进程
- 不再监听80和443端口
1. 启动系统nginx
- 系统nginx服务正在运行
- 已启用开机自启动
1. 更新系统nginx配置
- 添加域名www.ruilaizipj.com
- SSL证书配置正确
- ThinkPHP路由规则已配置
### 当前状态
|项目|状态|
|---|---|
|系统nginx|✅ 正在运行PID: 30932|
|宝塔nginx|❌ 已停止|
|80端口|✅ 正常监听|
|443端口|✅ 正常监听|
|HTTP访问|✅ 正常返回200|
|HTTPS访问|✅ 正常返回200|
|域名HTTPS|✅ 正常返回200|
### 配置文件位置
系统nginx配置文件
/etc/nginx/conf.d/default.conf
SSL证书文件
- 证书:/www/server/panel/vhost/cert/101.43.95.130/fullchain.pem
- 私钥:/www/server/panel/vhost/cert/101.43.95.130/privkey.pem
### 访问测试
- HTTP: http://101.43.95.130 → 200 OK
- HTTPS: https://101.43.95.130 → 200 OK
- 域名HTTPS: https://www.ruilaizipj.com → 200 OK
### 服务管理
系统nginx管理命令
# 启动
systemctl start nginx
# 停止
systemctl stop nginx
# 重启
systemctl restart nginx
# 重载配置
systemctl reload nginx
# 或
nginx -s reload
# 检查配置
nginx -t
# 查看状态
systemctl status nginx
切换完成。现在使用系统nginx提供服务所有功能正常。
详细报告已保存到:/www/wwwroot/code/nginx切换完成报告.md