私はnginxサーバーを初めて使います。Ubuntuオペレーティングシステムに次のコマンドを使用してnginxをインストールしました。
sudo apt-get install nginx
そして、次のコマンドを使用してnginxウェブサーバーを起動しようとしました。
sudo service nginx start
次に、URL http://http://192.168.1.120/
(自分の IP アドレス) を入力して、Web ブラウザーで nginx Web サーバーを開こうとしました。
しかし、空白ページが表示されています。手順に間違いがあるかどうかわかりません。誰かこれを修正するのを手伝ってくれませんか?
nginx -t
いくつかのエラー次のようにします。
[alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)
2016/09/09 12:01:37 [warn] 9035#0: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:1
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
2016/09/09 12:01:37 [emerg] 9035#0: open() "/run/nginx.pid" failed (13: Permission denied)
nginx: configuration file /etc/nginx/nginx.conf test failed