1. 程式人生 > >一個伺服器上部署兩個FTP服務

一個伺服器上部署兩個FTP服務

環境:Ubuntu 13.04

vsftpd: version 3.0.2

原本的伺服器上已經有一個FTP服務(預設埠),現在需要再設定一個。

百度後,找了個簡單的方法。

1,複製已有的FTP服務的配置檔案/etc/vsftpd.conf命名為/etc/vsftpd1.conf

2,編輯/etc/vsftpd1.conf

(1)設定新的FTP服務的路徑

local_root=/home/cloud/***/mounts/EXPORT/

(2)設定新FTP服務的埠:

listen_port=19994     #19994為新服務的埠號

3,啟動新的FTP服務:

sudo /usr/sbin/vsftpd /etc/vsftpd1.conf &

4,檢測,在瀏覽器中輸入:

成功則顯示目標目錄檔案


5,後臺檢視:

$ ps uax|grep vsftp
root      1337  0.0  0.0  25656  1076 ?        Ss   Oct23   0:00 /usr/sbin/vsftpd
cloud    10349  0.0  0.0   6560   904 pts/4    S+   11:03   0:00 grep --color=auto vsftp
root     26607  0.0  0.0  49112  1940 ?        S    Dec16   0:00 sudo /usr/sbin//vsftpd /etc/vsftpd1.conf
root     26608  0.0  0.0  25656  1476 ?        S    Dec16   0:00 /usr/sbin//vsftpd /etc/vsftpd1.conf

6,遺留問題:

在後臺殺死原有的服務後會自啟動,而新加的服務不行,待查

檢視:

http://jinhuiliy.blog.163.com/blog/static/4961185420121021102648863/

http://www.linuxso.com/linuxxitongguanli/778.html

http://www.chinaz.com/server/2008/0925/39245.shtml