如何在Ubuntu上重新启动rsyslog守护程序


48

我如何在Ubuntu 10上重新启动rsyslog或rsyslogd

root@terminator:/etc/init.d# service rsyslog status
rsyslog stop/waiting
root@terminator:/etc/init.d# service rsyslog stop
stop: Unknown instance:
root@terminator:/etc/init.d# service rsyslog restart
restart: Unknown instance:
root@terminator:/etc/init.d# service rsyslog start
start: Job failed to start
root@terminator:/etc/init.d# service rsyslogd start
rsyslogd: unrecognized service

Answers:


90

sudo service rsyslog restart

那应该做。


1
输出显示在上面的帖子中

2
您是否修改了rsyslog.conf?如果配置文件因某种原因无效,则service命令无法启动rsyslog。
Janne Pikkarainen's

1
如果以root用户身份以前无法使用sudo,为什么还要重新启动sudo?
RalfFriedl
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.