注:ip全部用xxx.xxx.xxx.xxx代替 以下是我在ansible主机执行的结果,当我用yum模块的时候,报错如下: (venv) [root@hmys os_script]# ansible xxx.xxx.xxx.xxx -u root -m yum -a "state=installe ...
分类:
其他好文 时间:
2020-07-23 16:02:16
阅读次数:
73
有时我们删除容器时,会报如下错误, Error response from daemon: You cannot remove a running container 明明停止的容器,为啥还报错不能删除运行中的容器 此时我们可以用强制删除容器命令。 docker rm -f container_na ...
分类:
其他好文 时间:
2020-07-22 15:58:07
阅读次数:
224
#! /bin/bashecho "start running" | tee -a LANG=enset `date`path="/home/check"echo "start running" | tee -a $path/log/$1-$2-$3.logif [ -d /home/check/r ...
分类:
其他好文 时间:
2020-07-22 11:41:50
阅读次数:
122
#zabbix监控Mysql主从状态 搭建MySQL主从后,很多时候不知道从的状态是否ok,有时候出现异常不能及时知道,这里通过shell脚本结合zabbix实现监控并告警 在MySQL的从上查看从的运行状态是通过Slave_IO_Running线程和Slave_SQL_Running线程是否正常, ...
分类:
数据库 时间:
2020-07-21 14:10:17
阅读次数:
74
SELECT a.tablespace_name 表空间名称, total 总计, total - free 已使用, free 空闲, round((total - free) / total * 100, 2) 使用占比FROM ( SELECT tablespace_name , round( ...
分类:
其他好文 时间:
2020-07-20 22:36:26
阅读次数:
76
curl -o /dev/null -s -w %{time_namelookup} %{time_connect} %{time_starttransfer} %{time_total} %{speed_download}"\n" https://www.baidu.com -o:把curl 返回 ...
分类:
Web程序 时间:
2020-07-20 15:33:07
阅读次数:
111
一、表被破坏 1. 问题报错:table is marked as crashed and should be repaired 2. 解析: 某些不可测的问题造成表的损坏(频繁查询和更新)。进而造成无法读取数据。 3. 处理: check table tbname -- 用来检查出现问题的表的状态 ...
分类:
数据库 时间:
2020-07-20 13:11:02
阅读次数:
93
You appear to be running a SWT application. On macOS you must specify the -XstartOnFirstThread option when running the jar to run SWT correctly: jar - ...
一、线程的基本状态 1、新建状态(New):新创建了一个线程对象。 2、就绪状态(Runnable):线程对象创建后,其他线程调用了该对象的start()方法。该状态的线程位于可运行线程池中,变得可运行,等待获取CPU的使用权。 3、运行状态(Running):就绪状态的线程获取了CPU,执行程序代 ...
分类:
编程语言 时间:
2020-07-18 22:35:18
阅读次数:
79
JavaScript高阶函数的使用 JS中的for循环 /* 普通的for循环 */ for (let i = 0; i < this.books.length; i++) { total += this.books[i].count * this.books[i].price; } /* let ...
分类:
Web程序 时间:
2020-07-18 15:29:53
阅读次数:
75