分页: 1 / 1
Ubuntu10.04如何重启服务?
发表于 : 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:~$
Re: Ubuntu10.04如何重启服务?
发表于 : 2010-05-09 8:17
由 rediscover
代码: 全选
sudo service vsftpd restart
Re: Ubuntu10.04如何重启服务?
发表于 : 2010-05-09 8:38
由 ghostry

现在还是这样啊
Re: Ubuntu10.04如何重启服务?
发表于 : 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:~$

Re: Ubuntu10.04如何重启服务?
发表于 : 2010-05-12 16:35
由 hyyshilei

关注!我也 遇到类似问题,用了10.04以后发现不会启动服务了,很郁闷,望高手指点~~~
Re: Ubuntu10.04如何重启服务?
发表于 : 2010-05-12 16:46
由 delectate
我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
Re: Ubuntu10.04如何重启服务?
发表于 : 2010-08-03 23:12
由 caspersf
我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 上面提示找不到进程啊
Re: Ubuntu10.04如何重启服务?
发表于 : 2010-12-06 13:43
由 wawfer
怎么没有高手说明解决的办法啊。。。

Re: Ubuntu10.04如何重启服务?
发表于 : 2010-12-06 14:15
由 eexpress
2楼不是都说了。
现在不用init.d了。使用/etc/init目录。标准的命令使用,就是service
Re: Ubuntu10.04如何重启服务?
发表于 : 2010-12-06 14:44
由 wawfer
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
Re: Ubuntu10.04如何重启服务?
发表于 : 2010-12-06 14:46
由 wawfer
vsftpd start/running, process 1023
这个意思是重启过了?
我以前一直用的是red hat 。。。
Re: Ubuntu10.04如何重启服务?
发表于 : 2011-01-20 16:02
由 suny2008
请问楼主解决了没有?我现在也是遇到这种问题。。。。
小锐同学 写了: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:~$
Re: Ubuntu10.04如何重启服务?
发表于 : 2011-03-28 12:30
由 evremonder
我尝试了下,可以直接 用
$sudo /etc/init.d/服务名 {start|restart|stop}这样就可以了
Re: Ubuntu10.04如何重启服务?
发表于 : 2012-03-15 14:35
由 huadie
楼主解决这个问题了吗。我也遇到了啊
Re: Ubuntu10.04如何重启服务?
发表于 : 2015-02-08 16:08
由 Lanyd518
其实那个提示应该是表示已经启动成功了