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