Chinaunix首页 | 论坛 | 博客
  • 博客访问: 12371248
  • 博文数量: 1293
  • 博客积分: 13501
  • 博客等级: 上将
  • 技术积分: 17974
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-08 18:11
文章分类

全部博文(1293)

文章存档

2019年(1)

2018年(1)

2016年(118)

2015年(257)

2014年(128)

2013年(222)

2012年(229)

2011年(337)

分类:

2012-05-03 20:46:18

[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]#

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