Install ftp in the virtual machine
Install ftp
Yum-y install vsftpd
View
Vsftpd-v
Cancel anonymous login
Modify the vsftpd.conf file
Vi / etc/vsftpd/vsftpd.conf
Change anonymous_enable=YES to NO, and then restart vsftpd
3. Set boot:
# chkconfig vsftpd on
4. Start the ftp service
# service vsftpd start
Check service status
# service vsftpd status
Stop the service:
# service vsftpd stop
Restart the service
# 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
View SELinux status:
# getenforce
After modification, restart reboot, and then execute the getenforce command to check the SELinux status
[root@localhost ~] # getenforce
Disabled