-
linux自动ping脚本,linux 自动ping ip的shell脚本
一、先写个ping脚本并记录日志 1)vi ping.sh nohup ping 10.242.0.114 -w 2| awk { print $0\t str...
-
列出服务单元: systemctl list-units --type=service
列出服务单元: systemctl list-units --type=service systemctl list-units命令输出中的列 列明 内容 UN...
-
Centos7 查看自启动列表systemctl list-unit-files以及设置服务自启动
Centos7 查看自启动列表systemctl list-unit-files以及设置服务自启动 systemctl list-unit-files Cent...
-
-
Shell字符串拼接(连接、合并)
在脚本语言中,字符串的拼接(也称字符串连接或者字符串合并)往往都非常简单,例如: 在 PHP 中,使用.即可连接两个字符串; 在 JavaScript 中,使用...
-
-
-
定时检测Tomcat服务器是否奔溃,奔溃后重启
编写Tomcat服务器监控脚本,定时检测Tomcat服务器是否奔溃,奔溃后重启。 每次Tomcat服务器莫名挂掉就想打人,只能像孩子一样去Git Bash重启。...
-
centos7 nologin用户使用命令
修改nologin用户为可登录用户usermod -s /bin/bash [user]例如:usermod -s /bin/bash hdfs修改用户为nol...
-
Linux shell脚本判断网络畅通
Linux shell脚本判断网络畅通 介绍 在编写shell脚本时,有的功能需要确保服务器网络是可以上网才可以往下执行,那么此时就需要有个函数来判断服务器网络...
栏目索引
阅读排行榜