首页 > 代码库 > start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart:

start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart:

    用Ubuntu远程登录虚拟host时出现:

    start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused

 

    解决:

    

sudo dpkg-divert --local --rename --add /sbin/initctl
ln -s /bin/true /sbin/initctl
   
   
PS:输入命令就好,至于出现什么不用管。然后,再执行重启命令,就可以了。

 

start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: