只是笔记而已,不是很详细,莫怪
opensips搭建问题解决笔记:
# opensipsctl start
INFO: Starting OpenSIPS :
ERROR: PID file /var/run/opensips.pid does not exist -- OpenSIPS start failed
Nov 6 15:57:53 webcon2013 opensips: WARNING:core:warn: warning in config file /usr/local/asijack//etc/opensips/opensips.cfg, line 50,
column 13-16: tls support not compiled in
Nov 6 15:57:54 webcon2013 opensips: INFO:core:init_tcp: using epoll_lt as the TCP io watch method (auto detected)
Nov 6 15:57:54 webcon2013 ./opensips[3016]: NOTICE:core:main: version: opensips 1.8.2-notls (i386/linux)
Nov 6 15:57:54 webcon2013 ./opensips[3016]: INFO:core:main: using 32 Mb shared memory
Nov 6 15:57:54 webcon2013 ./opensips[3016]: INFO:core:main: using 2 Mb private memory per process
Nov 6 15:57:54 webcon2013 ./opensips[3016]: NOTICE:signaling:mod_init: initializing module ...
Nov 6 15:57:54 webcon2013 ./opensips[3016]: INFO:sl:mod_init: Initializing StateLess engine
Nov 6 15:57:54 webcon2013 ./opensips[3016]: INFO:tm:mod_init: TM - initializing...
Nov 6 15:57:54 webcon2013 ./opensips[3016]: INFO:rr:mod_init: rr - initializing
Nov 6 15:57:54 webcon2013 ./opensips[3016]: INFO:maxfwd:mod_init: initializing...
Nov 6 15:57:54 webcon2013 ./opensips[3016]: INFO:sipmsgops:mod_init: initializing...
Nov 6 15:57:54 webcon2013 ./opensips[3016]:
ERROR:db_mysql:db_mysql_connect: driver error(2002): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Nov 6 15:57:54 webcon2013 ./opensips[3016]: ERROR:db_mysql:db_mysql_new_connection: initial connect failed
Nov 6 15:57:54 webcon2013 ./opensips[3016]: ERROR:core:db_do_init: could not add connection to the pool
Nov 6 15:57:54 webcon2013 ./opensips[3016]: ERROR:uri:mod_init: Could not connect to database
Nov 6 15:57:54 webcon2013 ./opensips[3016]: ERROR:core:init_mod: failed to initialize module uri
Nov 6 15:57:54 webcon2013 ./opensips[3016]: ERROR:core:main: error while initializing modules
Nov 6 15:57:54 webcon2013 ./opensips[3016]: INFO:core:cleanup: cleanup
Nov 6 15:57:54 webcon2013 opensips: INFO:core:daemonize: pre-daemon process exiting with -1
/var/lib/mysql/mysql.sock 转移到了 /data/mysql/mysql.sock
(http://www.cnblogs.com/fuhj02/p/3541173.html)
软连接
ln –s