久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      如何在centos7下配置ftp服務(wù)器

      如何在centos7下配置ftp服務(wù)器

      如何在centos7下配置ftp服務(wù)器?

      第一步,安裝vsftpd這款ftp服務(wù)器軟件,yum install -y vsftpd

      如何在centos7下配置ftp服務(wù)器

      第二步,設(shè)置vsftpd服務(wù)開機自啟動,然后重啟服務(wù),查看ftp服務(wù)端口,centos6命令如下:

      #chkconfig vsftpd on #service vsftpd restart #netstat -antup|grep ftp

      centos7命令如圖

      如何在centos7下配置ftp服務(wù)器

      安裝完成后重啟vsftpd服務(wù),service vsftpd restart

      第三步:進入vsftpd主配置文件 vi /etc/vsftpd/vsftpd.conf,修改anonymous_enable = NO,這樣可以禁止匿名登陸用戶登錄。

      同時,去掉chroot_local_user = yes前的注釋,限制用戶訪問家目錄之外的地方

      如何在centos7下配置ftp服務(wù)器

      如何在centos7下配置ftp服務(wù)器

      第四步,創(chuàng)建ftp用戶,設(shè)置用戶無法登陸服務(wù)器系統(tǒng)并且家目錄在/var/www/html下:

      如何在centos7下配置ftp服務(wù)器

      給其他人修改文件夾的權(quán)限:chmod o+w /var/www/html/

      如何在centos7下配置ftp服務(wù)器

      最后關(guān)掉selinux,vi /etc/selinux/config

      如何在centos7下配置ftp服務(wù)器

      重啟系統(tǒng)!或者臨時修改selinux,利用setenforce 0,之后再重啟vsftpd服務(wù),selinux服務(wù)如果沒有關(guān)掉的話會出現(xiàn)各種問題,比如能訪問服務(wù)器但是無法打開目錄和文件等等。。。

      在系統(tǒng)內(nèi)部嘗試自己訪問, ftp ip地址,應(yīng)該能成功登陸,繼續(xù)配置外網(wǎng)訪問

      如何在centos7下配置ftp服務(wù)器

      第五步:關(guān)閉防火墻,systemctl stop firewalld.service

      如何在centos7下配置ftp服務(wù)器

      相關(guān)參考:centOS教程

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號