ftp在centos安装

2020-05-13  本文已影响0人  明翼

今天想用ftp测试点东西,发现centos下默认没有安全,可能是安全原因记录下安装过程:
1、yum 安装vsftpd

 yum -y install vsftpd 
[root@localhost ~]# vsftpd -v
vsftpd: version 3.0.2

  1. 取消匿名登录:
vim /etc/vsftpd/vsftpd.conf

配置值改成NO:
anonymous_enable=NO

  1. 重启vsftpd
# 重启
 systemctl restart vsftpd.service
# 查看vsftpd服务的状态
systemctl status vsftpd.service
# 设置开机启动
systemctl enable vsftpd.service
  1. 关闭防火墙

systemctl stop firewalld.service  
#停止firewall  
systemctl disable firewalld.service  
#禁止firewall开机启动

临时关闭防火墙
systemctl stop firewalld
永久防火墙开机自启动
systemctl disable firewalld
临时打开防火墙
systemctl start firewalld
防火墙开机启动
systemctl enable firewalld
查看防火墙状态
systemctl status firewalld

上一篇 下一篇

猜你喜欢

热点阅读