# apt install g++-aarch64-linux-gnuReading package lists... 0% Reading package lists... Done Building dependency tree Reading state information... Don ...
分类:
系统相关 时间:
2019-05-27 15:10:22
阅读次数:
993
##关闭所有服务forsuninchkconfig--list|grep3:on|awk‘{print$1}‘;dochkconfig--level3$sunoff;done##启动必要服务(可以根据实际需要修改)forsuninYDServiceatdcrondrsyslogsshdnetworkudev-postsysstatvm-agent;dochkconfig--leve
分类:
其他好文 时间:
2019-05-27 15:03:28
阅读次数:
154
一、简介上个章节中,我们学习了判断语句和运算语句。shell脚本中,这些判断语句一般都是和if、else、elif、for和while等语句一起使用。在脚本编写中,条件判断语句常常用于多种情况的判断,符合哪一种情况就执行哪一种的命令。二、shell条件判断语句:if1、流程控制:if单分支结构语法:if条件判断;then条件判断成功时执行的操作...fi例子:结合整数值比较-eq;检查主机是否在线
分类:
系统相关 时间:
2019-05-27 10:42:47
阅读次数:
227
telegraf (v1.5.2)虽然好用但是默认情况下并不能帮你收集好所有你需要的数据,比如io数据,默认情况下只收集了iotime, iops_in_process, weighted_io_time, read, write等相关数据,并不能收集到每个盘的iops, await, svctm, ...
分类:
其他好文 时间:
2019-05-26 18:00:15
阅读次数:
522
duwei@LAPTOP-LQF2J8H0 MINGW64 /d/Users/xxx/venv/program (master) $ git clone https://github.com/XXX/program. git Cloning into 'program'... remote: Enu ...
分类:
其他好文 时间:
2019-05-24 20:52:20
阅读次数:
2209
2019-04-23 14:16:21,769 WARN namenode.FSImage (EditLogFileInputStream.java:scanEditLog(359)) - Caught exception after scanning through 0 ops from /had ...
分类:
其他好文 时间:
2019-05-23 21:05:40
阅读次数:
150
一、try...except 有时候我们写程序的时候,会出现一些错误或异常,导致程序终止。例如,做除法时,除数为0,会引起一个ZeroDivisionError 例子: 1 2 3 4 a=10 b=0 c=a/b print "done" 1 2 3 4 a=10 b=0 c=a/b print ...
分类:
编程语言 时间:
2019-05-21 11:16:45
阅读次数:
97
def count(n): v = int(n/2) print(v) if v == 0: return 'Done' count(v) print(v) count(10) #执行结果: 5 2 1 0 1 2 5 总结递归的机柜特点: 1.必须有一个明确的结束条件,要不就会变成死循环了,最终撑 ...
分类:
其他好文 时间:
2019-05-20 13:24:39
阅读次数:
97
#!/bin/bash RED='\033[31m' BLUE='\033[34m' END='\033[0m' echo -en "$RED 红色:$END" #sleep 3 while true do red=$[$RANDOM%33+1] echo $redstring | grep -qw ...
分类:
其他好文 时间:
2019-05-19 14:23:57
阅读次数:
138