最小环境安装常用工具+配置
1.安装epel-release源 yum install epel-release -y 2.常用工具 有些软件安装不上需要执行第一步 yum -y install htop vim wget curl net-tools lsof zip unzip ifconfig iftop lrzsz bind-utils git jq iptables iptables-services...
1.安装epel-release源 yum install epel-release -y 2.常用工具 有些软件安装不上需要执行第一步 yum -y install htop vim wget curl net-tools lsof zip unzip ifconfig iftop lrzsz bind-utils git jq iptables iptables-services...
导出所有数据 pg_dumpall -h localhost -p 5432 -U postgres -W -f alldata.sql 导入数据 psql -h localhost -p 5432 -U postgres -W -f alldata.sql 导出整个数据库(结构+数据) # 基础命令 pg_dump -U <用户名> -h <主机> -d &l...
自定义pipline 1. 进入Stack Management > Ingest Node Pipelines > Create a pipeline 1.1 k8s-freeswitch [ { "script": { "lang": "painless", "source": "ctx.message = ctx.message.subs...
#!/bin/bash pycmdbCli_file="$( cd $(dirname $0); pwd )/pycmdbCli.py" #: ' # get_inst_info echo "============================| get_inst_info |============================" python3 $pycmdbCli_file ...
import json import builtins import time import subprocess import site from sys import argv from argparse import ArgumentParser ## 安装 cmdb-sdk-python #shell_script = """ #if [ -z "$( pip3 list | gr...
登录 psql -h hostname -d dbname -U username 成功连接后,你将看到类似以下的提示符,表示你已经连接到数据库: dbname=> 列出所有库 \l 切换数据库 \c your_database_name 列出所有表 \dt 列出当前数据库中的所有表 \dt schema_name.* 查询所有数据库存储大小 select da...
"" 手动安装插件配置 set nocompatible " 去掉vi的一致性" filetype off set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin 'VundleVim/Vundle.vim' Plugin 'mattn/vim-goimports' Plugin 'mattn/v...
输出在文件 aaa 中,但不在文件 bbb 中的行 方式1. awk awk 'NR==FNR{a[$0]=1;next} !a[$0]' bbb aaa NR==FNR{a[$0]=1;next}: 处理第一个文件 bbb 时,将文件中的每一行存储在数组 a 中,并设置数组元素的值为 1。next 用于跳过后续的命令,以便处理下一行。 !a[$0]: 处理第二个文件 aaa 时,检查当...
Linux(创建大文件)快速把服务器空间写满 1. truncate(虚拟) 它的作用是指定一个文件的大小,如果该文件不存在,就会创建该文件。 如果指定文件的大小小于原先的大小,会丢失内容。 指定的文件大小是虚拟的。 只是显示出来的大小。如果你指定一个非常大的文件。其实服务器剩余空间并不会减少。 用法: 创建一个虚拟大小1G的test文件,其真实大小为0 > turncate -s...
排查问题思路: 从头开始,一步一步分析,不要想当然 知道整个链路,不要跳过