###前提・実現したいこと
raspbianバージョンRaspbian GNU/Linux 9.3 (stretch)の
raspberry pi 3にてnginxを使ってサーバを建てたいですがエラーが出たので
解決策を教えていただきたいです。
###発生している問題・エラーメッセージ
https://arakoki70.com/?p=798
こちらのサイトを参考に進めていたのですが、
sudo /etc/init.d/nginx restart
と打ったところ、
[....] Restarting nginx (via systemctl): nginx.serviceJob for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details. failed!
という風に表示されました。
###試したこと
解決策を調べようと思い検索してみたところ
nginx -t
と打てと書いてあったので打ってみたところ
nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied) 2018/01/04 16:21:03 [warn] 1447#1447: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:1 2018/01/04 16:21:03 [emerg] 1447#1447: "fastcgi_pass" directive is not allowed here in /etc/nginx/sites-enabled/default:60 nginx: configuration file /etc/nginx/nginx.conf test failed
と表示されました
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。