CentOS下vsftpd安装及设置
1、检测是否安装了vsftpd
?
rpm -qa | grep vsftpdvsftpd-2.0.5-16.el5_5.1
?
2、在线安装vsftpd
?
[root@localhost init.d]# yum -y install vsftpdLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * addons: mirror.neu.edu.cn * base: mirror.neu.edu.cn * extras: mirror.neu.edu.cn * updates: mirror.neu.edu.cnSetting up Install ProcessResolving Dependencies--> Running transaction check---> Package vsftpd.i386 0:2.0.5-16.el5_5.1 set to be updatedaddons/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 ResolutionDependencies Resolved================================================================================================= Package Arch Version Repository Size=================================================================================================Installing: vsftpd i386 2.0.5-16.el5_5.1 updates 141 kTransaction Summary=================================================================================================Install 1 Package(s)Upgrade 0 Package(s)Total download size: 141 kDownloading 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 e8562897updates/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-5Running rpm_check_debugRunning Transaction TestFinished Transaction TestTransaction Test SucceededRunning Transaction Installing : vsftpd 1/1 Installed: vsftpd.i386 0:2.0.5-16.el5_5.1 Complete![root@localhost init.d]# rpm -qa | grep vsftpdvsftpd-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