1、检测两台服务器指定目录下的文件一致性 #!/bin/bash ##################################### #检测两台服务器指定目录下的文件一致性 ##################################### #通过对比两台服务器上文件的md5值,达到 ...
分类:
系统相关 时间:
2021-03-26 15:20:05
阅读次数:
0
#!/bin/bash mkdir /etc/yum.repos.d/repo mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/repo curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.ali ...
分类:
其他好文 时间:
2021-03-18 14:42:38
阅读次数:
0
#!/bin/bash #检测whois命令是否存在,不存在则安装jwhois包is_install_whois(){ which whois &> /dev/null if [ $? -ne 0 ];then yum install -y jwhois fi}is_install_whois#定义 ...
分类:
其他好文 时间:
2021-03-18 14:10:30
阅读次数:
0
cmder介绍 简介 windows10中常用的命令行终端有cmd,powershell。其它需手动安装的终端有git bash(对于git命令),xshell(对于ssh连接远程主机附带linux命令) 集成多种终端,实现高效开发的命令行工具cmder,可以实现cmd,git,ssh,linux多 ...
分类:
其他好文 时间:
2021-03-18 14:03:40
阅读次数:
0
collect_time.sh脚本需求: 遍历/dz目录下所有以A开头的文件夹,读取该文件夹下的time.log的首行内容,依次写入脚本的路径参数/lj/times.txt中。 编写collect_time.sh: #!/bin/bash file="time.log" readDir="/dz" ...
分类:
系统相关 时间:
2021-03-16 13:55:14
阅读次数:
0
zsh + oh my zsh 使用 切换bash 切换bash chsh -s /bin/bash 切换zsh chsh -s /bin/zsh 安装 oh my zsh ! 插件地址 https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins 主 ...
分类:
其他好文 时间:
2021-03-16 13:54:23
阅读次数:
0
方式一:软件仓库安装 此方法不用自己去配置交叉编译工具链 1.查看本地仓库有支持哪些版本哪些 输入命令: apt-cache search aarch64 2.下载安装 gcc-8-aarch64-linux-gnu 输入:sudo apt-get install gcc-8-aarch64-lin ...
分类:
系统相关 时间:
2021-03-16 13:38:58
阅读次数:
0
什么是Elastic Shell Elastic Shell是一套完全用Bash Shell编写的,用于管理Elasticsearch搜索引擎的工具脚本。目前,它提供了针对index和snapshot的基本管理,并提供了针对reindex和Elasticsearch集群升级的辅助自动化。 本质上,E ...
分类:
系统相关 时间:
2021-03-15 10:42:46
阅读次数:
0
gnu http://www.gnu.org/software/binutils/ The GNU Binutils are a collection of binary tools. The main ones are: ld - the GNU linker. as - the GNU asse ...
分类:
其他好文 时间:
2021-03-11 20:36:58
阅读次数:
0
首先是deployment: apiVersion: apps/v1 kind: Deployment metadata: name: webapp1 spec: replicas: 1 selector: matchLabels: app: webapp1 template: metadata: ...
分类:
其他好文 时间:
2021-03-09 13:14:40
阅读次数:
0