列出docker容器列表:docker ps 进入到当前pgsql所在的容器: docker exec -it $dockerID /bin/bash 切换用户:su - postgres将pgsql的skylarxx 库的所有表列出来:./pgsql -p 15432 -d skylarxx -c ...
分类:
数据库 时间:
2020-06-16 15:08:46
阅读次数:
68
插件地址:https://www.claudiokuenzler.com/monitoring-plugins/check_es_system.php 下载地址 #!/bin/bash ######################################################### ...
分类:
其他好文 时间:
2020-06-16 12:46:06
阅读次数:
72
:= 示例代码: #!/bin/bash var=123 echo ${var:="999"} unset var echo ${var:="888"} 输出: 123 888 结论 := 意思就是如果这个变量是空的或者未赋初值,则对其进行赋值. 否则, 就不赋值. ...
分类:
系统相关 时间:
2020-06-16 10:27:13
阅读次数:
75
1.安装 bash <(curl -L -s https://install.direct/go.sh) 2.修改配置文件 vim /etc/v2r/config.json { "log": { "error": "", "loglevel": "info", "access": "" }, "in ...
分类:
其他好文 时间:
2020-06-15 21:14:37
阅读次数:
89
[root@kunpeng82 devuser]# ovs-tcpdump -i patch-ovs-2 Traceback (most recent call last): File "/bin/ovs-tcpdump", line 27, in <module> import netifaces ...
分类:
其他好文 时间:
2020-06-15 20:51:49
阅读次数:
98
一句话概括: 需要执行的命令保存到文本中,按照顺序执行,因为是解释型的,不需要编译 准确叙述: 若干命令+脚本的基本格式+脚本特定语法+思想=shell脚本 脚本的基本写法: 1.脚本第一行 /bin/bash 表示以下内容使用bash解释器 2.脚本的第二部分,注释(#)说明,就脚本的基本信息进行 ...
分类:
系统相关 时间:
2020-06-15 17:46:41
阅读次数:
70
#/bin/bash#使用date取得当前系统时间d=`date+%F`dir=/tmp/data/logs#判断目录是存在[-d$dir]||mkdir-p$direcho"$dlogs">$dir/$d.logdf-h>>$dir/$d.logfind$dir/-mtime+15|xargsrm>/dev/null2>&1
分类:
系统相关 时间:
2020-06-15 15:39:32
阅读次数:
65
1、编辑.bash_profile文件,输入命令:open -a TextEdit ~/.bash_profile 2、在~/.bash_profile配置phantomjs路径,export PATH="/usr/local/#phantomjs-2.1.1-macosx/bin$PATH" 3、 ...
分类:
编程语言 时间:
2020-06-15 14:04:11
阅读次数:
134
一般这种迁移,要注意旧仓库的提交历史等信息也要同步到新的仓库。 先使用如下命令克隆老的: git clone --bare git@gitlab.test1.com:f2e/test.git 新仓库创建好,使用如下命令推上去: git push --mirror git@gitlab.test2.c ...
分类:
其他好文 时间:
2020-06-15 12:28:22
阅读次数:
68
逗号的作用:输出空格 [root@zhangchao ~]# cat zc.log root:x:0:0:root:/root:/bin/bash operator:x:11:0:operator:/root:/sbin/nologin [root@zhangchao ~]# awk -F":" ' ...
分类:
其他好文 时间:
2020-06-15 11:47:15
阅读次数:
49