[root@localhost /]# yum install vsftpd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirror.cdnetworks.com
* extras: mirrors.sin3.sg.voxel.net
* updates: mirrors.sin3.sg.voxel.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package vsftpd.i386 0:2.0.5-24.el5_8.1 set to be updated
base/filelists 6% [====- ] 17 kB/s | 20base/filelists 7% [===== ] 17 kB/s | 21base/filelists | 1.0 MB 01:01
http://centos.mirror.cdnetworks.com/5.8/os/i386/repodata/filelists.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
base/filelists | 3.0 MB 01:23
extras/filelists_db | 214 kB 00:04
updates/filelists_db | 1.5 MB 00:15
--> Finished Dependency Resolution
Dependencies Resolved
======================================================================================
Package Arch Version Repository Size
======================================================================================
Installing:
vsftpd i386 2.0.5-24.el5_8.1 updates 144 k
Transaction Summary
======================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 144 k
Is this ok [y/N]: y
Downloading Packages:
vsftpd-2.0.5-24.el5_8.1.i386.rpm | 144 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) <[email protected]>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
Is this ok [y/N]: y
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-24.el5_8.1
Complete!
[root@localhost etc]# cd init.d/
[root@localhost init.d]# vsftpd start
500 OOPS: vsftpd: cannot open config file:start
出现:500 OOPS: vsftpd: cannot open config file:start
故障原因是没有激活vsftpd,并设置其运行级别。
解决方案:
用root帐号登陆后,在/etc 目录下
输入:chkconfig --level 35 vsftpd on
再输入 service vsftpd start
[root@localhost etc]# chkconfig --level 35 vsftpd on
[root@localhost etc]# service vsftpd start
输入ftp地址测试:ftp://192.168.14.104/