linux
文章平均质量分 66
huainy
为了更好的明天,奋斗
展开
-
shell脚本计算时间
starttime=`date +'%Y-%m-%d %H:%M:%S'` #执行程序 sleep 5 #休眠5秒钟 endtime=`date +'%Y-%m-%d %H:%M:%S'` start_seconds=$(date --date="$starttime" +%s); end_seconds=$(date --date="$endtime" +%s); echo 开始时间:$s...原创 2020-04-13 11:25:48 · 1806 阅读 · 0 评论 -
Centos7 防火墙、及端口开放
1、查看防火墙状态 service iptables status --centos 6 systemctlstatus firewalld --centos 7 2、关闭防火墙 service iptables stop --centos 6 systemctlstopfirewalld --centos 7 3、启动防火墙 service iptables ...原创 2019-11-08 10:39:20 · 762 阅读 · 0 评论