nginx(2)启动

1. 80端口被占用

./sbin/nginx
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()

 解决办法:

netstat -antp 找到80端口占用的进程

kill 进程

重启成功

猜你喜欢

转载自www.cnblogs.com/mm163/p/10802279.html