sudo journalctl -xn
-- Logs begin at Fri 2016-03-11 10:51:11 UTC, end at Fri 2016-03-11 11:21:33 UTC. --
Mar 11 11:21:12 server sudo[1095]: pam_unix(sudo:session): session opened for user root by chris(uid=0)
Mar 11 11:21:12 server systemd[1]: Starting A high performance web server and a reverse proxy server...
-- Subject: Unit nginx.service has begun with start-up
-- Defined-By: systemd
-- Unit nginx.service has begun starting up.
Mar 11 11:21:13 server nginx[1104]: nginx: [emerg] "fastcgi_pass" directive is duplicate in /etc/nginx/sites-enabled/def
Mar 11 11:21:13 server nginx[1104]: nginx: configuration file /etc/nginx/nginx.conf test failed
Mar 11 11:21:13 server systemd[1]: nginx.service: control process exited, code=exited status=1
Mar 11 11:21:13 server systemd[1]: Failed to start A high performance web server and a reverse proxy server.
-- Subject: Unit nginx.service has failed
-- Defined-By: systemd
- 单位nginx.service失败了。
-- The result is failed.
Mar 11 11:21:13 server systemd[1]: Unit nginx.service entered failed state.
Mar 11 11:21:13 server sudo[1095]: pam_unix(sudo:session): session closed for user root
Mar 11 11:21:33 server sudo[1113]: chris : TTY=pts/0 ; PWD=/etc/nginx/sites-available ; USER=root ; COMMAND=/bin/journal
Mar 11 11:21:33 server sudo[1113]: pam_unix(sudo:session): session opened for user root by chris(uid=0)