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

问题描述:

我无法运行kannel(开源短信网关)正常运行。每当我尝试我得到这个错误。错误:系统错误98:已在使用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] 

我已经尝试做了很多的改变但没有成功。请让我知道我错过了哪一点。谢谢。的Kannel的最有可能的另一个实例 -

别的东西在端口13000,9200,9201和13004正在运行。

do sudo netstat -lanp看看它是什么过程。

+0

我可以看到localhost:13000正在等待关闭,但我找不到任何进程ID。在这种情况下,我可以使用哪个命令/技巧来释放端口。 – 2012-02-23 18:59:09

+0

你是否尝试以root身份运行netstat? – Kimvais 2012-02-23 19:05:16

+0

是的。我如何释放localhost:13000。没有太多的细节提供 – 2012-02-23 19:09:28