centos6安装ftp服务

26 篇文章 1 订阅
21 篇文章 0 订阅

1、请先配置yum源:

http://blog.csdn.net/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、上传,解压。


  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值