VSFTPD 不工作

Nik*_* R. 5 ftp vsftpd amazon-ec2

我也按照说明其他说明进行操作,但由于它不方便用户使用,因此 ftp 服务器无法正常工作。

# This option specifies the location of the RSA key to use for SSL
# encrypted connections.
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
pasv_enable=YES
pasv_addr_resolve=YES
#user ddns address
pasv_address=54.... (my ip)
#choose and range you like
pasv_min_port=1024
pasv_max_port=1048
Run Code Online (Sandbox Code Playgroud)

然后:

~$ sudo service vsftpd status
vsftpd stop/waiting
ubuntu@ip:~$ sudo service vsftpd restart
stop: Unknown instance: 
vsftpd start/pre-start, process 9711
Run Code Online (Sandbox Code Playgroud)

但无法与 ftp 客户端连接。我在安全组中打开了端口并重新安装了所有内容,仍然无法正常工作。可以做什么?默认情况下什么不能工作?我尝试连接我添加的用户帐户useradd

$ sudo vsftpd
500 OOPS: munmap

$ service vsftpd begin
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service vsftpd begin

The script you are attempting to invoke has been converted to an Upstart
job, but begin is not supported for Upstart jobs.
Run Code Online (Sandbox Code Playgroud)

mon*_*kut 3

您已经回答了自己的问题,但我将继续将其放在这里,供其他来到这里的人使用。

正如 @Programmer-400 提到的那样,使用proftpd,并且不必费心尝试解析 vsftpd。我查了一下,似乎对于ubuntu 14.04来说,在一些相关库的深处有一个错误,但尚未解决。

apt-get install proftpd

安装没有问题,也vsftpd一路卸载。配置同样简单。

http://www.liquidweb.com/kb/how-to-install-and-configure-proftpd-on-ubuntu-14-04-lts/