VMware下Centos7快速搭建vsftpd
阿新 • • 發佈:2018-12-01
最簡單快捷的實現ftp的功能,不考慮安全問題.
1.配置防火牆和selinux
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=permissive # 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
[root@localhost~]# systemctl stop firewalld.service [root@localhost ~]# systemctl disable firewalld.service Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service. Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.
2.安裝vsftpd
[root@localhost ~]# yum install -y vsftpd
3.編輯配置檔案
[root@localhost ~]# vi /etc/vsftpd/vsftpd.conf
anon_root=/opt #指定目錄
4.重啟服務
[root@localhost ~]# systemctl restart vsftpd
5.開啟瀏覽器訪問
ftp://192.168.13.14/