打开官方下载链接:ftp://vsftpd.beasts.org/users/cevans/vsftpd-2.0.7.tar.gz
下载到一个临时目录,如/home/user
$cd /home/user
$tar zxvf vsftpd-2.0.7.tar.gz //解压
$cd vsftpd-2.0.7
$make
出现错误:
sysdeputil.c:162: 错误: expected declaration specifiers or ‘...’ before ‘capset’
sysdeputil.c:162: 错误: expected declaration specifiers or ‘...’ before ‘header’
sysdeputil.c:162: 错误: expected declaration specifiers or ‘...’ before ‘data’
In file included from sysdeputil.c:170:
/usr/include/sys/sendfile.h: 在函数‘_syscall2’中:
/usr/include/sys/sendfile.h:35: 错误: 为形参‘sendfile’指定了存储类
sysdeputil.c:186: 错误: 为形参‘environ’指定了存储类
...
这是因为依赖包(libpam0g-dev libcap-dev libwrap0-dev libssl-dev
)没有安装
sudo apt-get install libpam0g-dev libcap-dev libwrap0-dev libssl-dev
$make
编译成功。
$sudo make install
安装成功。
$ sudo /usr/local/sbin/vsftpd &
[1] 6715
$ ftp 127.0.0.1
Connected to 127.0.0.1.
220 (vsFTPd 2.0.7)
Name (127.0.0.1:aiby): ftp
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
226 Directory send OK.
ftp> exit
221 Goodbye.
阅读(1462) | 评论(0) | 转发(0) |