摘要: 环境: OS:Centos 7 1.安装sshfs(每台机器都要安装) yum install fuse sshfs 2. 使用modprobe加载fuse模块(每台机器都要安装) [root@node2 sshfs]#modprobe fuse [root@localhost ~]#dmesg | 阅读全文
posted @ 2019-10-21 16:31 slnngk 阅读(1372) 评论(0) 推荐(0)
摘要: es单机备份我们在配置文件中指定path.repo参数,然后执行如下命令就可以备份了,但是备份集群的方式需要采用nfs将备份发起节点的备份目录(如我这里是:/home/es/esbak) 共享到其他的节点,其他节点挂载该目录后确保有读写权限,同时配置文件也要将参数path.repo都设置成一致 pa 阅读全文
posted @ 2019-10-17 17:31 slnngk 阅读(2179) 评论(0) 推荐(0)
摘要: 服务端 环境 OS:Centos 7 服务端IP:192.168.56.142 客户端IP:192.168.56.141 142的目录/archlog 挂载到141的目录/archlog2下 1.安装nfs yum -y install nfs-utils 2.编辑exports文件 vim /et 阅读全文
posted @ 2019-10-17 15:13 slnngk 阅读(296) 评论(0) 推荐(0)
摘要: es版本 [root@localhost bin]# ./elasticdump --help elasticdump: Import and export tools for elasticsearch version: 4.6.0 1.elasticdump 安装 su - root cd /o 阅读全文
posted @ 2019-10-16 18:15 slnngk 阅读(2370) 评论(0) 推荐(0)
摘要: 1.排名 hospital_id, vcc_id, fee_type相同的情况下,create_time升序排名 select * FROM ( SELECT @rownum:=@rownum+1 AS rownum, IF(@x=concat(uo.hospital_id,uo.vcc_id,uo 阅读全文
posted @ 2019-10-15 16:42 slnngk 阅读(187) 评论(0) 推荐(0)
摘要: 环境: OS:Centos 7 1.下载安装介质redis-shake-1.6.19.tar.gz 下载地址: https://github.com/tair-opensource/RedisShake/tags 2.解压安装tar -xvf redis-shake-1.6.19.tar.gz3.修 阅读全文
posted @ 2019-10-15 15:25 slnngk 阅读(8096) 评论(0) 推荐(0)
摘要: 安装部署elasticsearch 1.下载地址 下载地址:https://www.elastic.co/downloads/elasticsearch,我这里下载的是 elasticsearch-6.4.0.tar.gz 2.解压缩并创建数据目录 [root@localhost soft]# ta 阅读全文
posted @ 2019-10-10 15:26 slnngk 阅读(3643) 评论(0) 推荐(0)
摘要: epidb01-> more /home/oracle/scripts/ogg_monitor.sh#!/bin/bash. /etc/profile. ~/.bash_profile(echo info all;echo exit)|/u02/goldengate/ggsci|sed -n '/M 阅读全文
posted @ 2019-10-09 17:55 slnngk 阅读(391) 评论(0) 推荐(0)
摘要: 环境: OS:Centos 7 1.安装相应的软件包 yum -y install perl-DBD-MySQL perl-Config-Tiny perl-Log-Dispatch perl-Parallel-ForkManager perl-Time-HiRes yum -y install p 阅读全文
posted @ 2019-09-30 14:31 slnngk 阅读(806) 评论(0) 推荐(0)
摘要: 环境: Centos 7 这里是在管理节点上安装,需要安装manager软件包和node软件包,首先必须先安装node软件包 1.首先安装node软件 [root@pxc01 mha]# tar -xvf mha4mysql-node-0.57.tar.gz [root@pxc01 mha]#cd 阅读全文
posted @ 2019-09-30 14:30 slnngk 阅读(521) 评论(0) 推荐(0)
摘要: 柱状图 文件(table_growth.txt)内容: 月份|空间大小(GB)|记录条数 201902|11.21|1566 201903|11.91|1617 201904|13.21|2882 201905|13.65|2918 201906|170.03|2975 201907|1371.69 阅读全文
posted @ 2019-09-30 09:57 slnngk 阅读(1316) 评论(0) 推荐(0)
摘要: 1.准备数据文件 timedata.txt文件内容如下: 2019-09-10 100 2019-09-11 900 2019-09-12 1300 2019-09-13 300 2019-09-14 1000 2.启动gnuplot,输入如下命令 set xdata time ##X轴代表时间 s 阅读全文
posted @ 2019-09-29 15:48 slnngk 阅读(498) 评论(0) 推荐(0)
摘要: gnuplot命令行模式里不能输入中文,我们可以将要执行的命令保存到文件中,然后使用load的方式进行加载 D:/gnuplot_data/draw.txt文件内容如下: set xlabel "横坐标值" set ylabel "纵坐标值" plot sin(x) gnuplot> load "D 阅读全文
posted @ 2019-09-29 15:41 slnngk 阅读(1071) 评论(0) 推荐(0)
摘要: #!/bin/bashnow_time=$(date "+%Y%m%d%H%M%S")cd /u02/goldengate/dirrptcp repep.dsc /home/oracle/dirrpt/repep${now_time}.dsccp REPEP.rpt /home/oracle/dir 阅读全文
posted @ 2019-09-29 09:52 slnngk 阅读(340) 评论(0) 推荐(0)
摘要: 环境: OS:Centos 7 1.备份/opt/xtrabackup-8.0.7/bin/xtrabackup --defaults-file=/opt/mha/mysql8/conf/my.cnf --host=localhost --user=root --password=mysql --p 阅读全文
posted @ 2019-09-26 14:46 slnngk 阅读(2356) 评论(0) 推荐(0)
摘要: 环境: OS:Centos 7 添加redis开机自动启动1.添加redis服务vi /usr/lib/systemd/system/redis.service文件内容如下:[Unit]Description=redisAfter=network.targetAfter=syslog.target[ 阅读全文
posted @ 2019-09-25 08:59 slnngk 阅读(181) 评论(0) 推荐(0)
摘要: 环境: OS:Centos 7 添加ssdb开机自动启动 1.添加ssdb服务 vi /usr/lib/systemd/system/ssdb.service 文件内容如下: [Unit] Description=ssdb After=network.target After=syslog.targ 阅读全文
posted @ 2019-09-25 08:52 slnngk 阅读(614) 评论(0) 推荐(0)
摘要: 环境: OS:Centos 7 centos 7安装xtrabackup8.0.7 1.下载#8.0版本$ wget https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-8.0.4/binary/redhat/7/x86_6 阅读全文
posted @ 2019-09-23 17:59 slnngk 阅读(3482) 评论(0) 推荐(1)
摘要: 使用xtrabackup备份mysql8.0的时候报如下错误:[root@localhost bin]# ./innobackupex --defaults-file=/opt/mha/mysql8/conf/my.cnf --user=root --password=mysql -P13306 - 阅读全文
posted @ 2019-09-23 15:40 slnngk 阅读(3579) 评论(0) 推荐(0)
摘要: 执行psc的账号需要具有超级权限,否则会报错: Error creating triggers: 2019-11-27T09:56:16 DBD::mysql::db do failed: You do not have the SUPER privilege and binary logging 阅读全文
posted @ 2019-09-20 10:21 slnngk 阅读(785) 评论(0) 推荐(0)
摘要: 安装 [root@host01 percona]# tar -xvf percona-toolkit-3.0.3_x86_64.tar.gz[root@host01 percona]# mv percona-toolkit-3.0.3 /opt/[root@host01 percona-toolki 阅读全文
posted @ 2019-09-20 10:20 slnngk 阅读(2627) 评论(0) 推荐(0)
摘要: more es_check_available.sh #!/bin/bashavailable_flag=`curl -s -H "Content-Type: application/json" http://172.17.10.120:19200/?pretty|grep cluster_name 阅读全文
posted @ 2019-09-20 10:17 slnngk 阅读(298) 评论(0) 推荐(0)
摘要: 1.下载bee源码下载地址为:https://github.com/beego/bee 2.解压将下载的文件解压到最后的目录如下(相应目录的需要事先创建好,解压生产的目录名为bee-develop,重命名为bee):../src/github.com/beego/bee 3.编译安装cd C:\Go 阅读全文
posted @ 2019-09-09 14:32 slnngk 阅读(2206) 评论(0) 推荐(0)
摘要: 环境OS:Centos 7db:4.0.14 需要安装gccyum install gcc-c++ -y 问题1:make[1]: 进入目录“/soft/redis-4.0.14/src” CC adlist.oIn file included from adlist.c:34:0:zmalloc. 阅读全文
posted @ 2019-09-06 16:41 slnngk 阅读(614) 评论(0) 推荐(0)
摘要: 环境 OS:Centos 7 mysql:8.0.43 xtrabackup:8.0.35 glibc2.17版本 审计插件获取:Percona-Server-8.0.42-33-Linux.x86_64.glibc2.28-minimal.tar.gz 查看GLIBC库 [root@localho 阅读全文
posted @ 2019-09-05 17:25 slnngk 阅读(1193) 评论(0) 推荐(0)