安装proftp
作者:互联网
安装proftp
1. 下载proftp
Shell> yum –y install proftpd
2. 下载连接工具
Shell> yum –y install ftp
3. 建立共享目录
Shell> mkdir /workspace/proftpdata
4. 创建启动用户及组
Shell> useradd -d /workspace/proftpdata -s /sbin/nologin ftpuser
Shell> passwd ftpuser
5. 共享目录绑定用户权限
Shell> chown ftpuser:ftpuser /workspace/proftpdata
6. 修改proftp配置文件
Shell> vim /etc/proftpd.conf
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
#TraceLog /var/log/proftpd/trace.log
#Trace DEFAULT:0
ServerName "water server" #服务器名称
ServerIdent on "FTP Server ready."
ServerAdmin root@localhost
DefaultServer on
Port 211 #ftp连接端口
..............
# Don't do reverse DNS lookups (hangs on DNS problems)
UseReverseDNS off #关闭DNS反向查询,节省连接时间
# Set the user and group that the server runs as
User nobody #以nobody,nogroup的身份运行程序
Group nobody
.......................
# (such as xinetd)
MaxInstances 30 #连接的间隔时间
# Disable sendfile by default since it breaks displaying the download speeds in
# ftptop and ftpwho
UseSendfile off #不测试平台优化
</IfDefine>
SystemLog /var/log/proftpd/proftpd.log
TransferLog /var/log/proftpd/xferlog
# Allow users to overwrite files and change permissions
AllowOverwrite yes #允许文件可以重新写
<Limit ALL SITE_CHMOD>
AllowAll
</Limit>
PassivePorts 60000 65534 #指定数据端口的范围
ShowSymlinks off
DefaultRoot /workspace/proftpdata #ftp的根目录,限制用户只能访问自己的目录
</Global>
UseIPv6 off
DefaultTransferMode binary
*******************************************************************************
7. 启动
Shell> systemctl start proftpd
8. 登陆验证
Shell> ftp localhost 211
9. 查看日志
Shell> tail –f /var/log/proftpd/proftpd.log
下载安装filezilla连接登录
标签:ftp,Shell,ftpuser,log,proftpd,proftpdata,安装,proftp 来源: https://blog.csdn.net/yangenguang/article/details/120985614