国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 服務器 > Ftp服務器 > 正文

阿里云上安裝vsftp筆記

2024-09-09 20:58:45
字體:
來源:轉載
供稿:網友
阿里云上安裝vsftp筆記

安裝 ftp

1 ssh登錄服務器 首先檢查有沒有安裝運行 ps -ef |grep vsftpd 2 yum安裝vsftpd yum安裝 yum install vsftpd -y

3 修改配置 、增加開機啟動 vi /etc/vsftpd/vsftpd.conf anonymous_enable=YES改成NO 保存退出

查看vsftpd又沒有被設置為開機自啟動 chkconfig --list 加入開機啟動 chkconfig --level 35 vsftpd on

4 增加FTP用戶、并設置密碼 cd alidata mkdir www useradd ftpadmin -s /sbin/nologin -d /alidata/www passwd ftpadmin chown ftpadmin www 或者 chmod 777 www 5 啟動ftp service vsftpd start

來自視頻:http://help.aliyun.com/view/11108189_13495137.html?spm=5176.7224473.1997282753.6.6VPxgo

發現這樣配置后:可以再windows系統的dos下使用ftp命令登錄。 但是不能使用ftp工具列出文件列表。這是怎么回事?

解決ftp無法list目錄,配置主動、被動模式

FTP as PRotocol is a bit of an odd duck. It uses two TCP connections, rather than just the one most protocols use. You have port 21, the command and login connection, and a second connection, the data connection.

With passive FTP the second connection is to a randomly assigned available TCP port above 1024.

You problems seem to indicate you don't have that second port open in your firewall.

There's multiple ways to deal with that:

Fixed the PASV port(-range) One solution is to configure VSFTPD to use a small range of ports, or just a single port and create a firewall rule to open those ports:

# /etc/vsftpd/vsftpd.conf# reserve TCP ports 2121-2142 for passive FTPpasv_min_port=2121pasv_max_port=2142
And then open the port range in your firewall. (The multiport module allows for a port range rather than 20 lines each opening a single port):
# iptables -I INPUT -p tcp -m state --state NEW -m tcp -m multiport --dports 2121:2142 -j ACCEPT# service iptables save# service iptables restart
摘自:http://serverfault.com/questions/555541/failed-to-retrieve-directory-listing-in-filezilla-connecting-to-vsftpd 關于 ftp主動模式和被動模式 可以參考:http://jackiechen.blog.51cto.com/196075/193883/ 案例:ftp被動模式端口相同導致無法登錄:http://u2l.info/3n6kav

6 /etc/vsftpd/vsftpd.conf詳解

可以參考 http://blog.chinaunix.net/uid-24625974-id-2845256.html(有案例)

鳥哥的私房菜 對vsftpd的介紹http://linux.vbird.org/linux_server/0410vsftpd/0410vsftpd.php

可以連接但是無法列舉目錄 問題解決:

現象:

命令: LIST錯誤: 無法打開傳輸通道。原因:由于連接方在一段時間后沒有正確答復或連接的主機沒有反應,連接嘗試失敗。錯誤: 無法取得目錄列表命令: REST 0

解決:

1 關閉selinux

#vi/etc/selinux/config

SELINUX=disabled

需要重啟才能生效,重啟命令是 #reboot

2 進行下面的設置

# /etc/vsftpd/vsftpd.conf# reserve TCP ports 2121-2142 for passive FTPpasv_min_port=2121pasv_max_port=2142
# iptables -I INPUT -p tcp -m state --state NEW -m tcp -m multiport --dports 2121:2142 -j ACCEPT# service iptables save# service iptables restart


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 兴宁市| 延吉市| 岚皋县| 苏尼特左旗| 商都县| 云霄县| 乳源| 沈丘县| 读书| 闻喜县| 梁平县| 扶风县| 台中市| 雅安市| 绵竹市| 唐河县| 四会市| 九台市| 湄潭县| 松原市| 分宜县| 托里县| 方正县| 红安县| 博乐市| 扎赉特旗| 渑池县| 孝昌县| 博爱县| 台州市| 大化| 湟源县| 屏东县| 咸阳市| 上高县| 景谷| 洪雅县| 博客| 广河县| 保定市| 太仓市|