VMware下Centos7快速搭建vsftpd

Posted 。思索

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了VMware下Centos7快速搭建vsftpd相关的知识,希望对你有一定的参考价值。

最简单快捷的实现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/

 

 

以上是关于VMware下Centos7快速搭建vsftpd的主要内容,如果未能解决你的问题,请参考以下文章

centos搭建ftp服务

Linux平台下快速搭建FTP服务器

其他综合-VMware 从模板机快速克隆多台

Centos7.4 vsftpd 搭建

快速搭建FTP服务

vsftpd 企业ftp服务搭建 centos7