启动nginx时失败,打印信息为:Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
输入命令:
systemctl status nginx
查看nginx状态,显示在配置文件进程报错,
那么问题就是出在配置文件上了,cd到nginx所在的目录下,输入命令:
nginx -t
测试配置文件,显示配置文件有错误:未知的“connection_upgrade”变量
输入命令:
vi demo.conf
(demo.con