如何在 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
答案1
sudo service rsyslog restart
那就可以了。
答案2
如果您使用 systemctl,则可以使用:
systemctl restart rsyslog.service
重新启动后,使用以下命令检查其状态:
systemctl status rsyslog.service