摘要: 在11上安装mysql yum install mariadb mariadb-server -y 在mysql的配置文件my.cnf中加入 init_connect='SET collation_connection = utf8_unicode_ci' init_connect='SET NAM 阅读全文
posted @ 2018-09-06 16:40 天府熊大 阅读(321) 评论(0) 推荐(0)
摘要: 打包/etc/salt/下的pki文件夹。发送到新的master,然后更改minion的hosts,重启minion,最后重启新master。。搞定(salt "*" service.restart) 阅读全文
posted @ 2018-09-06 11:22 天府熊大 阅读(270) 评论(0) 推荐(0)
摘要: 一、环境准备 系统:centos7 and centos6.8 172.16.1.11 二、开始安装 安装yum源 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 安装epe 阅读全文
posted @ 2018-09-06 11:21 天府熊大 阅读(221) 评论(0) 推荐(0)
摘要: 说明: 本次ELK的基础配置如下: 虚拟机:vmware 11 系统:centos7.2 两台 IP:172.16.1.15/16 一、下载es wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/dist 阅读全文
posted @ 2018-07-12 18:30 天府熊大 阅读(220) 评论(0) 推荐(0)
摘要: 一、安装Dnsmasq yum install -y dnsmasq 二、安装dig yum install dnsmasq -y 三、编辑配置文件 vim /etc/dnsmasq.conf resolv-file=/etc/resolv.dnsmasq.conf strict-order lis 阅读全文
posted @ 2018-05-29 09:35 天府熊大 阅读(1303) 评论(0) 推荐(0)
摘要: 1、首先编译安装nginx(不多说) 2、开始安装openresty cd /usr/local/src wget https://openresty.org/download/openresty-1.11.2.2.tar.gz tar xf openresty-1.11.2.2.tar.gz cd 阅读全文
posted @ 2018-04-10 10:49 天府熊大 阅读(326) 评论(0) 推荐(0)
摘要: 查看mysql数据库federated引擎是否开启。 show engines; 若没有开启federated则在mysql配置文件my.cnf中mysqld中添加federated。 在远程数据库中添加远程访问数据库的用户 创建表 CREATE TABLE `work_step_apply_che 阅读全文
posted @ 2018-01-15 09:28 天府熊大 阅读(234) 评论(0) 推荐(0)
摘要: 概述 由于目前生产环境的mysql数据库分布在两台服务器,若从单一主从来看,配置很简单,但是需要将两台服务器的数据库同步到一台从库上面,需要进行更多配置和注意事项。多源复制有两种方案,Binlog+Position和GTID,我们采用的是第一种方案Binlog+Position进行的多源复制。 安装 阅读全文
posted @ 2018-01-15 09:22 天府熊大 阅读(395) 评论(0) 推荐(0)
摘要: 若请求 Head 信息中存在自定义信息并且以 "_" 下划线间隔,则必须配置underscores_in_headers 否则 Head 无法向 Tomcat 转发 解决办法: 在nginx.conf的http块中添加以下参数 underscores_in_headers on; 阅读全文
posted @ 2017-11-07 17:56 天府熊大 阅读(1213) 评论(0) 推荐(0)
摘要: 一、准备 环境:centos6.8 nginx:1.13.6 二、开始 首先安装依赖包: yum install -y gcc gcc-c++ autoconf automake make zlib zlib-devel openssl openssl-devel pcre pcre-devel 开 阅读全文
posted @ 2017-11-02 17:43 天府熊大 阅读(10738) 评论(1) 推荐(0)