Chinaunix首页 | 论坛 | 博客
  • 博客访问: 74467
  • 博文数量: 29
  • 博客积分: 2000
  • 博客等级: 大尉
  • 技术积分: 337
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-24 20:02
文章分类

全部博文(29)

文章存档

2011年(1)

2009年(1)

2008年(27)

我的朋友

分类:

2008-12-16 19:11:46

打开官方下载链接: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.

阅读(1435) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~