一、vsFTPd的安裝
在最新的各大發行版中的安裝盤中都有vsFTPd的軟件包,用相應發行版提供的軟件包管理工具就能安裝。當然也可以到各大發行版的FTP鏡像中找到vsftpd的軟件包,用軟件包的管理工具在線安裝。推薦用發行版提供的軟件來安裝,不推薦自己編譯源碼包的安裝方式。
Fedora 或Redhat 系統,可以用下面的命令在線安裝;
[root@localhost ~]# yum install vsftpd
如果是debian 類系統,可以用apt 來在線安裝;
[root@localhost ~]# apt-get install vsftpd
如果是RPM的系統,也可以找到vsftpd-xxxx.rpm 的包來通過rpm命令來安裝;
[root@localhost ~]# rpm -ivh vsftpd*.rpm
二、下載源碼包安裝
[root@localhost ~]# tar zxvf vsftpd-2.0.3.tar.gz
[root@localhost ~]# cd vsftpd-2.0.3
[root@localhost ~]# make ;make install
[root@localhost ~]# cp vsftpd.conf /etc
然後修改/etc/vsftpd.conf ,在配置文件的最後一行加入下面一行;
listen=yes
源碼包安裝的方法,如果您的系統是RPM包管理的系統,可以刪除/etc/xinetd.d/vsftpd 這個文件;然後啓動xinetd 服務器;
[root@localhost ~]# /etc/init.d/xinetd restart
停止 xinetd: [ 確定 ]
啓動 xinetd: [ 確定 ]