
Sou novo no servidor nginx. Instalei o nginx no meu sistema operacional Ubuntu usando o comando
sudo apt-get install nginx
e então tentei iniciar o servidor web nginx usando o comando
sudo service nginx start
e tentei abrir o servidor web nginx em meu navegador digitando o URL http://http://192.168.1.120/
(meu endereço IP).
Mas isso está mostrando uma página em branco. Não sei se há algum erro em meus procedimentos, alguém pode me ajudar a consertar isso?
nginx -t
mostra algunserroscomo segue:
[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