1.openips默认启动事务日志汇在var/log/message,此处我们修改默认日志路径
2默认配置是:log_facility=LOG_LOCAL0
故而我们需要在 vim /etc/rsyslog.conf增加红色标注的行
local0.* /opt/opensips/logs/opensips.log
重启rsyslog 服务: 只有opensips.cfg 中的debug_mode=no及log_stderror=no,日志才会写入:
systemctl start rsyslog