亚洲最大看欧美片,亚洲图揄拍自拍另类图片,欧美精品v国产精品v呦,日本在线精品视频免费

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

    linux中ftp登錄不了怎么辦

    方法:1、用“yum -y install vsftpd”安裝vsftpd;2、用“chkconfig iptables off”關閉防火墻;3、修改vsftp文件允許root用戶登錄;4、修改config中disabled模式并重啟即可。

    linux中ftp登錄不了怎么辦

    本教程操作環(huán)境:linux7.3系統(tǒng)、Dell G3電腦。

    linux中ftp登錄不了怎么辦

    1、首先安裝vsftpd

    命令:

    yum -y install vsftpd

    之后開啟服務:

    service vsftpd start

    2、關閉防火墻

    1) 重啟后生效

    開啟:

    chkconfig iptables on

    關閉:

    chkconfig iptables off

    2) 即時生效,重啟后失效

    開啟:

    service iptables start

    關閉:

    service iptables stop

    3、默認情況下vsftp是不允許root用戶登錄的,可以通過修改限制來解決這個問題

    首先找到vsftp的配置目錄

    [root@localhost vsftpd]# pwd /etc/vsftpd [root@localhost vsftpd]# ls chroot_list  ftpusers  user_list  vsftpd.conf  vsftpd_conf_migrate.sh [root@localhost vsftpd]# 修改 [root@localhost vsftpd]# cat ftpusers # Users that are not allowed to login via ftp #root bin daemon adm lp sync shutdown halt mail news uucp operator games nobody 修改 [root@localhost vsftpd]# cat user_list # vsftpd userlist # If userlist_deny=NO, only allow users in this file # If userlist_deny=YES (default), never allow users in this file, and # do not even prompt for a password. # Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers # for users that are denied. #root bin daemon adm lp sync shutdown halt mail news uucp operator games nobody

    上面這個兩個就是默認情況下vsftp不允許使用的賬號列表,講文件中root刪除,或者前面加個#號 重啟一下vsftpd 服務 即可

    4、將/etc/selinux/config 中的enforcing 模式改為disabled, 然后重啟

    推薦學習:Linux視頻教程

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