Linux下端口占用的解决方法

Posted on 2012-10-16 14:35  JasmineLiu  阅读(263)  评论(0编辑  收藏  举报
错误:Could not bind socket: Address already in use
 
解决方法:
查看5432端口监听的进程信息,kill进程,步骤如下
[root@localhost ~]# netstat -apn |grep 5432
tcp        0      0 0.0.0.0:5432              0.0.0.0:*                   LISTEN     1533/ndo2db
[root@localhost ~]# kill -3 1533
然后重启服务即可。

Copyright © 2024 JasmineLiu
Powered by .NET 8.0 on Kubernetes