CentOS配置VSFTP服务
1.安装vsftpd
a、查看是否安装vsftp
[root@wsyjlly ~]# rpm -q vsftpd
package vsftpd is not installed
b、如果没有则安装vsftpd
[root@wsyjlly ~]# yum install -y vsftpd
Installed:
vsftpd.x86_64 0:3.0.2-22.el7
Complete!
c、检查安装
[root@wsyjlly ~]# whereis vsftpd
vsftpd: /usr/sbin/vsftpd /etc/vsftpd /usr/share/man/man8/vsftpd.8.gz
2.启动服务
[root@wsyjlly ~]# systemctl start vsftpd
3.查看服务状态
[root@wsyjlly ~]# systemctl status vsftpd
● vsftpd.service - Vsftpd ftp daemon
Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; disabled; vendor preset: disabled)
Active: active (running) since Sun 2018-09-02 13:21:19 CST; 3s ago
Process: 1847 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf (code=exited, status=0/SUCCESS)
Main PID: 1848 (vsftpd)
CGroup: /system.slice/vsftpd.service
└─1848 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
4.设置vsftpd开机自启
[root@wsyjlly ~]# systemctl enable vsftpd
Created symlink from /etc/systemd/system/multi-user.target.wants/vsftpd.service to /usr/lib/systemd/system/vsftpd.service.
5.查看看机启动服务中是否存在vsftpd服务
[root@wsyjlly ~]# systemctl list-unit-files | grep vsftpd
vsftpd.service enabled
vsftpd@.service disabled
vsftpd.target disabled
6.关闭匿名登录,设置root用户登录
- 修改 vsftpd.conf文件
[root@wsyjlly ~]# vi /etc/vsftpd/vsftpd.conf
设置anonymous_enable=NO
- 修改ftpusers文件
[root@wsyjlly ~]# vi /etc/vsftpd/ftpusers

- 修改user_list文件
[root@wsyjlly ~]# vi /etc/vsftpd/user_list

7.设置防火墙
- 查看防火墙状态
[root@wsyjlly ~]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:firewalld(1)
[root@wsyjlly ~]#
- 开启防护墙
[root@wsyjlly ~]# systemctl start firewalld
- 防火墙开启vsftpd服务
[root@wsyjlly ~]# firewall-cmd --permanent --zone=public --add-service=ftp
success
[root@wsyjlly ~]# firewall-cmd --reload
success
8.设置SELinux
- 查看SELinux状态
[root@wsyjlly ~]# sestatus SELinux status:
SELinux status: enable 此时可掠过该步骤- [root@wsyjlly ~]# sestatus SELinux status:
SELinux status: disabled 此时需开启SELinux
- 编辑/etc/selinux/config文件,将SELinux的值设置为permissive后reboot
[root@wsyjlly ~]# vi /etc/selinux/config

- 执行下列命令:genhomedircontouch /.autorelabel后reboot
[root@wsyjlly ~]# touch /.autorelabel
- 标记完成后再将SELinux的值设置为enforcing后reboot
[root@wsyjlly ~]# vi /etc/selinux/config

- SELinux查看ftp状态
[root@wsyjlly ~]# getsebool -a | grep ftp

- 设置ftpd_full_access为on
[root@wsyjlly ~]# setsebool -P ftpd_full_access on
9. 重启vsftpd服务器
[root@wsyjlly ~]# systemctl restart vsftpd
[root@wsyjlly ~]# systemctl status vsftpd
T
CentOS配置VSFTP服务的更多相关文章
- Fedora 14配置vsftp服务步骤
Fedora 14配置vsftp服务步骤:1:检查Fedora14是否安装了vsftp服务 用rpm -qa|grep vsftp命令检查是否安装了vsftp服务,如果安装了,会显示安装好的版本 ...
- Centos安装vsftp服务
1.安装vsftp yum install vsftpd 2.开启vsftp服务,设置开机自启 service vsftpd restart chkconfig vsftpd on 停止vsftpd: ...
- CentOS配置VSFTP服务器
[1] 安装VSFTP [root@localhost ~]# yum -y install vsftpd [2] 配置vsftpd.conf文件 [root@localhost ~]# vi /et ...
- Centos配置tomcat服务并且开机自启动
把要配置成服务的tomcat文件夹中的catalina.sh脚本文件拷一份到/etc/init.d目录,并且改文件名称为tomcat6 cp /usr/web/tomcat/tomcat-/bin/c ...
- centos配置vsftp,ftp服务
1.安装vsftp 1.1.安装vsftp,测试安装的vsftpd的版本是:vsftpd.x86_64 0:3.0.2-11.el7_2 yum -y install vsftpd 1.2.修改配置文 ...
- centos配置nfs服务详细步骤(centos开启nfs服务)
一.NFS服务简介 NFS 是Network File System的缩写,即网络文件系统.一种使用于分散式文件系统的协定,由Sun公司开发,于1984年向外公布.功能是通过网络让不同的机器.不同的操 ...
- Linux(Centos)配置vsftp使用账号密码(虚拟用户)登录ftp进行文件上传和修改
安装vsftp yum install vsftpd -y 安装完成之后进入vsftp的配置文件夹 cd /etc/vsftpd/ 文件夹内容如下 [root@VM-0-12-centos vsftp ...
- centos配置ssh服务并简单测试
最近在做计算机集群方面的东西,简单弄了一下ssh服务. 首先把前提情况介绍一下: 1.我是用的虚拟机先模拟的,也不是没有真机,就是跑来跑去麻烦. 2.装了三个相同配置的centos虚拟机,详细参数就不 ...
- centos配置vsftpd服务2
ftp搭建 一.搭建前提a.ssh服务已经开启,b.防火墙关闭,c.连网1.查看ssh和防火墙的状态 service sshd status service iptables status 2.开启s ...
随机推荐
- EBR内容解析
原先博客放弃使用,几篇文章搬运过来 EBR(Extended Boot Record)即扩展分区引导记录.类似于主引导记录MBR.因为MBR的四条分区信息的限制,可以使用EBR方便扩展. 它的结构与M ...
- 01-jQuery的介绍
1.为什么要使用jQuery 在用js写代码时,会遇到一些问题: window.onload 事件有事件覆盖的问题,因此只能写一个事件. 代码容错性差. 浏览器兼容性问题. 书写很繁琐,代码量多. 代 ...
- 20155326刘美岑 Exp6 信息收集与漏洞扫描
20155326刘美岑 Exp6 信息收集与漏洞扫描 实验后回答的问题 (1)哪些组织负责DNS,IP的管理. 全球根服务器均由美国政府授权的ICANN统一管理,负责全球的域名根服务器.DNS和IP地 ...
- 【git 报错】Could not read from remote repository.Please make sure you have the correct access rights.
我们在使用git clone 或其他命令的时候,有时候会遇到这类问题,如图: and the repository exists. fatal: Could not read from remote ...
- QQ网页弹窗
QQ网页弹窗 1.网址:http://shang.qq.com/v3/index.html 2.选推广工具,提示语随便写 3.建一个html 网页,并把代码拷进去. 4.双击网页,就可以打开了.(用E ...
- 做JAVA开发的同学一定遇到过的爆表问题,看这里解决
欢迎大家前往腾讯云+社区,获取更多腾讯海量技术实践干货哦~ 本文由净地发表于云+社区专栏 记一次Java线上服务器CPU过载问题的排查过程,详解排查过程中用到的Java性能监测工具:jvisualvm ...
- [算法专题] stack
1. Convert Expression to Reverse Polish Notation http://www.lintcode.com/en/problem/convert-expressi ...
- 3.html基础标签:表格
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...
- Data - References
01 - 数据分析与数据挖掘的知识列表 图解 知识列表 |关注方面|初级数据分析师|高级数据分析师|数据挖掘工程师| |--------|--------|--------|--------| | 数 ...
- django 模型关系
模型关系 关系数据库的威力体现在表之间的相互关联,Django提供了三种最常见的数据库关系:多对一 (many-to-one),多对多(many-to-many),一对一(one-to-one) 多对 ...