+ -
当前位置:首页 → 问答吧 → 执行apt-get命令安装软件的时候,Ubuntu要我插入光盘……

执行apt-get命令安装软件的时候,Ubuntu要我插入光盘……

时间:2011-05-22

来源:互联网

不知道怎么停止服务,老是给如下提示
代码:
sudo /etc/init.d/mysql restart
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mysql restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart mysql
mysql start/running, process 8725

谁知道怎么正确地重启服务么
还有apache2 vsftpd等服务,全是这个提示,,,另一种方法给出如下提示
代码:
service mysql restart
restart: Rejected send message, 1 matched rules; type="method_call", sender=":1.48" (uid=1000 pid=8840 comm="restart) interface="com.ubuntu.Upstart0_6.Job" member="Restart" error name="(unset)" requested_reply=0 destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init))

作者: cppking   发布时间: 2011-05-22

那个……发错版了吧……

作者: 月下叹逍遥   发布时间: 2011-05-22

重启服务无数次,没遇见过这些问题...
在此之前,你做过什么啊

作者: 枫叶饭团   发布时间: 2011-05-22

月下叹逍遥 写道:
那个……发错版了吧……

作者: jtshs256   发布时间: 2011-05-22

apache2 vsftpd都出来了

作者: 长头发的和尚   发布时间: 2011-05-22

代码:
sudo service mysql restart

作者: rediscover   发布时间: 2011-05-23