service cron restart命令报错如下:
stop: Rejected send message, 1 matched rules; type="method_call", sender=":1.121" (uid=1000 pid=25347 comm="stop cron ") 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 ")
start: Rejected send message, 1 matched rules; type="method_call", sender=":1.122" (uid=1000 pid=25341 comm="start cron ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init ")
解决办法:
需要root权限才可以正常运行
本文介绍了使用servicecronrestart命令时出现的权限错误,并提供了解决方案:需要使用root权限来确保命令能够成功执行。
3914

被折叠的 条评论
为什么被折叠?



