访问
- 在浏览器中打开 NGINX UI 仪表盘:
http://<SERVER_IP>:9000 - UI 运行在 9000 端口,而 HTTP challenge 服务使用 9180 端口。
初次配置
- 打开 Web 界面。
- NGINX UI 初始设置需要一次性安装密钥。
- 该密钥存储在:
/usr/local/etc/nginx-ui/.install_secret - 粘贴安装密钥。
- 完成安装向导。
服务管理
Nginx UI:
# Start
systemctl start nginx-ui
# Stop
systemctl stop nginx-ui
# Restart
systemctl restart nginx-ui
# Show status
systemctl status nginx-ui
Nginx:
# Start
systemctl start nginx
# Stop
systemctl stop nginx
# Restart
systemctl restart nginx
# Show status
systemctl status nginx
重要文件与目录
- NGINX 配置目录:
/etc/nginx/ - NGINX 日志:
/var/log/nginx/ - Nginx UI 配置目录:
/usr/local/etc/nginx-ui/ - 安装密钥文件:
/usr/local/etc/nginx-ui/.install_secret