修改Linux系统limits数

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

Linux 2018-09-29 PM 1145℃ 0条

Docker添加自定义网络

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

docker 2018-09-29 PM 1121℃ 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 1244℃ 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 1127℃ 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 1352℃ 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 1636℃ 0条

MarkDown语法

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

Linux 2018-09-28 AM 1088℃ 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 2033℃ 0条