Centos編譯安裝Proftpd
ProFTPD是繼Wu-FTP之后最為流行的FTP服務器軟件。我?guī)Т蠹铱纯?strong>Centos是如何編譯安裝Proftpd。
centos不能直接yum安裝proftpd,有兩種方法可解決:
1、用yum安裝ProFTPD需要定義非官方的庫。
2、手動編譯。
這里就說說怎樣手動編譯。
先下載proftpd
wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.3.tar.gz
編譯前記得安裝gcc、gcc-c++、make等
tar zxvf proftpd-1.3.3.tar.gz
cd proftpd-1.3.3
./configure --prefix=/usr/local/proftpd
make
make install
編輯啟動腳本:
cd proftpd-1.3.2
拷貝 proftpd.init.d 到 /etc/rc.d/init.d 文件夾中,重命名為proftpd
cp contrib/dist/rpm/proftpd.init.d /etc/rc.d/init.d/proftpd
編輯/etc/rc.d/init.d/proftpd,找到文件行開頭是PATH行,改成安裝proftpd所在的目錄
vim /etc/rc.d/init.d/proftpd
PATH="$PATH:/usr/local/proftpd/sbin:/usr/local/proftpd/bin"
增加/etc/rc.d/init.d/proftpd執(zhí)行權(quán)限
chmod +x /etc/rc.d/init.d/proftpd
修改配置文件,把有關(guān)組的注釋掉
vim /usr/local/proftpd/etc/proftpd.conf
centos開啟proftpd服務
chkconfig --level 35 proftpd on
chkconfig --add proftpd
service proftpd start
通過本文的描寫,其實Centos編譯安裝Proftpd 很簡單。
【編輯推薦】