Linux(CentOS)安装vsftpd过程

Linux(CentOS)安装vsftpd过程

最近在百度云开了6个月的服务器,拿来练练手,首选就是需要上传项目

  1. 查看是否安装 vsftpd
    rpm -qa|grep vsftpd
  2. 安装vsftpd
    yum -y install vsftpd
    3.vsftpd配置。该增加的增加,该打开的打开
    vim /etc/vsftpd/vsftpd.conf
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES

chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list
listen=YES
//ipv6设置为no
listen_ipv6=NO
local_root=/ftpfile
anon_root=/ftpfile
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
  1. 启动
service vsftpd restart
  1. 设置iptables 防火墙
vim /etc/sysconfig/iptables-config
增加
IPTABLES_MODULES="ip_nat_ftp ip_conntrack_ftp"
新增21端口
vim /etc/sysconfig/iptables
iptables -A INPUT -p tcp --dport 21 -m stata --stateNEW,ESTABLISHED -j ACCEPT
  1. 重启防火墙
service iptables restart
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值