摘要: 这是在mysql互为主从的基础上做的 yum -y install keepalived #两台机器上都装 配置Keepalived主从, vrrp_instance VI_1 { state MASTER # 标记, 从为SLAVE interface eth0 # 网络接口 virtual_ro 阅读全文
posted @ 2018-07-26 14:01 浩0x208哥 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 只需修改从配置文件 # slaveof <masterip> <masterport> slaveof 127.0.0.1 6379 # masterauth <master-password>masterauth 123123 启动后查看 主 127.0.0.1:6379> info replic 阅读全文
posted @ 2018-07-18 13:11 浩0x208哥 阅读(427) 评论(0) 推荐(0) 编辑
摘要: 一、理论基础 FastDFS比较适合以中小文件为载体的在线服务,比如跟NGINX(APACHE)配合搭建图片服务器。 分布式文件系统FastDFS FastDFS是纯C语言实现,只支持Linux、FreeBSD等UNIX系统。 FastDFS的两个核心概念分别是:Tracker(跟踪器)、Stora 阅读全文
posted @ 2018-07-18 10:55 浩0x208哥 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 主master vim /etcmy.cnf log-bin=mysql-binlog-slave-updates=ture #开启从日志server-id = 199 /etc/init.d/mysqld restart 创建复制用户并授权 grant replication slave on * 阅读全文
posted @ 2018-07-17 15:57 浩0x208哥 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 在主服务器上安装NTP时间同步服务器 yum -y install ntp vim /etc/ntp.conf 手动添加两行 server 127.127.1.0 fudge 127.127.1.0 startum 8 启动服务、/etc/init.d/ntpd start chkconfig nt 阅读全文
posted @ 2018-07-17 11:18 浩0x208哥 阅读(1628) 评论(0) 推荐(0) 编辑
摘要: mysql备份一个库, mysqldump -u用户名 -p密码 [选项] [数据库名] > /备份路径/备份文件名 mysqldump -uuser -p123123 auth > /path/auth-$(date +%Y%m%d).sql 备份多个库 mysqldump -u用户名 -p密码 阅读全文
posted @ 2018-07-17 10:54 浩0x208哥 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 启动多个进程收集日志。直接output到kafka,output到不同的topiccat filebeat.ymlfilebeat.prospectors:- input_type: log paths: - /home/test/job/logs/job-20*.log document_type 阅读全文
posted @ 2018-07-16 15:32 浩0x208哥 阅读(3103) 评论(0) 推荐(0) 编辑
摘要: 1、安装依赖包yum -y install git readline-devel automake autoconf2、下载 jumpservergit clone https://github.com/jumpserver/jumpserver.git执行快速安装脚本yum -y install 阅读全文
posted @ 2018-07-13 16:20 浩0x208哥 阅读(714) 评论(0) 推荐(0) 编辑
摘要: 创建用户和密码:crate user 用户名 with password '密码' ; 创建 alter user 用户名 with password ’密码' ; 修改用户密码 查看用户信息: select * from pg_shadow; 创建库: create database dbname 阅读全文
posted @ 2018-07-09 17:36 浩0x208哥 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 删除库的时候报错 ERROR: database "temp_test_yang" is being accessed by other usersDETAIL: There are 4 other sessions using the database. ERROR: database "temp 阅读全文
posted @ 2018-07-09 16:47 浩0x208哥 阅读(1505) 评论(0) 推荐(0) 编辑