06 2020 档案
摘要:1、启动mha: [root@pxc2 ~]# masterha_manager --conf=/opt/mha/conf/mha.cnf Mon Jun 29 00:29:03 2020 - [warning] Global configuration file /etc/masterha_def
阅读全文
摘要:1 Mysql mha简介 MHA (Master Hight Availability) 是目前在Mysql高可用方面一个相对成熟的解决方案,也是在Mysql高可用环境下故障切换和主从提升的常用软件。在Mysql 故障切换过程中,MHA 能极短时间内自动完成数据库的故障切换操作。 MHA软件由两部
阅读全文
摘要:[root@pxc2 ~]# cat /root/master_ip_failover #!/usr/bin/env perl use strict;use warnings FATAL => 'all'; use Getopt::Long; my ( $command, $ssh_user, $o
阅读全文
摘要:配置3台服务器SSH 互信: 1)打开ssh配置文件,启用以下选项 RSAAuthentication yes #允许RSA认证 PubkeyAuthentication yes #允许公钥认证 AuthorizedKeysFile .ssh/authorized_keys #公钥存放地址 Perm
阅读全文
摘要:Tomcat安装规范--转载 注:所有线上运行tomcat必须严格安装本标准执行。 1.1 tomcat用户设置 [tomcat@tuan-node1 ~]# useradd -d /tomcat -u 501 tomcat [tomcat@tuan-node1 ~]# passwd tomcat
阅读全文
摘要:mysql> stop slave ;Query OK, 0 rows affected (0.00 sec) mysql> start slave ;Query OK, 0 rows affected (0.05 sec) mysql> show slave status \G;*********
阅读全文
摘要:--恢复整个数据库 run { shutdown immediate; startup mount; restore database; recover database; alter database open;} --恢复表空间users run {sql 'alter tablespace u
阅读全文
摘要:For 10.3.x and 12.1.1, it is a limitation of the BSU utility to determine the cumulative design of PSUs. Beginning with 12.1.2, the OPatch utility is
阅读全文
摘要:./createuser --interactive iomsx;Shall the new role be a superuser? (y/n) nShall the new role be allowed to create databases? (y/n) nShall the new rol
阅读全文
摘要:mysql> SELECT t.table_schema, t.table_name FROM information_schema.tables t LEFT JOIN information_schema.columns c ON t.table_schema = c.table_schema
阅读全文
摘要:列出docker容器列表:docker ps 进入到当前pgsql所在的容器: docker exec -it $dockerID /bin/bash 切换用户:su - postgres将pgsql的skylarxx 库的所有表列出来:./pgsql -p 15432 -d skylarxx -c
阅读全文
摘要:redis没有实现访问控制这个功能,但是它提供了一个轻量级的认证方式,可以编辑redis.conf配置来启用认证。 1、初始化Redis密码: 在配置文件中有个参数: requirepass 这个就是配置redis访问密码的参数; 比如 requirepass test123; (Ps:需重启Red
阅读全文