【发布时间】:2019-01-09 15:23:18
【问题描述】:
正在按照此处的 youtube 教程安装 Wordpress 和 LEMP 堆栈:https://www.youtube.com/watch?v=4beEybPzYqQ。
除了运行systemctl restart php7.2-fpm 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.service,它返回
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2019-01-09 16:30:12 EET; 34min ago
Docs: man:nginx(8)
Process: 18582 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/nginx.pid (code=exited, status=0/SUCCE
Process: 18584 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Process: 18583 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Main PID: 18585 (nginx)
Tasks: 9 (limit: 4915)
CGroup: /system.slice/nginx.service
├─18585 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
还有journalctl -xe:
--
-- Unit anacron.service has finished starting up.
--
-- The start-up result is RESULT.
jaan 09 17:04:45 zae anacron[21177]: Anacron 2.3 started on 2019-01-09
jaan 09 17:04:45 zae anacron[21177]: Normal exit (0 jobs run)
jaan 09 17:09:01 zae CRON[21298]: pam_unix(cron:session): session opened for us
jaan 09 17:09:01 zae CRON[21299]: (root) CMD ( [ -x /usr/lib/php/sessionclean
jaan 09 17:09:01 zae systemd[1]: Starting Clean php session files...
-- Subject: Unit phpsessionclean.service has begun start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit phpsessionclean.service has begun starting up.
jaan 09 17:09:01 zae CRON[21298]: pam_unix(cron:session): session closed for us
jaan 09 17:09:01 zae systemd[1]: Started Clean php session files.
-- Subject: Unit phpsessionclean.service has finished start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit phpsessionclean.service has finished starting up.
--
-- The start-up result is RESULT.
在我看来一切都很好?
我检查了系统日志,但在运行 systemctl status php7.2-fpm.service 时它没有显示任何内容。
/var/log/nginx/error.log 由于某种原因也完全为空。
我应该从哪里开始寻找造成这种情况的原因? 非常感谢任何帮助。
【问题讨论】:
标签: nginx ubuntu-18.04