Ubuntu10.04如何重启服务?

上网、浏览、聊天、下载等
回复
头像
小锐同学
帖子: 314
注册时间: 2009-08-14 16:24

Ubuntu10.04如何重启服务?

#1

帖子 小锐同学 » 2010-05-08 23:43

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:~$
我很乖的。。。
rediscover
帖子: 3173
注册时间: 2010-01-13 23:26

Re: Ubuntu10.04如何重启服务?

#2

帖子 rediscover » 2010-05-09 8:17

代码: 全选

sudo service vsftpd restart
Here I am.
Ubuntu 桌面培训 - 全中文官方文档,含汉化截图,提供PDF
头像
ghostry
帖子: 1532
注册时间: 2008-07-23 20:08
来自: http://www.ghostry.cn
联系:

Re: Ubuntu10.04如何重启服务?

#3

帖子 ghostry » 2010-05-09 8:38

:em20 现在还是这样啊
http://www.ghostry.cn狂网技术工作室,组网建站,平面设计,java项目,空间域名.
好心人点这里进去注册并且用一次,给我增加点流量http://tinyurl.com/272ncjl
电脑配置:
公司:880G/II250/1TB/2G1333/
家:785G+/II245+/1TB/2G677/
头像
小锐同学
帖子: 314
注册时间: 2009-08-14 16:24

Re: Ubuntu10.04如何重启服务?

#4

帖子 小锐同学 » 2010-05-09 10:56

不行啊,启动就说。。额。。说什么。
重启跟停止都说未知的实例。
用ftp链接都不行的。在浏览器里链接也不行。

lucifer@cross:~$ sudo service vsftpd start
vsftpd start/running, process 2713
lucifer@cross:~$ sudo service vsftpd restart
restart: Unknown instance:
lucifer@cross:~$ sudo service vsftpd stop
stop: Unknown instance:
lucifer@cross:~$ ftp 10.0.33.62
ftp: connect: Connection refused
ftp> lucifer@cross:~$
:em20
我很乖的。。。
hyyshilei
帖子: 3
注册时间: 2008-10-09 11:39

Re: Ubuntu10.04如何重启服务?

#5

帖子 hyyshilei » 2010-05-12 16:35

:em06 关注!我也 遇到类似问题,用了10.04以后发现不会启动服务了,很郁闷,望高手指点~~~
delectate
帖子: 18311
注册时间: 2008-01-09 22:41

Re: Ubuntu10.04如何重启服务?

#6

帖子 delectate » 2010-05-12 16:46

我debian上直接杀进程的 :em06

其实提示说的很明显了……

use the service(8) utility, e.g. service vsftpd restart

use the restart(8) utility, e.g. restart vsftpd
vsftpd start/running, process 2464
caspersf
帖子: 2
注册时间: 2010-08-03 19:17

Re: Ubuntu10.04如何重启服务?

#7

帖子 caspersf » 2010-08-03 23:12


我debian上直接杀进程的
其实提示说的很明显了……
use the service(8) utility, e.g. service vsftpd restart
use the restart(8) utility, e.g. restart vsftpd
vsftpd start/running, process 2464
问题是 ubuntu 上面提示找不到进程啊
wawfer
帖子: 3
注册时间: 2009-01-07 13:13

Re: Ubuntu10.04如何重启服务?

#8

帖子 wawfer » 2010-12-06 13:43

怎么没有高手说明解决的办法啊。。。 :em20
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: Ubuntu10.04如何重启服务?

#9

帖子 eexpress » 2010-12-06 14:15

2楼不是都说了。

现在不用init.d了。使用/etc/init目录。标准的命令使用,就是service
● 鸣学
wawfer
帖子: 3
注册时间: 2009-01-07 13:13

Re: Ubuntu10.04如何重启服务?

#10

帖子 wawfer » 2010-12-06 14:44

root@wfer:~# netstat -antup
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 787/mysqld
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 792/apache2
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 1013/vsftpd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 696/sshd
tcp 0 52 218.28.132.36:22 218.28.132.34:3389 ESTABLISHED 945/0
tcp6 0 0 :::22 :::* LISTEN 696/sshd
root@wfer:~# service vsftpd restart
vsftpd start/running, process 1023
root@wfer:~# netstat -antup
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 787/mysqld
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 792/apache2
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 1023/vsftpd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 696/sshd
tcp 0 52 218.28.132.36:22 218.28.132.34:3389 ESTABLISHED 945/0
tcp6 0 0 :::22 :::* LISTEN 696/sshd
wawfer
帖子: 3
注册时间: 2009-01-07 13:13

Re: Ubuntu10.04如何重启服务?

#11

帖子 wawfer » 2010-12-06 14:46

vsftpd start/running, process 1023

这个意思是重启过了?

我以前一直用的是red hat 。。。
suny2008
帖子: 26
注册时间: 2009-04-26 13:38

Re: Ubuntu10.04如何重启服务?

#12

帖子 suny2008 » 2011-01-20 16:02

请问楼主解决了没有?我现在也是遇到这种问题。。。。


小锐同学 写了: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:~$
头像
evremonder
帖子: 33
注册时间: 2009-02-16 11:59

Re: Ubuntu10.04如何重启服务?

#13

帖子 evremonder » 2011-03-28 12:30

我尝试了下,可以直接 用

$sudo /etc/init.d/服务名 {start|restart|stop}这样就可以了
huadie
帖子: 4
注册时间: 2012-02-28 12:43

Re: Ubuntu10.04如何重启服务?

#14

帖子 huadie » 2012-03-15 14:35

楼主解决这个问题了吗。我也遇到了啊
Lanyd518
帖子: 46
注册时间: 2015-01-15 18:02
系统: ubuntu 10.04

Re: Ubuntu10.04如何重启服务?

#15

帖子 Lanyd518 » 2015-02-08 16:08

其实那个提示应该是表示已经启动成功了
回复