# 是否设置后台运行默认是on后台运行【务必注意:如果此处设置为off,则使用systemctl start nginx启动会挂起为前提运行】!:
daemon off;
nginx的启动方式两种情况
第一种:使用systemctl restart nginx启动,必须设置daemon为on【后台运行】
第二种:使用supervisor启动 ,必须设置daemon为off【前台运行】
# 是否设置后台运行默认是on后台运行【务必注意:如果此处设置为off,则使用systemctl start nginx启动会挂起为前提运行】!:
daemon off;
第一种:使用systemctl restart nginx启动,必须设置daemon为on【后台运行】
第二种:使用supervisor启动 ,必须设置daemon为off【前台运行】
https://blog.csdn.net/u013129300/article/details/129329786