1.防火墙
永久性生效,重启后不会复原
开启: chkconfig iptables on
关闭: chkconfig iptables off
停止:service iptables stop
启动:service iptables start
--关闭防火墙 开放端口 --permanent 永久开放
firewall-cmd --zone=public --add-port=8080/tcp --permanent
firewall-cmd --reload
--取消服务的锁定
systemctl unmask firewalld
--锁定该服务
systemctl mask firewalld
--安装端口查询工具
yum install net-tools
--查询端口号
netstat -anp |grep 8888
--查看已经占用的端口
netstat -nultp
2.一次性移除多进程
kill -9 $(ps aux | grep 8081 | awk '{print $2}')
查看当前目录的文件大小:du -sh *
查看磁盘空间:df -h
压缩 tar -czvf
解压 tar -vzxf