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  

 

posted @ 2023-02-17 08:40  黄橙  阅读(493)  评论(0)    收藏  举报