Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7161
  • 博文数量: 9
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 10
  • 用 户 组: 普通用户
  • 注册时间: 2017-03-21 11:49
文章分类
文章存档

2017年(9)

我的朋友
最近访客

分类:

2017-03-21 12:38:21

原文地址:ftp上传下载配置 作者:dyli2000

[root@localhost home]# chkconfig --list|grep ip
ip6tables          0:关闭    1:关闭    2:启用    3:启用    4:启用    5:启用    6:关闭
iptables           0:关闭    1:关闭    2:启用    3:启用    4:启用    5:启用    6:关闭
multipathd         0:关闭    1:关闭    2:关闭    3:关闭    4:关闭    5:关闭    6:关闭
[root@localhost home]# service iptables stop
iptables:清除防火墙规则:                                 [确定]
iptables:将链设置为政策 ACCEPT:filter                    [确定]
iptables:正在卸载模块:                                   [确定]
[root@localhost home]# chkconfig --list|grep ip
ip6tables          0:关闭    1:关闭    2:启用    3:启用    4:启用    5:启用    6:关闭
iptables           0:关闭    1:关闭    2:启用    3:启用    4:启用    5:启用    6:关闭
multipathd         0:关闭    1:关闭    2:关闭    3:关闭    4:关闭    5:关闭    6:关闭
[root@localhost home]#

 

[root@localhost home]# vim /etc/vsftpd/vsftpd.conf

# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES                         //开启匿名账户

 

# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
anon_upload_enable=YES                       //匿名账户可上传

 

# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
anon_mkdir_write_enable=YES                 //匿名账户可以创建文件夹 

 

#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES                     //似乎使用的是20端口

 

[root@localhost ftp]# service vsftpd restart
关闭 vsftpd:                                              [确定]
为 vsftpd 启动 vsftpd:                                    [确定]
[root@localhost ftp]# pstree |grep vs
     |-vsftpd
[root@localhost ftp]#

阅读(286) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~