1、请先配置yum源:
http://blog.youkuaiyun.com/kadwf123/article/details/78231694
2、通过网络yum源安装ftp安装包:
[root@rac1 ~]# yum -y install vsftpd
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
base | 3.7 kB 00:00
extras | 3.4 kB 00:12
updates | 3.4 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package vsftpd.x86_64 0:2.2.2-24.el6 will be installed
--> Processing Dependency: libssl.so.10(libssl.so.10)(64bit) for package: vsftpd-2.2.2-24.el6.x86_64
--> Processing Dependency: libcrypto.so.10(libcrypto.so.10)(64bit) for package: vsftpd-2.2.2-24.el6.x86_64
--> Processing Dependency: libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit) for package: vsftpd-2.2.2-24.el6.x86_64
--> Running transaction check
---> Package openssl.x86_64 0:1.0.0-27.el6 will be updated
---> Package openssl.x86_64 0:1.0.1e-57.el6 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
=====================================================================================================
Package Arch Version Repository Size
=====================================================================================================
Installing:
vsftpd x86_64 2.2.2-24.el6 base 156 k
Updating for dependencies:
openssl x86_64 1.0.1e-57.el6 base 1.5 M
Transaction Summary
=====================================================================================================
Install 1 Package(s)
Upgrade 1 Package(s)
Total download size: 1.7 M
Downloading Packages:
(1/2): openssl-1.0.1e-57.el6.x86_64.rpm | 1.5 MB 00:00
(2/2): vsftpd-2.2.2-24.el6.x86_64.rpm | 156 kB 00:00
-----------------------------------------------------------------------------------------------------
Total 3.6 MB/s | 1.7 MB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : openssl-1.0.1e-57.el6.x86_64 1/3
Installing : vsftpd-2.2.2-24.el6.x86_64 2/3
Cleanup : openssl-1.0.0-27.el6.x86_64 3/3
Verifying : openssl-1.0.1e-57.el6.x86_64 1/3
Verifying : vsftpd-2.2.2-24.el6.x86_64 2/3
Verifying : openssl-1.0.0-27.el6.x86_64 3/3
Installed:
vsftpd.x86_64 0:2.2.2-24.el6
Dependency Updated:
openssl.x86_64 0:1.0.1e-57.el6
Complete!
3、启动ftp服务,并添加开机自启动:
[root@rac1 ~]# service vsftpd status
vsftpd 已停
[root@rac1 ~]# service vsftpd start
为 vsftpd 启动 vsftpd:[确定]
[root@rac1 ~]# service vsftpd status
vsftpd (pid 2157) 正在运行...
[root@rac1 ~]# chkconfig vsftpd on
4、安装完成,可以使用ftp工具连接到虚拟机rac1节点,本例中使用flashfxp
centos6默认root用户不能ftp,可以vi /etc/vsftpd/ftpusers把root注释掉就ok了。
5、上传,解压。