链接地址:http://blog.csdn.net/wind520/article/details/38019647

1: 安装

检查是否安装

[root@localhost ~]# rpm -qa | grep vsftpd

开始安装

[root@localhost ~]# yum install vsftpd

  1. Loaded plugins: fastestmirror, refresh-packagekit, security
  2. Loading mirror speeds from cached hostfile
  3. * base: mirrors.skyshe.cn
  4. * extras: mirrors.skyshe.cn
  5. * updates: mirrors.skyshe.cn
  6. Setting up Install Process
  7. Resolving Dependencies
  8. --> Running transaction check
  9. ---> Package vsftpd.i686 0:2.2.2-11.el6_4.1 will be installed
  10. --> Finished Dependency Resolution
  11. Dependencies Resolved
  12. ================================================================================
  13. Package         Arch          Version                      Repository     Size
  14. ================================================================================
  15. Installing:
  16. vsftpd          i686          2.2.2-11.el6_4.1             base          157 k
  17. Transaction Summary
  18. ================================================================================
  19. Install       1 Package(s)
  20. Total download size: 157 k
  21. Installed size: 344 k
  22. Is this ok [y/N]:

输入y

  1. Is this ok [y/N]: y
  2. Downloading Packages:
  3. vsftpd-2.2.2-11.el6_4.1.i686.rpm                         | 157 kB     00:08
  4. warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
  5. Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
  6. Importing GPG key 0xC105B9DE:
  7. Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>
  8. Package: centos-release-6-4.el6.centos.10.i686 (@anaconda-CentOS-201303020136.i386/6.4)
  9. From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
  10. Is this ok [y/N]: y
  11. Running rpm_check_debug
  12. Running Transaction Test
  13. Transaction Test Succeeded
  14. Running Transaction
  15. Installing : vsftpd-2.2.2-11.el6_4.1.i686                                 1/1
  16. Verifying  : vsftpd-2.2.2-11.el6_4.1.i686                                 1/1
  17. Installed:
  18. vsftpd.i686 0:2.2.2-11.el6_4.1
  19. Complete!

安装完成。

2:启动ftp
[root@localhost ~]# service vsftpd start
为 vsftpd 启动 vsftpd:[确定]

客户端连接FTP出现错误:

[右] 正在连接到 10.6.x.x -> IP=10.6.x.x PORT=21
[右] 已连接到 10.6.x.x
[右] 220 (vsFTPd 2.2.2)
[右] USER jifeng
[右] 331 Please specify the password.
[右] PASS (hidden)
[右] 500 OOPS: cannot change directory:/home/jifeng
[右] 连接失败

3:设置

[root@localhost ~]# setsebool ftp_home_dir 1

4:连接OK,上传文件OK

命令

启动service vsftpd start

重启service vsftpd restart

停止service vsftpd stop

最新文章

  1. 基于OpenSLL的RSA加密应用(非算法)
  2. Linux网络管理2---(网络环境查看命令、网络测试命令)
  3. background-position
  4. Django进阶篇(二)
  5. js技术发展
  6. IHttpModule
  7. PHP生成图片验证码(simple)
  8. ASP.ENT Core Linux 下 为 donet创建守护进程(转载)
  9. Park Visit
  10. 阿里云server(ECS)优惠券领取
  11. myeclipse连接hadoop集群编程及问题解决
  12. NOIP 2002 提高组 字串变换
  13. JavaScript函数之作用域 / 作用链域 / 预解析
  14. [转帖]无网络离线安装 vs2017
  15. bootstrap table 的简单Demo
  16. .NET 4.5 中新提供的压缩类(转载)
  17. 安装composer出现链接补上的问题
  18. hadoop命令fsck命令
  19. Scala高阶函数
  20. MyBatis—实现关联表查询

热门文章

  1. 网络上USB后面跟AF或AM接口的意思
  2. iOS中Block介绍(二)内存管理与其他特性
  3. js中this指向问题
  4. web 开发规范
  5. C#复习三(Day 22)
  6. iOS中UIWebView使用JS交互 - 机智的新手
  7. JavaScript的深度克隆
  8. C++编程规范之23:头文件应该自给自足
  9. 基本event封装:阻止冒泡、默认事件等
  10. [LeetCode]题解(python):108-Convert Sorted Array to Binary Search Tree