摘要: 整理了一些东西,有的没的···· 很久很久,整个假期3、4天,就这么折腾。 2016 太长,也太短,不论如何,过去了就让他过去吧!! 背上行囊,不回头,继续前行。。。 阅读全文
posted @ 2017-01-02 23:03 xuanhui 阅读(110) 评论(0) 推荐(0) 编辑
摘要: #ip与括号之间不能有空格,不加rw参数时挂载的目录是只读的 /eqp/export/ 10.10.30.0/24(rw,sync,no_root_squash) #更改目录所属的组和所属的用户(nfs一般给其他用户程序使用) chow -R gw.gw /eqp/export/ #如果目录不通需要 阅读全文
posted @ 2017-01-02 20:29 xuanhui 阅读(185) 评论(0) 推荐(0) 编辑
摘要: <Context path="/ext" docBase="/eqp/export" /> 访问目录 真实目录 阅读全文
posted @ 2017-01-02 20:28 xuanhui 阅读(558) 评论(0) 推荐(0) 编辑
摘要: yum install perl-DBI perl-DBD-MySQL perl-Time-HiRes perl-Time-HiRes perl-IO-Socket-SSLwget http://pkgs.repoforge.org/perl-TermReadKey/perl-TermReadKey 阅读全文
posted @ 2017-01-02 20:25 xuanhui 阅读(261) 评论(0) 推荐(0) 编辑
摘要: [root@back_zabbix_100 ~]# ping 10.10.30.250 | awk '{print $0"\t" strftime("%H:%M:%S",systime()) }'PING 10.10.30.250 (10.10.30.250) 56(84) bytes of dat 阅读全文
posted @ 2017-01-02 20:22 xuanhui 阅读(1302) 评论(0) 推荐(0) 编辑
摘要: 查看:mysql> show binary logs; 删除 mysql-bin.000200 之前binlog日志:mysql> purge binary logs to 'mysql-bin.000200 '; 阅读全文
posted @ 2017-01-02 20:20 xuanhui 阅读(542) 评论(0) 推荐(0) 编辑
摘要: [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" 阅读全文
posted @ 2017-01-02 20:18 xuanhui 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 情况: ping域名时反应速度慢,ping ip却很正常 方法一:禁用ipv6 /etc/hosts中注释ipv6相关的 vim /etc/sysconfig/networks NETWORKING_IPV6=no vim /etc/modprobe.d/dist.conf alias net-pf 阅读全文
posted @ 2017-01-02 19:24 xuanhui 阅读(479) 评论(0) 推荐(0) 编辑
摘要: 1、 设置为MASTER,BACKUP 优先级相同 的情况: master端的keepalived起来就会获取到vip变成主。 2、 设置为BACKUP,BACKUP 一个优先级高一个优先级低 的情况 : 切换后,原主的keepalived起来后如果对方的keepalived也在将不会获得vip, 阅读全文
posted @ 2017-01-02 19:20 xuanhui 阅读(702) 评论(0) 推荐(0) 编辑
摘要: pip install MySQL-pythonerror: command 'gcc' failed with exit status 1 yum install -y python-develpip install MySQL-python 阅读全文
posted @ 2017-01-02 19:17 xuanhui 阅读(463) 评论(0) 推荐(0) 编辑
摘要: innodb_flush_log_at_trx_commit 0:每秒 log disk1:事物提交 log disk2:事物提交 log 每秒 disk sync_binlog 0 相应速度快(没秒刷到磁盘) 1 最安全,最慢(每次事物提交多写到磁盘) 阅读全文
posted @ 2017-01-02 19:14 xuanhui 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 网段内活跃的ip:nmap -sP 10.10.30.0/24|grep for|awk '{print $5}' 阅读全文
posted @ 2017-01-02 19:09 xuanhui 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-01-02 19:08 xuanhui 阅读(2131) 评论(0) 推荐(0) 编辑
摘要: salt '*' state.sls init.pkgsalt '*' state.sls init.pkg test=true 阅读全文
posted @ 2017-01-02 19:07 xuanhui 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 打印机扫描时提示无网络连接 解决: 登录共享打印机的服务器,重启ftp服务器。 阅读全文
posted @ 2017-01-02 19:03 xuanhui 阅读(6955) 评论(0) 推荐(0) 编辑
摘要: 一件配置: rm -rf /etc/udev/rules.d/70-persistent-net.rules cd /etc/sysconfig/network-scriptsrm -rf ifcfg-eth0cat >> ifcfg-eth0 <<EOFDEVICE=eth0BOOTPROTO=n 阅读全文
posted @ 2017-01-02 19:00 xuanhui 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 每秒执行一次: * * * * * /bin/sleep 1 ; echo "1" 阅读全文
posted @ 2017-01-02 18:58 xuanhui 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 磁盘块:[root@db01 data]# tune2fs -l /dev/sda1|grep BlockBlock count: 7339776Block size: 4096Blocks per group: 32768 阅读全文
posted @ 2017-01-02 18:53 xuanhui 阅读(780) 评论(0) 推荐(0) 编辑
摘要: 情况: 最近网络打印机进程故障 前台反应打印传送特别慢。 ping打印机的ip地址延时非常大。 从我的电脑上面ping却没有问题。 判断是前台电脑问题,重启电脑,恢复了。。。 阅读全文
posted @ 2017-01-02 18:52 xuanhui 阅读(1728) 评论(0) 推荐(0) 编辑
摘要: 情况: windows启动显示欢迎界面 无法进入桌面(可以win+E进入资源管理器,可以ctl+alt+delete进入任务管理器) 重启依然无法进入 解决: 重启 按f8 进入安全模式 再次重启OK了。 其他解决办法: win+r 进入运行 >新建任务:explorer.exe 全路径:C:\Wi 阅读全文
posted @ 2017-01-02 18:26 xuanhui 阅读(710) 评论(0) 推荐(0) 编辑