直接修改locales.inc.php中中文可视调整为True即可:[root@Zabbix-CentOS-35~]#cat/data/zabbix/include/locales.inc.php|grep-n"‘display‘"50:‘en_GB‘=>array(‘name‘=>_(‘English(en_GB)‘),‘display‘=>true),51:‘en_US‘=>array(‘name‘=>_(‘English(en_US)‘),‘di..
分类:
其他好文 时间:
2014-07-24 14:50:56
阅读次数:
296
一下是重启Linux下某进程的shell脚本,以tomcat进程为例:
#!/bin/sh
pid=`ps -ef|grep tomcat|grep -v grep|awk '{print $2}'`
if [ "$pid" = "" ] ; then
echo "tomcat service does not start!"
else
kill -9 $pid
pi...
分类:
系统相关 时间:
2014-07-24 10:28:03
阅读次数:
251
下面,就给大家介绍这些CentOS常用命令。一:使用CentOS常用命令查看cpumore /proc/cpuinfo | grep "model name"grep "model name" /proc/cpuinfo[root@localhost /]# grep "CPU" /proc/cpu...
分类:
其他好文 时间:
2014-07-24 10:18:44
阅读次数:
399
举例:grep -a -n -B 10 -C 10 --color=auto xxx文件 含义: -a 将 二进制文件以 text 文件的方式搜寻数据? -n 显示行号 ? ?--color=auto 来将关键字部分使用颜色显示 -B 10 关键字前面再显示10行? ?-C 10 关...
分类:
其他好文 时间:
2014-07-23 17:37:01
阅读次数:
196
#date2014年07月22日星期二22:06:12EDT#cat/etc/sysconfig/clock--------------------------ZONE="America/New_York"--------------------------#sed-i‘s/^/#/g‘/etc/sysconfig/clock#sed-i‘$aZONE="Asia/Shanghai"‘/etc/sysconfig/clock#cat/etc/sysconfig/clock-------------..
分类:
其他好文 时间:
2014-07-23 13:42:47
阅读次数:
228
[enilu@enilu ~]$ mplayerbash: mplayer: command not found[enilu@enilu ~]$ yum list | grep mplayer^C^CExiting on Broken Pipe[enilu@enilu ~]$ [enilu@en.....
分类:
系统相关 时间:
2014-07-23 11:33:56
阅读次数:
490
shell脚本报错:"[:=:unaryoperatorexpected"md5_109a="81ab961153b62d207f0f517048881b5d"md5_109b=`md5suminstall.bin|awk‘{print$1}‘`if[$md5_109a!=$md5_109b]原因,当文件install.bin不存在时,$md5_109b为空这样对比字符串就变成了if[81ab961153b62d207f0f517048881b5d!..
分类:
其他好文 时间:
2014-07-23 00:20:38
阅读次数:
211
目标
}掌握linux的一些基本命令
}掌握linux常用的系统管理命令
}学会日常软件的安装
}在linux系统里面发布web项目
正文...
分类:
系统相关 时间:
2014-07-23 00:01:04
阅读次数:
468
#!/usr/bin#设置数据库连接conn='mysql -hhost -Pport -uusername -ppassword'#获取最新的binlog文件logfile=$($conn -e "show master logs" | tail -n 1 | awk -F" " '{print ...
分类:
数据库 时间:
2014-07-22 23:22:47
阅读次数:
298
mysql-uroot-e"showprocesslist"|grep-i"Locked">>locklist.txt;
forlineinawk‘{print$1}‘locklist.txt
do
echo"kill$line;">>lock_kill.sql
done查看mysql数据库表大小#!/bin/bash
database=cms
user=root
password=‘123456‘
mysql-u${user}-p${password}-e"use$d..
分类:
数据库 时间:
2014-07-22 18:15:42
阅读次数:
334