解决opensips启动时报ERROR:uri:db_checks_fixup1: configuration error 错误
opensips启动时报下列错误
[root@OpenSIPS opensips]# opensipsctl start
INFO: Starting OpenSIPS :
ERROR: PID file /var/run/opensips.pid does not exist -- OpenSIPS start failed
查看日志文件发现有下列错误
May 14 16:08:43 OpenSIPS /sbin/opensips[48245]: ERROR:uri:db_checks_fixup1: configuration error - no database URL is configured!
解决方法:
[root@OpenSIPS opensips]# vim opensips.cfg
#### URI module
loadmodule "uri.so"
modparam("uri", "use_uri_table", 0)
modparam("uri", "db_url",
"mysql://opensips:opensipsrw@192.168.0.28/opensips")
重新启动
[root@OpenSIPS opensips]# opensipsctl start
INFO: Starting OpenSIPS :
INFO: started (pid: 48281)
问题解决
本文出自 “云人生” 博客,请务必保留此出处http://ovcer.blog.51cto.com/1145188/1411172
解决opensips启动时报ERROR:uri:db_checks_fixup1: configuration error 错误,布布扣,bubuko.com