安装2.4版本zabbix-agent

添加zabbix yum仓库rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm安装zabbix-agentyum install zabbix-agent -y修改zabbix-agent内信息vim /etc/zabbix/zabbix_agentd.conf Server=192.168.10.11 ServerActive=192.168.10.11 Hostname=web1启动zabbix-agentservice zabbix-agent st...

Linux 2018-09-28 PM 1308℃ 0条

CentOS6.9关闭IPV6

关闭IPV6cat << EOF > /etc/modprobe.d/ipv6.conf alias net-pf-10 off options ipv6 disable=1 EOF echo "NETWORKING_IPV6=off" >>/etc/sysconfig/network chkconfig ip6tables off echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf echo "net.ipv6.conf.de...

Linux,docker 2018-09-28 AM 1553℃ 0条

innobackupex实现mysql一键备份还原并创建slave同步

准备工作:1、提前建好bak_dirmkdir /home/mysql/backup_xt/2、提前创建好同步用户GRANT REPLICATION SLAVE,REPLICATION CLIENT ON *.* TO 'slave_user'@'192.168.1.%' IDENTIFIED BY '123456';3、提前准备好备份用户、可直接用root用户4、还原之后的mysql用户和数据都和原数据库一致脚本如下:#!/bin/bash #备份端SQL信息 bak_date=`date +%Y-%m-%d` cnf_file="/home/mysql/bak/my.cnf...

Linux,docker,数据库 2018-09-28 AM 1907℃ 0条

MarkDown语法

https://coding.net/help/doc/project/markdown.html#i-6

Linux 2018-09-28 AM 1265℃ 0条

FIO测试Linux磁盘IO

编写脚本内容如下:#!/bin/bash yum install libaio-devel fio -y echo "------------512-4096------------">>IO_TEST for ((i=1; i<=5; i ++)) do echo "开始第"$i"组测试..." echo "第"$i"组测试:">>IO_TEST fio -filename=/tmp/mytest1 -direct=1 -iodepth 1 -thread ...

Linux 2018-09-28 AM 2246℃ 0条