摘要:
###information_schema 系统元数据库 DESC information_schema.TABLES TABLE_SCHEMA >库名 TABLE_NAME >表名 ENGINE >引擎 TABLE_ROWS >表的行数 AVG_ROW_LENGTH >表中行的平均行(字节) IN 阅读全文
摘要:
apiVersion:v1 #必选,版本号,例如v1 kind:Pod #必选,Pod metadata: #必选,元数据 name:string #必选,Pod名称 namespace:string #创建资源所属于的命名空间,不写的话默认创建在default空间 labels: #自定义标签 - 阅读全文
摘要:
1、nginx使用哪些指令进行负载均衡(upstream七层,stream四层) upstream aaa{ server 127.0.0.1 server 127.0.0.2 } stream { upstream redis{ server 127.0.0.1:6381 max_fails=2 阅读全文
摘要:
Elasticsearch官方下载链接:https://www.elastic.co/cn/downloads/Kibana官方下载链接:https://www.elastic.co/cn/downloads/ es1:192.168.0.11 es2.192.168.0.22 yum instal 阅读全文
摘要:
#ssh-keygen -t dsa #yum install -y sshpass #cat >fenfa_key.sh<<EOF #!/bin/bash #免交互分发公钥 for ip in {5,6,7,8,9} do echo " host 172.16.1.$ip pub-key star 阅读全文
摘要:
###############服务端148.*.*.156############## 1、安装nfs yum install nfs* -y 2、启动nfs 和rpcbind,并且可以设置开启启动 systemctl start nfs-server && systemctl enable nfs 阅读全文
摘要:
import mysql.connector import xlrd mydb=mysql.connector.connect(host="125.65.*.*",user="pjump",passwd="******",database="pjump") mycursor=mydb.cursor( 阅读全文
摘要:
确认binarylogs 是否开启 show binary logs 如果没有启动注意在my.cnf的mysqld节中开启 log-bin=mysql-bin /mysql/bin/mysqlbinlog mysql-bin.000014 检查要恢复数据的起始时间(14:35:50)和截止时间(14 阅读全文
摘要:
安装rediswget http://download.redis.io/releases/redis_3.2.9.tar.gz tar zxf redis-3.2.9.tar.gz -C /opt/redis_cluster/ ln -s /opt/redis_cluster/redis-3.2. 阅读全文
摘要:
mkdir -p /data/redis_cluster/redis_6379 mkdir -p /opt/redis_cluster/redis_6379/{conf,pid,logs} cd /data/soft/ wget http://download.redis.io/releases/r 阅读全文