1. 防火墙
1.1. 查看防火墙状态
systemctl status firewalld
1.2. 重启防火墙
systemctl restart firewalld
1.3. 关闭防火墙
systemctl stop firewalld
1.4. 开启防火墙
systemctl start firewalld
1.5. 开启端口
firewall-cmd --add-port=端口/tcp --permanent
1.6. 查看开放的端口
firewall-cmd --list-port
2. 压缩 / 解压
2.1. 压缩文件
zip 生成的压缩文件名 要压缩的文件
2.2. 压缩文件夹
zip -r 生成的压缩文件名 要压缩的文件夹
2.3. 分卷压缩 - 限制每个压缩包的大小
zip -r -s 限制的大小 生成的压缩文件名 要压缩的文件夹
2.4. 解压文件
unzip 要解压的压缩文件
2.5. 解压文件到指定的目录下
unzip 要解压的压缩文件 -d 目录
3. nginx
3.1 检测配置文件
nginx -t
3.2 使配置文件生效
nginx -s reload