首页 > 代码库 > bind() to 0.0.0.0:80 failed (98: Address already in use)

bind() to 0.0.0.0:80 failed (98: Address already in use)

启动nginx的时候,提示80端口被占用怎么办?

可以这么做:

sudo fuser -k 80/tcp

service nginx start

bind() to 0.0.0.0:80 failed (98: Address already in use)