zoukankan      html  css  js  c++  java
  • centos 6.4 FTP安装和配置

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

    1: 安装

    检查是否安装

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

    开始安装

    [root@localhost ~]# yum install vsftpd

    [plain] view plaincopy
     
    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.   
    12. Dependencies Resolved  
    13.   
    14. ================================================================================  
    15.  Package         Arch          Version                      Repository     Size  
    16. ================================================================================  
    17. Installing:  
    18.  vsftpd          i686          2.2.2-11.el6_4.1             base          157 k  
    19.   
    20. Transaction Summary  
    21. ================================================================================  
    22. Install       1 Package(s)  
    23.   
    24. Total download size: 157 k  
    25. Installed size: 344 k  
    26. Is this ok [y/N]:   
    输入y
    [plain] view plaincopy
     
    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.   
    18. Installed:  
    19.   vsftpd.i686 0:2.2.2-11.el6_4.1                                                  
    20.   
    21. 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

     
     
    如果一件事情你觉得难的完不成,你可以把它分为若干步,并不断寻找合适的方法。最后你发现你会是个超人。不要给自己找麻烦,但遇到麻烦绝不怕,更不要退缩。 电工查找电路不通点的最快方法是:分段诊断排除,快速定位。你有什么启示吗? 求知若饥,虚心若愚。 当你对一个事情掌控不足的时候,你需要做的就是“梳理”,并制定相应的规章制度,并使资源各司其职。
  • 相关阅读:
    剑指offer--38.左旋转字符串
    剑指offer--37.和为S的两个数字
    剑指offer--35.数组中只出现一次的数字
    剑指offer--34.数字在排序数组中出现的次数
    剑指offer--33.丑数
    剑指offer--36.整数中1出现的次数(从1到n整数中1出现的次数)
    剑指offer--32.把数组排成最小的数
    剑指offer--31.二叉树中和为某一值的路径
    剑指offer--30.二叉搜索树的后序遍历序列
    剑指offer--29.从上往下打印二叉树
  • 原文地址:https://www.cnblogs.com/wvqusrtg/p/5112585.html
Copyright © 2011-2022 走看看