nginx 常用命令与基础配置
常用命令
- 启动:
nginx - 使用指定配置文件启动:
nginx -c /path/to/file - 正常停止:
nginx -s quit - 快速停止:
nginx -s stop - 重新加载配置:
nginx -s reload或systemctl reload nginx - 重启:
systemctl restart nginx
nginxnginx -c /path/to/filenginx -s quitnginx -s stopnginx -s reload 或 systemctl reload nginxsystemctl restart nginx