配置nginx的时候网页显示

我按照站长的视频配置laravel的nginx环境,但是网页老是显示502 bad错误,我查看nginx显示的
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
好像是告诉我80端口被nginx重复绑定,请问nginx.conf配置里面改怎么配置IPV4和IPV6呢?
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
我自己的也是按照站长的配置的,启动nginx也是显示成功的?请问下改怎么解决呢

JellyBool

应该是其他程序占用 80 端口了吧

Swww18

[crit] 4832#0: *7 connect() to unix:/var/run/php7.1-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 112.86.43.119, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7.1-fpm.sock:", host: "45.32.35.161"
请问下,我查看nginx的error.log我应该怎么去修改配置呢?