在虛擬機器中安裝ftp

zchbaby2000發表於2018-12-04

安裝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




來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/725820/viewspace-2283864/,如需轉載,請註明出處,否則將追究法律責任。

相關文章