首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >VMware下Centos7快速搭建vsftpd

VMware下Centos7快速搭建vsftpd

作者头像
思索
发布2024-08-16 09:44:57
发布2024-08-16 09:44:57
1520
举报

最简单快捷的实现ftp的功能,不考虑安全问题. 

1.配置防火墙和selinux

代码语言:javascript
复制
 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
代码语言:javascript
复制
[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

代码语言:javascript
复制
[root@localhost ~]# yum install -y vsftpd

3.编辑配置文件

代码语言:javascript
复制
[root@localhost ~]# vi /etc/vsftpd/vsftpd.conf 
anon_root=/opt #指定目录

4.重启服务

代码语言:javascript
复制
[root@localhost ~]# systemctl  restart vsftpd

5.打开浏览器访问

代码语言:javascript
复制
ftp://192.168.13.14/
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2018-12-01,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档