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 ...
随机推荐
- 第40章:MongoDB-集群--Replica Sets(副本集)---副本集的管理
①以单机模式启动成员 由于很多维护的工作需要写入操作,所以不合适在副本集中操作,可以以单机模式启动成员,也就是不要使用副本的选项,就跟以前启动单独的服务器一样.一般使用一个跟副本集配置中不一样的端口号 ...
- Unity3D中声音播放
Unity3D 播放声音需要使用 Audio Source 组件,并且需要 Audio Listener 组件配合,不然无法听到声音.Main Camera 会默认有 Audio Lisetener. ...
- _ZNote_Qt_Tips_添加动态链接库
之前添加都是 手写添加,今天陈老师提示可以在 .pro 文件内空白处,右键弹出添加
- Internetworking
1 Introduction 所谓的InternetWorking就是将很多网络连接起来,那么在这种连接的网络下我们该如何传送封包呢? 2 IP and Routers 1 IP Datagram H ...
- 2月第3周业务风控关注|上海网信办复测23个被约谈APP 涉及1号店、小红书等
易盾业务风控周报每周呈报值得关注的安全技术和事件,包括但不限于内容安全.移动安全.业务安全和网络安全,帮助企业提高警惕,规避这些似小实大.影响业务健康发展的安全风险. 1.上海网信办复测23个被约谈A ...
- PHP-1安装配置
php-fpm启动 /usr/local/php/sbin/php-fpm start
- docker配置仓储库时出错:无法安全地用该源进行更新,所以默认禁用该源
在Ubuntu上安装docker,配置仓储库时第一次使用了阿里去的镜像,如下 sudo add-apt-repository "deb [arch=amd64] http://mirrors ...
- LeetCode:151_Reverse Words in a String | 字符串中单词的逆反 | Medium
题目:Reverse Words in a String Given an input string, reverse the string word by word. For example, Gi ...
- JavaScript中的 this全面解析
上一章我们排除了一些对this的错误认识和知道了this是在调用函数时被绑定的,完全取决于函数的调用位置.先介绍两个概念:调用位置和调用栈. 调用栈:就是为了到达当前执行位置所调用的所有函数. 调用位 ...
- Jquery 动态追加控件并获取值
先展示通过动态添加控件的结果: 实现步骤: 1.引用js文件 <script src="Script/jquery-1.5.1.min.js" type="text ...