Linux
隔壁敲代码的王先生
不积跬步无以至千里,不积小流无以成江海。
展开
-
crontab定时脚本含有 date ‘%’问题导致不生效。
Percent-signs (%) in the command, unless escaped with backslash (\), will be changed into newline characters, and all data after the first % will be sent to the command as standard input.原创 2020-07-29 11:38:56 · 722 阅读 · 0 评论 -
ZFS,XFS,BtrFS性能测试
1:通过测试结果可以看到btrfs在有raid5(五块5.5T硬盘组合)情况下,磁盘利用率较高,且在顺序读写上较zfs和单盘xfs文件系统性能突出,但是在有缓存随机读写上表现较zfs差一点,无缓存情况下,只有较单块盘的xfs比较,btrfs顺序读性能是单块xfs10倍,zfs不支持无缓存,无法比较,随机写无缓存以及随机读无缓存与单块xfs性能没有太大差异 ...原创 2020-03-03 16:22:17 · 14953 阅读 · 0 评论 -
Shell脚本回顾练习-操作Postgresql数据库。
#!/bin/bashfilename="/tmp/pgtest.txt"host=127.0.0.1user=postgrespassword=postgresport=5432dbname=postgresgettable(){if [ ! -e ${filename} -o ! -s ${filename} ]; then `touch /tmp/pgtest...原创 2019-08-08 10:17:22 · 1613 阅读 · 0 评论 -
Shell脚本回顾练习笔记
#!/bin/bash#readonly name='wangxiaodong'; 只读变量,不能被unset删除,无法重新赋值定义。name='wang'xiaodo'ng' ;name_array=(reade write yellow black wite blue);echo 'name:'${name};echo "我的名字是:\"${name}\""#出现i或者o的下标...原创 2019-08-08 10:26:04 · 104 阅读 · 0 评论