apenas excluí esta linha
listen [::]: 80 default_server ipv6only = on;
de
/ etc / nginx / sites-available / default e funciona: D
por favor nginx no meu servidor começou por favor siga-me
root@s45-****:/home/arabico# nmap 45.****
PORT STATE SERVICE
22/tcp open ssh
5/tcp open smtp
80/tcp open http
Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds
root@s45-****:/home/arabico# sudo service apache2 stop
* Stopping web server apache2 *
root@s45-****:/home/arabico# nmap 45.****
Starting Nmap 6.40 ( http://nmap.org ) at 2015-06-05 19:33 MST
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds
root@s45-***:/home/arabico# sudo service nginx restart
* Restarting nginx nginx
[fail]
root@s45-***:/home/arabico# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
nginx: configuration file /etc/nginx/nginx.conf test failed
root@s45***:/home/arabico# sudo nginx
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
como deixá-lo começar por favor
apenas excluí esta linha
listen [::]: 80 default_server ipv6only = on;
de
/ etc / nginx / sites-available / default e funciona: D
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
Da mensagem de erro, parece que o ipv6 está desabilitado no seu servidor. Edite a configuração do servidor padrão nginx e altere-a para escutar apenas no ipv4 ou ativar o ipv6.
listen 80 default_server;
# comment to disable ipv6
# listen [::]:80 default_server;
Tags ssh networking server apache2 nginx