我已经安装了nginx,apache2和php。
然后我编辑了domains
使用的配置。然后,我尝试重新启动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: failed (Result: exit-code) since Mon 2019-07-15 15:01:30 CEST; 1min 29s ago
Docs: man:nginx(8)
Process: 1349 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
Jul 15 15:01:30 raspberrypi systemd[1]: Starting A high performance web server and a reverse proxy server...
Jul 15 15:01:30 raspberrypi nginx[1349]: nginx: [emerg] unknown directive "location=\.php5" in /etc/nginx/sites-enabled/default:92
Jul 15 15:01:30 raspberrypi nginx[1349]: nginx: configuration file /etc/nginx/nginx.conf test failed
Jul 15 15:01:30 raspberrypi systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Jul 15 15:01:30 raspberrypi systemd[1]: nginx.service: Failed with result 'exit-code'.
Jul 15 15:01:30 raspberrypi systemd[1]: Failed to start A high performance web server and a reverse proxy server.
实际上我没有尝试任何事情,因为我不知道自己在做什么,所以请帮忙。