centos6安装ftp服务

前端之家收集整理的这篇文章主要介绍了centos6安装ftp服务前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

1、请先配置yum源:

http://blog.csdn.net/kadwf123/article/details/78231694

2、通过网络yum源安装ftp安装包:

  1. [root@rac1 ~]# yum -y install vsftpd
  2. Loaded plugins: fastestmirror,security
  3. Loading mirror speeds from cached hostfile
  4. base | 3.7 kB 00:00
  5. extras | 3.4 kB 00:12
  6. updates | 3.4 kB 00:00
  7. Setting up Install Process
  8. Resolving Dependencies
  9. --> Running transaction check
  10. ---> Package vsftpd.x86_64 0:2.2.2-24.el6 will be installed
  11. --> Processing Dependency: libssl.so.10(libssl.so.10)(64bit) for package: vsftpd-2.2.2-24.el6.x86_64
  12. --> Processing Dependency: libcrypto.so.10(libcrypto.so.10)(64bit) for package: vsftpd-2.2.2-24.el6.x86_64
  13. --> Processing Dependency: libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit) for package: vsftpd-2.2.2-24.el6.x86_64
  14. --> Running transaction check
  15. ---> Package openssl.x86_64 0:1.0.0-27.el6 will be updated
  16. ---> Package openssl.x86_64 0:1.0.1e-57.el6 will be an update
  17. --> Finished Dependency Resolution
  18.  
  19. Dependencies Resolved
  20.  
  21. =====================================================================================================
  22. Package Arch Version Repository Size
  23. =====================================================================================================
  24. Installing:
  25. vsftpd x86_64 2.2.2-24.el6 base 156 k
  26. Updating for dependencies:
  27. openssl x86_64 1.0.1e-57.el6 base 1.5 M
  28.  
  29. Transaction Summary
  30. =====================================================================================================
  31. Install 1 Package(s)
  32. Upgrade 1 Package(s)
  33.  
  34. Total download size: 1.7 M
  35. Downloading Packages:
  36. (1/2): openssl-1.0.1e-57.el6.x86_64.rpm | 1.5 MB 00:00
  37. (2/2): vsftpd-2.2.2-24.el6.x86_64.rpm | 156 kB 00:00
  38. -----------------------------------------------------------------------------------------------------
  39. Total 3.6 MB/s | 1.7 MB 00:00
  40. Running rpm_check_debug
  41. Running Transaction Test
  42. Transaction Test Succeeded
  43. Running Transaction
  44. Updating : openssl-1.0.1e-57.el6.x86_64 1/3
  45. Installing : vsftpd-2.2.2-24.el6.x86_64 2/3
  46. Cleanup : openssl-1.0.0-27.el6.x86_64 3/3
  47. Verifying : openssl-1.0.1e-57.el6.x86_64 1/3
  48. Verifying : vsftpd-2.2.2-24.el6.x86_64 2/3
  49. Verifying : openssl-1.0.0-27.el6.x86_64 3/3
  50.  
  51. Installed:
  52. vsftpd.x86_64 0:2.2.2-24.el6
  53.  
  54. Dependency Updated:
  55. openssl.x86_64 0:1.0.1e-57.el6
  56.  
  57. Complete!

3、启动ftp服务,并添加开机自启动:

  1. [root@rac1 ~]# service vsftpd status
  2. vsftpd 已停
  3. [root@rac1 ~]# service vsftpd start
  4. vsftpd 启动 vsftpd:[确定]
  5. [root@rac1 ~]# service vsftpd status
  6. vsftpd (pid 2157) 正在运行...
  7. [root@rac1 ~]# chkconfig vsftpd on

4、安装完成,可以使用ftp工具连接到虚拟机rac1节点,本例中使用flashfxp

centos6默认root用户不能ftp,可以vi /etc/vsftpd/ftpusers把root注释掉就ok了。

5、上传,解压。

猜你在找的CentOS相关文章