关闭nginx开机自启动: systemctl disable nginx (如果以上命令不起效果)可使用掩蔽服务: systemctl mask nginx 解除掩蔽服务 systemctl unmask nginx: