“sudo service vsftpd”返回“未知作业:vsftpd”[关闭]

Modified on: Sat, 30 Jun 2018 09:24:00 +0800

我在ubuntu 14.04上安装了vsftpd,当我想停止或重启vsftpd服务时,这条消息显示并且服务状态没有任何变化!

root@ali-lap:/home/ali# service vsftpd restart
stop: Unknown job: vsftpd
start: Unknown job: vsftpd

我清除vsftpd并根据对此帖子再次重新安装改变。

安装和删除日志:

root@ali-lap:/home/ali# apt-get purge --remove vsftpd 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  vsftpd*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 370 kB disk space will be freed.
Do you want to continue? [Y/n] 
(Reading database ... 216263 files and directories currently installed.)
Removing vsftpd (3.0.2-1ubuntu2) ...
initctl: Unknown job: vsftpd
Purging configuration files for vsftpd (3.0.2-1ubuntu2) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for man-db (2.6.6-1) ...
root@ali-lap:/home/ali# ls -lpa /etc/vsftpd
vsftpd/           vsftpd.conf.orig  
root@ali-lap:/home/ali# ls -lpa /etc/vsftpd.conf
ls: cannot access /etc/vsftpd.conf: No such file or directory
root@ali-lap:/home/ali# apt-get install vsftpd 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  vsftpd
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/112 kB of archives.
After this operation, 370 kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package vsftpd.
(Reading database ... 216210 files and directories currently installed.)
Preparing to unpack .../vsftpd_3.0.2-1ubuntu2_amd64.deb ...
Unpacking vsftpd (3.0.2-1ubuntu2) ...
Processing triggers for man-db (2.6.6-1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up vsftpd (3.0.2-1ubuntu2) ...
initctl: Unknown job: vsftpd
Processing triggers for ureadahead (0.100.0-16) ...
root@ali-lap:/home/ali# ls -lpa /etc/vsftpd.conf
-rw-r--r-- 1 root root 5654 مه    16  2013 /etc/vsftpd.conf

vsftpd版本:

root@ali-lap:/home/ali# apt-cache policy vsftpd 
vsftpd:
  Installed: 3.0.2-1ubuntu2
  Candidate: 3.0.2-1ubuntu2
  Version table:
 *** 3.0.2-1ubuntu2 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

有什么想法吗?

作者:Community,alireza

最佳答案

尝试使用sudo,它似乎是一个错误,或者您没有权限通过root服务。

$ sudo service vsftpd status

应该工作,现在确实在我面前为我工作。


相关问答

添加新评论