Centos安裝FTP伺服器和配置

來源:互聯網
上載者:User

標籤:

安裝                                                                                   
yum install vsftpd
啟動/重啟/關閉                                                                       
/sbin/service vsftpd start/sbin/service vsftpd restart/sbin/service vsftpd stop
設定檔                                                                              
/etc/vsftpd/vsftpd.conf
匿名上傳下載                                                                         

修改設定檔即可vsftpd.conf

anonymous_enable=yesanon_upload_enable=yesanon_mkdir_write_enable=yesanon_umask=022
配置vsftpd.conf                                                                      
anonymous_enable=NO            #禁止匿名local_enable=YES                       #允許本地登入write_enable=YES                       #允許寫,如需上傳,則必須llocal_umask=027                        #將上傳檔案的使用權限設定為:777-local_umaskanon_upload_enable=YES          #允許虛擬使用者和匿名使用者上傳anon_other_write_enable=YES #允許虛擬使用者和匿名使用者修改檔案名稱和刪除檔案dirmessage_enable=YES           xferlog_enable=YES                      #開啟日誌記錄connect_from_port_20=YESxferlog_file=/var/log/vsftpd.log     #日誌存放位置xferlog_std_format=YES              #標準日誌格式idle_session_timeout=600        #空閑連線逾時data_connection_timeout=120ftpd_banner=Welcome to ChinaRise FTP service       #歡迎資訊chroot_local_user=NO              chroot_list_enable=YES#以上兩行將虛擬使用者限制在其目錄下,不能訪問其他目錄,或者直接用                            chroot_local_user=YES                               listen=yes               #監聽/被動模式listen_port=21        #監聽連接埠

chroot_list_file=/etc/vsftpd/vsftpd.chroot_list       #虛擬使用者名稱單儲存在檔案/etc/vsftpd/vsftpd.chroot_list 中
user_config_dir=/etc/vsftpd/vsftpd_user_conf   #每個虛擬使用者名稱的更加詳細的培植儲存在/etc/vsftpd/vsftpd_user_conf 中

 

我是天王蓋地虎的分割線                                                             

Centos安裝FTP伺服器和配置

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.