Nginx (linux)端口被占用
2017-12-08 本文已影响0人
devstrongzhao
Nginx [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
使用命令关闭占用80端口的程序
sudo fuser -k 80/tcp
启动Nginx
启动起来效果/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
Nginx [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
使用命令关闭占用80端口的程序
sudo fuser -k 80/tcp
启动Nginx
启动起来效果/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf