![Nginx“nginx.service 的作业失败,因为控制进程以错误代码退出。”](https://linux22.com/image/1586077/Nginx%E2%80%9Cnginx.service%20%E7%9A%84%E4%BD%9C%E4%B8%9A%E5%A4%B1%E8%B4%A5%EF%BC%8C%E5%9B%A0%E4%B8%BA%E6%8E%A7%E5%88%B6%E8%BF%9B%E7%A8%8B%E4%BB%A5%E9%94%99%E8%AF%AF%E4%BB%A3%E7%A0%81%E9%80%80%E5%87%BA%E3%80%82%E2%80%9D.png)
systemctl 状态 nginx.service:
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2019-03-25 21:16:34 +03; 49s ago
Process: 6071 ExecStart=/usr/bin/nginx -g pid /run/nginx.pid; error_log stderr; (code=exited, status=1/FAILURE)
Mar 25 21:16:31 lvlzyro nginx[6071]: 2019/03/25 21:16:31 [warn] 6071#6071: could not build optimal types_hash, you should increase ei>
Mar 25 21:16:31 lvlzyro nginx[6071]: 2019/03/25 21:16:31 [emerg] 6071#6071: bind() to 0.0.0.0:80 failed (98: Address already in use)
Mar 25 21:16:32 lvlzyro nginx[6071]: 2019/03/25 21:16:31 [emerg] 6071#6071: bind() to 0.0.0.0:80 failed (98: Address already in use)
Mar 25 21:16:32 lvlzyro nginx[6071]: 2019/03/25 21:16:31 [emerg] 6071#6071: bind() to 0.0.0.0:80 failed (98: Address already in use)
Mar 25 21:16:33 lvlzyro nginx[6071]: 2019/03/25 21:16:31 [emerg] 6071#6071: bind() to 0.0.0.0:80 failed (98: Address already in use)
Mar 25 21:16:33 lvlzyro nginx[6071]: 2019/03/25 21:16:31 [emerg] 6071#6071: bind() to 0.0.0.0:80 failed (98: Address already in use)
Mar 25 21:16:34 lvlzyro nginx[6071]: 2019/03/25 21:16:31 [emerg] 6071#6071: still could not bind()
Mar 25 21:16:34 lvlzyro systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Mar 25 21:16:34 lvlzyro systemd[1]: nginx.service: Failed with result 'exit-code'.
Mar 25 21:16:34 lvlzyro systemd[1]: Failed to start A high performance web server and a reverse proxy server.
journalctl-xe:
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The unit nginx.service has entered the 'failed' state with result 'exit-code'.
Mar 25 21:16:34 lvlzyro systemd[1]: Failed to start A high performance web server and a reverse proxy server.
-- Subject: A start job for unit nginx.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A start job for unit nginx.service has finished with a failure.
--
-- The job identifier is 2771 and the job result is failed.
Mar 25 21:16:34 lvlzyro audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=nginx comm="systemd" exe="/usr/lib>
Mar 25 21:16:34 lvlzyro kernel: audit: type=1130 audit(1553537794.290:95): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=nginx c>
Mar 25 21:16:34 lvlzyro sudo[6068]: pam_unix(sudo:session): session closed for user root
Mar 25 21:16:47 lvlzyro kernel: psmouse serio1: Touchpad at isa0060/serio1/input0 lost sync at byte 6
Mar 25 21:16:47 lvlzyro kernel: psmouse serio1: Touchpad at isa0060/serio1/input0 - driver resynced.
Mar 25 21:19:05 lvlzyro wpa_supplicant[808]: wlp5s0: Reject scan trigger since one is already pending
Mar 25 21:19:11 lvlzyro gnome-shell[912]: Ignoring excess values in shadow definition
Mar 25 21:19:11 lvlzyro gnome-shell[912]: Ignoring excess values in shadow definition
Mar 25 21:19:11 lvlzyro gnome-shell[912]: Ignoring excess values in shadow definition
Mar 25 21:19:11 lvlzyro gnome-shell[912]: Ignoring excess values in shadow definition
有人能帮我解决这个问题吗?