作者:IHH_MCWONG_142 | 来源:互联网 | 2014-05-28 09:12
方法一xinetd安装:xinetd[root@localhost~]#tarfvxzproftpd-1.3.3tar.gz-C[root@localhost~]#lsanaconda-ks.cfginstall.log.syslogDesktopproftpd-1.3.3fstabproftpd-1.3.3.tar.
方法一
xinetd安装:
xinetd
[root@localhost ~]# tar fvxz
proftpd-1.3.3 tar.gz
-C
[root@localhost ~]# ls
anaconda-ks.cfg install.log.syslog
Desktop proftpd-1.3.3 fstab proftpd-1.3.3.tar.gz install.log
unrar-3.5.4-1.2.fc4.src.rpm
[root@localhost ~]# cd proftpd-1.3.3
[root@localhost proftpd-1.3.3]# ./configure
--prefix=/usr/local/proftpd --enable-shadow --enable-autoshadow
--with-modules=mod_ratio:mod_readme:mod_wrap
[root@localhost proftpd-1.3.3]# make && make install
[root@localhost proftpd-1.3.3]# cd /usr/local/proftpd/
[root@localhost proftpd]# ls
bin etc include lib libexec sbin share var
如果有man这个文件需要在配置文件里添加 proftpd的路径
[root@localhost proftpd]# vim /etc/man.config
在文件最后一行添加,然后保存
MANPATH /usr/local/proftpd/man
[root@localhost xinetd.d]# vim 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
}
[root@localhost xinetd.d]# vim
/usr/local/proftpd/etc/proftpd.conf
ServerType inetd 在ServerType下添加 这条命令
Group nobody 把nogroup改成noboy,因为没有group这个组
[root@localhost xinetd.d]# service xinetd restart
停止 xinetd: [确定]
启动 xinetd: [确定]
[root@localhost xinetd.d]# netstat -antlp | grep :21
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 20521/xinetd
方法二:
在作vsftp之前先停止xinetd服务因为两个端口号一样,
[root@localhost ftp]# service xinetd stop
停止 xinetd: [确定]
[root@localhost ~]# cd proftpd-1.3.3
[root@localhost proftpd-1.3.3]# ls
[root@localhost proftpd-1.3.3]# ./configure
--prefix=/usr/local/proftpd enable-shadow --enable-autoshadow
--usrwithmodules=mod_ratio:mod_readme:mod_wrap
[root@localhost proftpd-1.3.3]# make && make install
[root@localhost proftpd-1.3.3]# cd contrib/dist/rpm/
[root@localhost rpm]# ls
ftp.pamd proftpd.init.d proftpd.init.d.suse proftpd.logrotate
xinetd
[root@localhost proftpd-1.3.3]# cp
contrib/dist/rpm/proftpd.init.d /etc/init.d/proftpd
[root@localhost proftpd-1.3.3]# service proftpd restart
proftpd: 未被识别的服务
[root@localhost proftpd-1.3.3]# cd /etc/init.d/
[root@localhost init.d]# ls
[root@localhost init.d]# ll
[root@localhost proftpd-1.3.3]#cd /etc/init.d/
[root@localhost init.d]#ll 加权限
[root@localhost init.d]# chmod 755 proftpd
[root@localhost init.d]# service proftpd restart
Shutting down proftpd: [失败]
Starting proftpd: /bin/bash: proftpd: command not found
[失败]
[root@localhost init.d]# vim proftpd
PATH="$PATH:/usr/local/proftpd/sbin" 添加个proftpd
[root@localhost init.d]# service proftpd restart
Shutting down proftpd: [失败]
Starting proftpd: - Fatal: Group: Unknown group 'nogroup' on
line 30 of '/usr/local/proftpd//etc/proftpd.conf'
[失败]
[root@localhost init.d]# vim
/usr/local/proftpd/etc/proftpd.conf
Group nobody 在第30行 改成noboy
[root@localhost init.d]# service proftpd restart
Shutting down proftpd: [确定]
Starting proftpd: [确定]
[root@localhost init.d]# netstat -antlp | grep :21
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 16612/proftpd: (acc