首页 > 系统服务 > 详细

VMware下Centos7快速搭建vsftpd

时间:2018-12-01 19:03:30      阅读:144      评论:0      收藏:0      [点我收藏+]

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

原文:https://www.cnblogs.com/wangyang0210/p/10050466.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!