vsftpd安裝教程

來源:互聯網
上載者:User
vsftpd安裝教程


安裝其實很簡單的,一般的情況按照裡面的install就可以安裝成功(我的CENTOS 4.4)

現在把我的安裝過程寫出來給大家分享:

1.解壓並編譯軟體

# tar xzvf vsftpd-2.0.5.tar.gz
# cd vsftpd-2.0.5
#make 
這時將產生一個二進位檔案,驗證一下,形如: 
#ls -l vsftpd 
-rwxr-xr-x  1 root root 83740 Dec 29 10:09 vsftpd

2.滿足VSFTPD安裝所需的一些條件 

VSFTPD預設設定需要一個"nobody"使用者,如果這個使用者不存在,那麼添加它。如下: 
# useradd nobody
useradd: user nobody exists

VSFTPD預設設定需要一個空目錄:/usr/share/empty,增加這個目錄,如果它還不存在的話。如下: 
# mkdir /usr/share/empty/ 
mkdir: cannot create directory `/usr/share/empty': File exists

建立一個"ftp"使用者(如果它還不存在的話),/var/ftp/就是FTP的根目錄,可換成其它的。 
# mkdir /var/ftp/ 
# useradd -d /var/ftp ftp 
#chown root.root /var/ftp 
#chmod og-w /var/ftp

3.安裝VSFTPD的配置、執行和協助檔案。 

#mkdir /usr/local/man

#mkdir /usr/local/man/man5 
#mkdir /usr/local/man/man8 
#make install 
#cp vsftpd.conf /etc

4.編輯/etc/vsftpd.conf,在最下面加入以下這一行:listen=YES

5.測試, 
# /usr/local/sbin/vsftpd & 
註:若要開機自動啟動vsFTPd,請在/etc/rc.d/rc.local中加入:/usr/local/sbin/vsftpd & 

#啟動方式有很多種,最常用的就是:

# /usr/local/sbin/vsftpd & 來啟動

#kill 來關閉
如果一切正常,那麼你將連上FTP伺服器,形如: 
$ ftp localhost 
Connected to localhost (127.0.0.1). 
220 (vsFTPd 1.1.1) 
Name (localhost:chris): ftp 
331 Please specify the password. 
Password: 
230 Login successful. Have fun. 
Remote system type is UNIX. 
Using binary mode to transfer files. 
ftp> ls 
227 Entering Passive Mode (127,0,0,1,229,133) 
150 Here comes the directory listing. 
226 Directory send OK. 
ftp> quit  到這裡最基本的安裝就算成功了。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.