linux ftp 文件大小不一致,如何实现Linux FTP服务不区分大小写?

1) 官网http://www.proftpd.org/下载最新proftpd(proftpd-1.3.6.tar.gz)安装包

2) 官网http://www.castaglia.org/proftpd/下载最新mod case模块(proftpd-mod-case-0.7.tar.gz),并本地解压提取mod_case.c文件

3) 上传proftpd(proftpd-1.3.6.tar.gz)安装包至网管服务器

4) 解压proftpd安装包至当前目录

#tar -zxvf proftpd-1.3.6.tar.gz

5) 上传mod_case.c文件模块至proftpd-1.3.6/contrib目录

6) 编译并安装proftpd服务

#cd proftpd-1.3.6

#./configure --prefix=/usr/local/proftpd --sysconfdir=/etc/proftpd --with-modules=mod_case

#make

#make install

7) 编辑 /etc/proftpd/proftpd.conf,按照如下蓝色标注修改内容:

注意:以下MaxClients是新添加内容。

# To prevent DoS attacks, set the maximum number of child processes

# to 30.  If you need to allow more than 30 concurrent connections

# at once, simply increase this value.  Note that this ONLY works

# in standalone mode, in inetd mode you should use an inetd server

# that allows you to limit maximum number of processes per service

# (such as xinetd).

MaxInstances   150

MaxClients    100

# Set the user and group under which the server will run.

User    root

Group   root

8) 编辑 /etc/proftpd/proftpd.conf,添加如下蓝色标注添加内容:

ServerName                      "ProFTPD Default Installation"

ServerType                          standalone

DefaultServer                      on

# Enable case-insensitivity for all FTP commands handled by mod_case

CaseEngine on

CaseIgnore RETR

RootLogin on

# Port 21 is the standard FTP port.

Port                            21

9) 将附件proftpd(随机启动脚本)上传至/etc/rc.d/init.d目录

10) 关闭操作系统其它FTP服务(service vsftpd stop/chkconfig vsftpd off)

11) 设置proftpd随机启动

#chmod +x /etc/rc.d/init.d/proftpd

#chkconfig --add proftpd

#chkconfig proftpd on

12) 重启机器

#init 6

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值