rsyslog无法启动:找不到


0

启动rsyslog时,我得到以下信息:

/etc/init.d/rsyslog: 1: /etc/default/rsyslog: imudp: not found
/etc/init.d/rsyslog: 2: /etc/default/rsyslog: 127.0.0.1: not found
/etc/init.d/rsyslog: 3: /etc/default/rsyslog: 514: not found

我的/ etc / default / rsyslog文件:

$ModLoad imudp
$UDPServerAddress 127.0.0.1
$UDPServerRun 514

Answers:


0

在Ubuntu 14.04上运行更新后,我遇到了同样的问题。我的猜测是,/etc/init.d/rsyslog已经过时,因为/ 等/ rsyslog.conf正好有与下面的个别规则相同的配置/etc/rsyslog.d/。因此,为了解决此问题,我要做的就是检查/etc/rsyslog.conf是否包含我想要的内容,然后从/etc/init.d/rsyslog中删除这些行,然后重新启动服务。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.