解决opensips启动时出现PID file /var/run/opensips.pid does not exist 的错误

启动opensips时报下列错误

[[email protected] opensips]# opensipsctl start

INFO: Starting OpenSIPS :

ERROR: PID file /var/run/opensips.pid does not exist -- OpenSIPS start failed

查看日志文件

[[email protected] opensips]# tail -f /var/log/messages

May 14 15:52:41 OpenSIPS opensips: CRITICAL:core:yyerror: parse error in config file //etc/opensips/opensips.cfg, line 229, column 12-13: unknown command <t_relay>, missing loadmodule?
May 14 15:52:41 OpenSIPS opensips: CRITICAL:core:yyerror: parse error in config file //etc/opensips/opensips.cfg, line 233, column 16-17: unknown command <t_check_trans>, missing loadmodule?
May 14 15:52:41 OpenSIPS opensips: CRITICAL:core:yyerror: parse error in config file //etc/opensips/opensips.cfg, line 235, column 21-22: unknown command <is_method>, missing loadmodule?
May 14 15:52:41 OpenSIPS opensips: CRITICAL:core:yyerror: parse error in config file //etc/opensips/opensips.cfg, line 244, column 31-32: unknown command <proxy_authorize>, missing loadmodule?
May 14 15:52:41 OpenSIPS opensips: CRITICAL:core:yyerror: parse error in config file //etc/opensips/opensips.cfg, line 245, column 27-28: unknown command <proxy_challenge>, missing loadmodule?
May 14 15:52:41 OpenSIPS opensips: CRITICAL:core:yyerror: parse error in config file //etc/opensips/opensips.cfg, line 248, column 23-24: unknown command <db_check_from>, missing loadmodule?
May 14 15:52:41 OpenSIPS opensips: CRITICAL:core:yyerror: parse error in config file //etc/opensips/opensips.cfg, line 249, column 24-25: unknown command <sl_send_reply>, missing loadmodule?

解决方法:

查看库文件存放的位置

[[email protected] modules]# pwd
/lib64/opensips/modules
[[email protected] modules]# ls
acc.so                dialog.so          mi_fifo.so            signaling.so
alias_db.so         dispatcher.so      mi_http.so            sipcapture.so
auth_aaa.so        diversion.so       mi_json.so            sipmsgops.so
auth_db.so         dns_cache.so       msilo.so              siptrace.so
auth_diameter.so  domainpolicy.so    nathelper.so          sl.so
auth.so              domain.so          nat_traversal.so      sms.so
avpops.so           drouting.so        options.so            speeddial.so
b2b_entities.so   enum.so            path.so               sst.so
b2b_sca.so        event_datagram.so  pdt.so                statistics.so
benchmark.so      event_route.so     peering.so            stun.so
cachedb_local.so  event_xmlrpc.so    permissions.so        textops.so
cachedb_sql.so    exec.so            pike.so               tm.so
call_center.so    gflags.so          presence_callinfo.so  uac_auth.so
call_control.so   group.so           presence_xcapdiff.so  uac_redirect.so
cfgutils.so       imc.so             qos.so                uac_registrant.so
closeddial.so     load_balancer.so   ratelimit.so          uac.so
db_cachedb.so     mangler.so         registrar.so          uri.so
db_flatstore.so   mathops.so         rr.so                 userblacklist.so
db_mysql.so       maxfwd.so          rtpproxy.so           usrloc.so
db_text.so        mediaproxy.so      script_helper.so
db_virtual.so     mi_datagram.so     seas.so

修改配置文件

[[email protected] opensips]# vim opensips.cfg

####### Modules Section ########

#set module path
mpath="/lib64/opensips/modules/"其

实这里面主要的是查看日志信息,根据日志信息进行排误

解决opensips启动时出现PID file /var/run/opensips.pid does not exist 的错误

时间: 2025-01-13 01:54:46

解决opensips启动时出现PID file /var/run/opensips.pid does not exist 的错误的相关文章

failed to create pid file /var/run/rsyncd.pid: File exists报错

[[email protected] ansible_playbooks]# ps aux|grep rsyncroot      1799  0.0  0.0 114652   480 ?        Ss   Jun29   0:00 rsync --daemonroot     61754  0.0  0.0 112664   972 pts/2    S+   11:17   0:00 grep --color=auto rsync[[email protected] ansible_

/var/run/yum.pid 已被锁定,PID 为 XXXX 的另一个程序正在运行。

安装st-load时, 终端提示 “/var/run/yum.pid 已被锁定,PID 为 13908 的另一个程序正在运行.” 解决方法:直接在终端运行 rm -f /var/run/yum.pid 将该文件删除,然后再次运行yum. 即出现如下提示: [[email protected] ~]# yum install git unzip patch gcc gcc-c++ make已加载插件:fastestmirror, langpacks/var/run/yum.pid 已被锁定,PID

yum被lock Existing lock /var/run/yum.pid: another copy is running as pid 1580. Another app is currently holding the yum lock; waiting for it to exi

[[email protected] bin]# yum -y install lrzszLoaded plugins: fastestmirrorExisting lock /var/run/yum.pid: another copy is running as pid 1580.Another app is currently holding the yum lock; waiting for it to exit... The other application is: yum Memor

mysql修改后启动my.cnf报错Starting MySQL... ERROR! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid).

mysql中文乱码解决 mysql修改my.cnf后启动报错Starting MySQL... ERROR! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid). 这里简单明了地说下: 对于mysql5.5版本,需要在/etc/mysql/my.cnf做如下修改: [client]下添加: default-character-set = utf8 [mysqld]下添加: cha

centos6.6下编译安装mysql5.6之后启动失败:Starting MySQL... ERROR! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid).

今天在编译安装mysql5.6时候出现Starting MySQL... ERROR! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid).,当时就心碎了,之前安装时候好好的,在网上搜索帮助方法,可是没有和我一样的,有的说我没有给mysqld赋权限,可是我赋予他权限了,试了一堆方法,最后心灰意冷,准备删除mysql重新安装,就在我执行:yum remove mysql mysql

解决Ubuntu12.04下rpcbind: cannot open &#39;/var/run/rpcbind/rpcbind.xdr&#39; file for reading

不知道怎么回事,实验室的电脑在同学搞过之后,每次启动都报错 rpcbind: cannot open '/run/rpcbind/rpcbind.xdr' file for reading, errno 2 (no such file or directory)rpcbind: cannot open '/run/rpcbind/portmap.xdr' file for reading, errno 2 (no such file or directory) 如果你的错误是 rpcbind:

nginx: [error] open() &quot;/usr/local/var/run/nginx.pid&quot; failed (2: No such file or directory)

nginx: [error] open() "/usr/local/var/run/nginx.pid" failed (2: No such file or directory) 2017年09月14日 09:15:45 阅读数:7742 启动Nginx出现这个错误 nginx: [error] open() "/usr/local/var/run/nginx.pid" failed (2: No such file or directory) 1  解决方法:找

the server quit without updating pid file (/var/lib/mysql/localhost.localdomain.pid)

前几天装的mysql,用的还挺爽的,第二天再用就不行了,报的错误如标题.网上也是众说纷纭,可能有很多原因会导致这种错误吧.我用的是将Mysqld这个进程杀掉,就可以启动mysql了 the server quit without updating pid file (/var/lib/mysql/localhost.localdomain.pid),布布扣,bubuko.com the server quit without updating pid file (/var/lib/mysql/l

如何解决apache启动时错误:Could not reliably determine the server&#39;s fully qualified domain name

启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name [[email protected] httpd-2.2.4]# /usr/local/apache/bin/apachectl start httpd: Could not reliably determine the server's fully qualified domain name, using 127.0