Linux Kannel:错误:系统错误98:地址已在使用中

Linux Kannel:错误:系统错误98:地址已在使用中,linux,mobile,sms,port,kannel,Linux,Mobile,Sms,Port,Kannel,我无法正常运行kannel(开源短信网关)。每次我尝试时都会出现这个错误。错误:系统错误98:地址已在使用中 这是我的kannel.conf group = core admin-port = 13000 admin-password = 123 status-password = 123 smsbox-port = 13003 wapbox-port = 13004 log-file = "/home/eclipse/kannel_core.log" log-level = 1 wdp-int

我无法正常运行kannel(开源短信网关)。每次我尝试时都会出现这个错误。错误:系统错误98:地址已在使用中

这是我的kannel.conf

group = core
admin-port = 13000
admin-password = 123
status-password = 123
smsbox-port = 13003
wapbox-port = 13004
log-file = "/home/eclipse/kannel_core.log"
log-level = 1
wdp-interface-name = "*"

#group = smsc
#smsc = fake
#port = 1000

group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
log-file = "/home/eclipse/kannel_smsbox.log"
log-level = 1

group = wapbox
bearerbox-host = 127.0.0.1
log-file = "/home/eclipse/kannel_wapbox.log"

group = sendsms-user
username = 123
password = 123
user-allow-ip = "127.0.0.1"

group = sms-service
url="http://localhost/sms/send.php?sender=%s&&text=%t"
accept-x-kannel-headers = true
以及核心的日志文件:

2012-02-23 21:26:36 [9194] [0] INFO: Added logfile `/home/eclipse/kannel_core.log' with level `1'.
2012-02-23 21:26:36 [9194] [0] INFO: HTTP: Opening server at port 13000.
2012-02-23 21:26:36 [9194] [0] ERROR: bind failed
2012-02-23 21:26:36 [9194] [0] ERROR: System error 98: Address already in use
2012-02-23 21:26:36 [9194] [0] INFO: Adding interface *
2012-02-23 21:26:36 [9194] [0] ERROR: Couldn't bind a UDP socket to port 9200
2012-02-23 21:26:36 [9194] [0] ERROR: System error 98: Address already in use
2012-02-23 21:26:36 [9194] [0] ERROR: Couldn't bind a UDP socket to port 9201
2012-02-23 21:26:36 [9194] [0] ERROR: System error 98: Address already in use
2012-02-23 21:26:36 [9194] [0] INFO: ----------------------------------------
2012-02-23 21:26:36 [9194] [0] INFO: Kannel bearerbox II version 1.4.3 starting
2012-02-23 21:26:36 [9194] [7] ERROR: bind failed
2012-02-23 21:26:36 [9194] [7] ERROR: System error 98: Address already in use
2012-02-23 21:26:36 [9194] [7] PANIC: Could not open wapbox port 13004
2012-02-23 21:26:36 [9194] [0] INFO: MAIN: Start-up done, entering mainloop
2012-02-23 21:26:36 [9194] [7] PANIC: /usr/sbin/bearerbox(gw_panic+0xd2) [0x80d1b62]
2012-02-23 21:26:36 [9194] [7] PANIC: /usr/sbin/bearerbox() [0x8055bc0]
2012-02-23 21:26:36 [9194] [7] PANIC: /usr/sbin/bearerbox() [0x80c8bbb]
2012-02-23 21:26:36 [9194] [7] PANIC: /lib/i386-linux-gnu/libpthread.so.0(+0x6d31) [0x7a5d31]
2012-02-23 21:26:36 [9194] [7] PANIC: /lib/i386-linux-gnu/libc.so.6(clone+0x5e) [0xbba0ce]

我试着做了很多改变,但都没有成功。请让我知道我遗漏了哪一点。谢谢。

端口13000、9200、9201和13004上正在运行其他内容-很可能是kannel的另一个实例


执行
sudo netstat-lanp
查看它是什么进程。

尝试停止kannel服务
/etc/init.d/kannel stop
,并在几秒钟后启动它
/etc/init.d/kannel start

我发现,有时如果停止kannel服务,需要几秒钟才能完全关闭。

我可以看到localhost:13000正在等待关闭,但我找不到任何进程id。在这种情况下,我可以使用哪个命令/技巧释放端口。是否尝试以root用户身份运行netstat?是的。如何释放localhost:13000。没有提供太多细节。非常感谢你的想法。我使用lsof-I-p9200和lsof-I-p13000终端命令来获取进程,并使用kill-9pid杀死它们。再次感谢。