MySQL 5.6.17 初始化以及开启root远程登录

初始化数据库scripts/mysql_install_db --basedir=/usr/local/mysql --datadir=/usr/local/mysql/mysqldata --user=mysql开启root远程登录grant all privileges on *.* to root@'%' identified by "root";

Linux 2018-09-29 PM 1224℃ 0条

修改Linux系统limits数

vim /etc/security/limits.conf * soft nproc 65535 * hard nproc 65535 * soft nofile 65535 * hard nofile 65535

Linux 2018-09-29 PM 1305℃ 0条

Docker添加自定义网络

docker network create --subnet=172.18.0.0/16 NET_18添加自定义网络之后可以实现Docker之间直接通过容器名字通信

docker 2018-09-29 PM 1263℃ 0条

DELL服务器安装OMSA硬件管理

wget -q -O - http://linux.dell.com/repo/hardware/Linux_Repository_15.07.00/bootstrap.cgi | bash yum install srvadmin-all -y /opt/dell/srvadmin/sbin/srvadmin-services.sh start iptables -I INPUT -s 访问客户端IP -p tcp --dport 1311 -j ACCEPThttp://linux.dell.com/repo/hardware

Linux 2018-09-28 PM 1387℃ 0条

安装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 1287℃ 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 1535℃ 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 1888℃ 0条

MarkDown语法

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

Linux 2018-09-28 AM 1246℃ 0条