nginx: [emerg] bind() to [::]:443 failed (98: Address already in use)

nginx: [emerg] bind() to [::]:443 failed (98: Address already in use)

方法1

netstat -ptnl | grep ":443"

Another way (from my experience) is just force quit the process that running on that port 443

sudo fuser -k 443/tcp

or if you running on port 80 just change the port to

sudo fuser -k 80/tcp

Hope it helps someone who had the same issue

Alternative using lsof:

Find the PID & kill the process which running on port 443

sudo kill -9 $(lsof -t -i :443)

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容