LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2725|回复: 4

Ubuntu10.04如何重启服务?

[复制链接]
发表于 2010-5-8 23:35:30 | 显示全部楼层 |阅读模式
lucifer@cross:~$ sudo /etc/init.d/vsftpd restart
[sudo] password for lucifer:
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service vsftpd 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 vsftpd
vsftpd start/running, process 2464
lucifer@cross:~$


以前在9.10的时候是可以这样重启的。
现在启动也不行,该怎么办呢?

lucifer@cross:~$ sudo /etc/init.d/vsftpd start
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service vsftpd start

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start vsftpd
vsftpd start/running, process 2503
lucifer@cross:~$
发表于 2010-5-9 14:01:03 | 显示全部楼层
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service vsftpd start

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start vsftpd


so,try 'sudo start vsftpd',or 'man start'.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-5-9 16:44:04 | 显示全部楼层
Sorry it can't work...


lucifer@cross:~$ sudo start vsftpd
[sudo] password for lucifer:
vsftpd start/running, process 2090
lucifer@cross:~$ sudo stop vsftpd
stop: Unknown instance:
lucifer@cross:~$ sudo restart vsftpd
restart: Unknown instance:
lucifer@cross:~$ kill 2090
bash: kill: (2090) - 没有那个进程
lucifer@cross:~$
回复 支持 反对

使用道具 举报

发表于 2010-5-9 20:23:36 | 显示全部楼层
Post by 小锐同学;2088837
lucifer@cross:~$ sudo /etc/init.d/vsftpd restart
[sudo] password for lucifer:
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service vsftpd 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 vsftpd
vsftpd start/running, process 2464
lucifer@cross:~$


以前在9.10的时候是可以这样重启的。
现在启动也不行,该怎么办呢?

lucifer@cross:~$ sudo /etc/init.d/vsftpd start
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service vsftpd start

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start vsftpd
vsftpd start/running, process 2503
lucifer@cross:~$


它已经告诉你了,使用
sudo service vsftpd restart
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-5-9 22:22:46 | 显示全部楼层
抓狂。。
我的错。

对不起浪费大家时间了。。。

内疚,对不起对不起,原谅我吧。。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表