您好,登錄后才能下訂單哦!
安裝ftp
yum -y install vsftpd
查看
vsftpd -v
取消匿名登陸
修改vsftpd.conf文件
vi /etc/vsftpd/vsftpd.conf
把 anonymous_enable=YES,改為NO,然后重啟vsftpd
3、設置開機啟動:
# chkconfig vsftpd on
4、啟動ftp服務
# service vsftpd start
檢查服務狀態
# service vsftpd status
停止服務:
# service vsftpd stop
重啟服務
# service vsftpd restart
vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
#SELINUX=enforcing
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
#SELINUXTYPE=targeted
SELINUX=disabled
setenforce 0
查看SELinux狀態:
# getenforce
修改好之后,reboot重啟下,然后執行getenforce命令查看SELinux狀態
[root@localhost ~]# getenforce
Disabled
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。