CentOS 7下安裝配置FTP

來源:互聯網
上載者:User

標籤:

  • 安裝vsftpd
yum install -y vsftpd
  • 編輯ftp設定檔
vi /etc/vsftpd/vsftpd.confanonymous_enable=NO#anonymous_enable=YESchroot_local_user=YES#去掉前面的注釋#chroot_list_enable=YES#chroot_list_file=/etc/vsftpd/chroot_list#不受限制的使用者列表,用不用都OKallow_writeable_chroot=YES#加上這行解決了無法登陸的問題
  • 啟動/重新啟動ftp
service vsftpd startservice vsftpd restart
  • 設定開機啟動ftp
chkconfig vsftpd on
  • 防火牆配置(iptables)
vi /etc/sysconfig/iptables-A INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT
  • 防火牆重新啟動

  • 建立ftp賬戶

useradd -d /path/you/want -s /sbin/nologin ftpadmin
  • 修改密碼
passwd ftpadmin
  • 設定賬戶許可權
chown -R ftpadmin.ftpadmin /path/you/set

CentOS 7下安裝配置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.