生活随笔
收集整理的這篇文章主要介紹了
centos 6.4 FTP安装和配置
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1: 安裝
檢查是否安裝
[root@localhost ~]# rpm -qa | grep vsftpd?
開始安裝
[root@localhost ~]# yum install vsftpd
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile* base: mirrors.skyshe.cn* extras: mirrors.skyshe.cn* updates: mirrors.skyshe.cn
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package vsftpd.i686 0:2.2.2-11.el6_4.1 will be installed
--> Finished Dependency ResolutionDependencies Resolved================================================================================Package Arch Version Repository Size
================================================================================
Installing:vsftpd i686 2.2.2-11.el6_4.1 base 157 kTransaction Summary
================================================================================
Install 1 Package(s)Total download size: 157 k
Installed size: 344 k
Is this ok [y/N]: 輸入y
Is this ok [y/N]: y
Downloading Packages:
vsftpd-2.2.2-11.el6_4.1.i686.rpm | 157 kB 00:08
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>Package: centos-release-6-4.el6.centos.10.i686 (@anaconda-CentOS-201303020136.i386/6.4)From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running TransactionInstalling : vsftpd-2.2.2-11.el6_4.1.i686 1/1 Verifying : vsftpd-2.2.2-11.el6_4.1.i686 1/1 Installed:vsftpd.i686 0:2.2.2-11.el6_4.1 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
總結
以上是生活随笔為你收集整理的centos 6.4 FTP安装和配置的全部內容,希望文章能夠幫你解決所遇到的問題。
如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。