Linux终端(cent OS7)下 FTP服务、防火墙操作

时间:2021-03-30 23:51:47

#安装                                   yum install -y vsftpd

#设置开机启动                     systemctl  enable vsftpd.service

 # 重启                                service vsftpd restart

# 查看vsftpd服务的状态      systemctl status vsftpd.service


---------------------------------------------------------------------------------------------------------

 查看防火墙状态                      firewall-cmd    --state


关闭防火墙                             systemctl  stop   firewalld.service


禁止开机启动启动防火墙         systemctl   disable   firewalld.service