1开机自动启动的文件夹
/usr/lib/systemd/system/vsftpd.service
以上说明vsftpd.service 这个服务开机自启动。
2 //重新启动ftp服务
service vsftpd restart
3 //查看ftp服务端口
netstat -antup | grep ftp
4 查看防火墙状态
systemctl status firewalld.service
5开启防火墙:
[root@localhost ~]# systemctl start firewalld.service
6 关闭防火墙:
[root@localhost ~]# systemctl stop firewalld.service
7 重启防火墙:
[root@localhost ~]# systemctl restart firewalld.service
8 禁止开机启动:
[root@localhost ~]# systemctl disable firewalld.service
9 开启开机启动:
[root@localhost ~]# systemctl enable firewalld.service
10 防火墙添加FTP服务
firewall-cmd --permanent --zone=public --add-service=ftp
添加完之后 再进行: firewall-cmd --reload
11#停止firewall
systemctl stop firewalld.service
12#禁止firewall开机启动
systemctl disable firewalld.service
13查看防火墙状态
firewall-cmd --list-all
14删除文件内的全部文本:
在命令模式下,输入:.,$d 一回车就全没了。