摘要:
[root@back_zabbix_100 ~]# echo $LANGen_US.UTF-8[root@back_zabbix_100 ~]# cat /etc/sysconfig/i18n LANG="en_US.UTF-8"SYSFONT="latarcyrheb-sun16" 阅读全文
摘要:
情况: ping域名时反应速度慢,ping ip却很正常 方法一:禁用ipv6 /etc/hosts中注释ipv6相关的 vim /etc/sysconfig/networks NETWORKING_IPV6=no vim /etc/modprobe.d/dist.conf alias net-pf 阅读全文
摘要:
1、 设置为MASTER,BACKUP 优先级相同 的情况: master端的keepalived起来就会获取到vip变成主。 2、 设置为BACKUP,BACKUP 一个优先级高一个优先级低 的情况 : 切换后,原主的keepalived起来后如果对方的keepalived也在将不会获得vip, 阅读全文
摘要:
pip install MySQL-pythonerror: command 'gcc' failed with exit status 1 yum install -y python-develpip install MySQL-python 阅读全文
摘要:
innodb_flush_log_at_trx_commit 0:每秒 log disk1:事物提交 log disk2:事物提交 log 每秒 disk sync_binlog 0 相应速度快(没秒刷到磁盘) 1 最安全,最慢(每次事物提交多写到磁盘) 阅读全文
摘要:
网段内活跃的ip:nmap -sP 10.10.30.0/24|grep for|awk '{print $5}' 阅读全文
摘要:
mysqlMem 监控:#!/bin/bashPid=`/bin/ps -ef|grep mysqld|grep -Ev "grep|safe"|awk '{print $2}'`vMem=`/usr/bin/top -b -n 1 -p $Pid |grep mysql |awk '{print 阅读全文
摘要:
salt '*' state.sls init.pkgsalt '*' state.sls init.pkg test=true 阅读全文
摘要:
打印机扫描时提示无网络连接 解决: 登录共享打印机的服务器,重启ftp服务器。 阅读全文
摘要:
一件配置: rm -rf /etc/udev/rules.d/70-persistent-net.rules cd /etc/sysconfig/network-scriptsrm -rf ifcfg-eth0cat >> ifcfg-eth0 <<EOFDEVICE=eth0BOOTPROTO=n 阅读全文