1.安装
cd /usr/local/
tar -zxvf /usr/local/src/proftpd-1.3.0.tar.gz
./configure --prefix=/usr/local/proftpd shdow --enable-autoshadow --with-modules=mod_ratio:mod_readme:mod_wrap
make; make install
cd /usr/local/
tar -zxvf /usr/local/src/proftpd-1.3.0.tar.gz
./configure --prefix=/usr/local/proftpd shdow --enable-autoshadow --with-modules=mod_ratio:mod_readme:mod_wrap
make; make install
2.把FTP添加到super daemon
vi /etc/xinetd.d/proftpd
vi /etc/xinetd.d/proftpd
内容如下:
service ftp
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/local/proftpd/sbin/proftpd
server_args = -c /usr/local/proftpd/etc/proftpd.conf
log_on_success += DURATION USERID
log_on_failure += USERID
}
service ftp
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/local/proftpd/sbin/proftpd
server_args = -c /usr/local/proftpd/etc/proftpd.conf
log_on_success += DURATION USERID
log_on_failure += USERID
}
3.
vi /usr/local/proftpd/etc/proftpd.conf
ServerType standalone -> inetd
Group nogroup ->nobody
vi /usr/local/proftpd/etc/proftpd.conf
ServerType standalone -> inetd
Group nogroup ->nobody
4./etc/rc.d/init.d/xinetd restart