CentOS下vsftpd安装及设置

1、检测是否安装了vsftpd

 

rpm -qa | grep vsftpd

vsftpd-2.0.5-16.el5_5.1

 

2、在线安装vsftpd

 

[root@localhost init.d]# yum -y install vsftpd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: mirror.neu.edu.cn
 * base: mirror.neu.edu.cn
 * extras: mirror.neu.edu.cn
 * updates: mirror.neu.edu.cn
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package vsftpd.i386 0:2.0.5-16.el5_5.1 set to be updated
addons/filelists                                                          |  195 B     00:00     
base/filelists_db                                                         | 3.4 MB     00:15     
extras/filelists_db                                                       | 195 kB     00:01     
updates/filelists                                                         | 3.3 MB     00:24     
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================
 Package             Arch              Version                        Repository            Size
=================================================================================================
Installing:
 vsftpd              i386              2.0.5-16.el5_5.1               updates              141 k

Transaction Summary
=================================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 141 k
Downloading Packages:
vsftpd-2.0.5-16.el5_5.1.i386.rpm                                          | 141 kB     00:01     
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897
updates/gpgkey                                                            | 1.5 kB     00:00     
Importing GPG key 0xE8562897 "CentOS-5 Key (CentOS 5 Official Signing Key) <centos-5-key@centos.org>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : vsftpd                                                                    1/1 

Installed:
  vsftpd.i386 0:2.0.5-16.el5_5.1                                                                 

Complete!
[root@localhost init.d]# rpm -qa | grep vsftpd
vsftpd-2.0.5-16.el5_5.1

 

3、启动/停止服务

/etc/init.d/vsftpd start
 

 

4、关于503错误

关掉SELINUX

[root@localhost vsftpd]# more /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing - SELinux security policy is enforced.
#       permissive - SELinux prints warnings instead of enforcing.
#       disabled - SELinux is fully disabled.
SELINUX=enforcing
# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted  #
[root@localhost vsftpd]# 
[root@localhost vsftpd]# setsebool -P ftpd_disable_trans 1 
[root@localhost vsftpd]# service vsftpd restart
关闭 vsftpd:[确定]
为 vsftpd 启动 vsftpd:[确定][root@localhost vsftpd]# more /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing - SELinux security policy is enforced.
#       permissive - SELinux prints warnings instead of enforcing.
#       disabled - SELinux is fully disabled.
SELINUX=enforcing
# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted  #
[root@localhost vsftpd]# 
[root@localhost vsftpd]# setsebool -P ftpd_disable_trans 1 
[root@localhost vsftpd]# service vsftpd restart
关闭 vsftpd:[确定]
为 vsftpd 启动 vsftpd:[确定] 

 

详见:http://www.linuxsir.org/main/node/152

 

http://os.51cto.com/art/201002/184606.htm

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值