ftpd.service 加载失败:没有此文件或目录

ftpd.service 加载失败:没有此文件或目录
$ sudo apt-get install ftpd
Reading package lists... Done                         
Building dependency tree                              
Reading state information... Done                                                                                                                                                                         
The following packages were automatically installed and are no longer required:                                                                                                                           
  ax25-node libax25 linux-headers-3.19.0-15 linux-headers-3.19.0-15-generic linux-image-3.19.0-15-generic linux-image-extra-3.19.0-15-generic linux-signed-image-3.19.0-15-generic                        
Use 'apt-get autoremove' to remove them.                                                                                                                                                                  
The following NEW packages will be installed:                                                                                                                                                             
  ftpd                                                                                                                                                                                                    
0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded.                                                                                                                                            
Need to get 0 B/48.9 kB of archives.                                                                                                                                                                      
After this operation, 146 kB of additional disk space will be used.                                                                                                                                       
Selecting previously unselected package ftpd.                                                                                                                                                             
(Reading database ... 359757 files and directories currently installed.)                                                                                                                                  
Preparing to unpack .../ftpd_0.17-34_amd64.deb ...                                                                                                                                                        
Unpacking ftpd (0.17-34) ...                                                                                                                                                                              
Processing triggers for man-db (2.7.0.2-5) ...                                                                                                                                                            
Setting up ftpd (0.17-34) ...                                                                           

现在运行它

$ sudo service ftpd start
Failed to start ftpd.service: Unit ftpd.service failed to load: No such file or directory.  

答案1

你必须

/etc/init.d/openbsd-inetd start

由于 ftpd 是inetd

答案2

ftpd即使启动了这个名称令人困惑的服务,我还是无法开始工作,openbsd-inetd所以我只是切换到pure-ftpd似乎立即启动并监听端口 21 的服务。目标似乎inetd是简化事情,但这不是我的经验。

相关内容