mancha 发表于 2013-1-7 08:55:03

FTP的安装方法

方法一用xinetd安装:用xinetd
# tar fvxz proftpd-1.3.3 tar.gz -C
# ls
anaconda-ks.cfginstall.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
# cd proftpd-1.3.3
# ./configure --prefix=/usr/local/proftpd --enable-shadow --enable-autoshadow --with-modules=mod_ratio:mod_readme:mod_wrap
# make && make install
# cd /usr/local/proftpd/
# ls
binetcincludeliblibexecsbinsharevar
如果有man这个文件需要在配置文件里添加 proftpd的路径
# vim /etc/man.config
在文件最后一行添加,然后保存
MANPATH /usr/local/proftpd/man
# 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
}
# vim /usr/local/proftpd/etc/proftpd.conf
ServerType                      inetd   在ServerType下添加 这条命令
Group                           nobody把nogroup改成noboy,因为没有group这个组
# service xinetd restart
停止 xinetd:                                              [确定]
启动 xinetd:                                              [确定]
# netstat -antlp | grep :21
tcp      0      0 0.0.0.0:21                  0.0.0.0:*               LISTEN      20521/xinetd      
方法二:
在作vsftp之前先停止xinetd服务因为两个端口号一样,
# service xinetd stop
停止 xinetd:                                              [确定]
# cd proftpd-1.3.3
# ls
# ./configure --prefix=/usr/local/proftpd enable-shadow --enable-autoshadow --usrwithmodules=mod_ratio:mod_readme:mod_wrap
# make && make install
# cd contrib/dist/rpm/
# ls
ftp.pamdproftpd.init.dproftpd.init.d.suseproftpd.logrotatexinetd
# cp contrib/dist/rpm/proftpd.init.d /etc/init.d/proftpd
# service proftpd restart
proftpd: 未被识别的服务
# cd /etc/init.d/
# ls
# ll
#cd /etc/init.d/
#ll加权限
# chmod 755 proftpd
# service proftpd restart
Shutting down proftpd:                                     [失败]
Starting proftpd: /bin/bash: proftpd: command not found
                                                                         [失败]
# vim proftpd
PATH="$PATH:/usr/local/proftpd/sbin"    添加个proftpd
# service proftpd restart
Shutting down proftpd:                                     [失败]
Starting proftpd:- Fatal: Group: Unknown group 'nogroup' on line 30 of '/usr/local/proftpd//etc/proftpd.conf'
                                                                        [失败]
# vim /usr/local/proftpd/etc/proftpd.conf
Group                           nobody               在第30行 改成noboy
# service proftpd restart
Shutting down proftpd:                                     [确定]
Starting proftpd:                                              [确定]
# netstat -antlp | grep :21
tcp      0      0 0.0.0.0:21                  0.0.0.0:*                  LISTEN      16612/proftpd: (acc

y23335793 发表于 2013-3-14 00:01:42

帮帮顶顶!!

tubaobaoya3 发表于 2013-5-16 00:27:34

饭在锅里,我在床上*^_^*

yinl_li 发表于 2013-5-16 13:19:30

商女不知亡国恨、妓女不懂婚外情。

chinaab 发表于 2013-5-17 01:04:19

天塌下来你顶着,我垫着!

王艳玲 发表于 2013-5-17 10:58:35

佛曰,色即是空,空即是色!今晚,偶想空一下

花蜻宽 发表于 2013-5-17 22:44:50

小手一抖,钱钱到手!
页: [1]
查看完整版本: FTP的安装方法