ubuntu运行service错误

stop: Rejected send message, 1 matched rules; type="method_call", sender=":1.3" (uid=1000 pid=1800 comm="stop ssh ") interface="com.ubuntu.Upstart0_6.Job" member="Stop" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")

原因:没有权限。在命令前加sudo (service XXX start|stop|restart)

你可能感兴趣的:(ubuntu运行service错误)