nginx 启动 重新载入配置文件 重启 停止
启动
启动代码格式:nginx安装目录地址 -c nginx配置文件地址
例如:
[root@LinuxServer sbin]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf ./nginx -s reload # 重新载入配置文件 ./nginx -s reopen # 重启 Nginx ./nginx -s stop # 停止 Nginx
检查配置文件nginx.conf的正确性命令:
[root@bogon conf]# ./nginx -t
启动 Nginx
Nginx 启动命令如下:
[root@bogon conf]# ./nginx
本文来自博客园,作者:黄橙,转载请注明原文链接:https://www.cnblogs.com/RedOrange/p/17091786.html

浙公网安备 33010602011771号