2、编译vsftpd源码64位的系统编译之前先要执行cp /lib64/libcap.so.1 /lib/libcap.so.1命令: tar xzvf vsftpd-2.3.4.tar.gz cd vsftpd-2.3.4 make make install 3、配置vsftpd cp vsftpd.conf /etc cp RedHat/vsftpd.pam /etc/pam.d/ftp sed i 's/anonymous_enable/#anonymous_enable=YES/g' /etc/vsftpd.conf sed i 's/#local_enable=YES/local_enable=YES/g' /etc/vsftpd.conf sed i 's/#write_enable=YES/write_enable=YES/g' /etc/vsftpd.conf sed i 's/#local_umask=022/local_umask=022/g' /etc/vsftpd.conf sed i 's/#chroot_local_user=YES/chroot_local_user=YES/g' /etc/vsftpd.conf 4、启动vsftpd并设置开机启动 /usr/local/sbin/vsftpd & sed -i '$a/usr/local/sbin/vsftpd &' /etc/rc.d/rc.local 5、添加FTP用户(用户名:ftpuser ftp根目录/home/wwwroot/ftpuser) useradd -d /home/wwwroot/ftpuser -g ftp -s /sbin/nologin ftpuser