问题一:Reloading nginx configuration (via systemctl): Warning: nginx.service changed on disk. Run 'syst
问题一:Reloading nginx configuration (via systemctl): Warning: nginx.service changed on disk. Run 'systemctl daemon-reload' to reload units.
处理:运行 systemctl daemon-reload
问题二:Starting nginx (via systemctl): Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.、
处理:1、systemctl status nginx.service
● nginx.service - SYSV: Nginx is a high-performance web and proxy server.
Loaded: loaded (/etc/rc.d/init.d/nginx; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2017-03-21 11:29:22 CST; 52s ago
Docs: man:systemd-sysv-generator(8)
Process: 3202 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=1/FAILURE)
CGroup: /system.slice/nginx.service
├─ 2976 nginx: worker process
└─27743 nginx: master process /mnt/nginx/sbin/nginx -c /mnt/nginx/conf/nginx.conf
Mar 21 11:29:20 iZrj9hjq39s9xh1m071cw4Z nginx[3202]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Mar 21 11:29:21 iZrj9hjq39s9xh1m071cw4Z nginx[3202]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Mar 21 11:29:21 iZrj9hjq39s9xh1m071cw4Z nginx[3202]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Mar 21 11:29:22 iZrj9hjq39s9xh1m071cw4Z nginx[3202]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Mar 21 11:29:22 iZrj9hjq39s9xh1m071cw4Z nginx[3202]: nginx: [emerg] still could not bind()
Mar 21 11:29:22 iZrj9hjq39s9xh1m071cw4Z nginx[3202]: [FAILED]
Mar 21 11:29:22 iZrj9hjq39s9xh1m071cw4Z systemd[1]: nginx.service: control process exited, code=exited status=1
Mar 21 11:29:22 iZrj9hjq39s9xh1m071cw4Z systemd[1]: Failed to start SYSV: Nginx is a high-performance web and proxy server..
Mar 21 11:29:22 iZrj9hjq39s9xh1m071cw4Z systemd[1]: Unit nginx.service entered failed state.
Mar 21 11:29:22 iZrj9hjq39s9xh1m071cw4Z systemd[1]: nginx.service failed.
2、killall nginx
3、service nginx restart