网上下载了cactiez后,一键安装后感觉非常好用。不过添加了mysql监控却监控不了mysql都是空值。网上翻了下发现是有些参数没有改才这样的。现作记录首先进入cactiez服务器修改以下文件vim/var/www/html/scripts/ss_get_mysql_stats.php1.寻找以下参数,把用户名和密码都改为你想..
分类:
数据库 时间:
2015-03-12 15:20:26
阅读次数:
153
#!/bin/shpkill nickeleink_enable_autoupdaterm -rf /debian/tmp/* /debian/tmp/.* 2>/dev/nullmount -t proc proc /debian/procmount -o bind /dev /debian/de...
分类:
其他好文 时间:
2015-03-11 21:34:24
阅读次数:
142
1、注意:source命令与shellscripts的区别是,
source在当前bash环境下执行命令,而scripts是启动一个子shell来执行命令。这样如果把设置环境变量(或alias等等)的命令写进scripts中,就只会影响子shell,无法改变当前的BASH,所以通过文件(命令列)设置环境变量时,要用source..
分类:
系统相关 时间:
2015-03-11 15:08:51
阅读次数:
174
package com.dongjak.scripts.java.反射;import java.lang.reflect.Method;import net.sf.json.JSONObject;import com.dongjak.annotations.LogTarget;/** * * @a....
分类:
其他好文 时间:
2015-03-11 12:18:05
阅读次数:
116
Linux系统管理网络配置配置IP地址[root@light~]#vi/etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0HWADDR=00:0C:29:50:F0:10TYPE=EthernetUUID=67d51e6d-e3d9-448e-832a-9890c7f91ed9ONBOOT=yesNM_CONTROLLED=yesBOOTPROTO=staticIPADDR=192.168.1.52GATEWAY=192.168.1...
分类:
系统相关 时间:
2015-03-10 19:37:09
阅读次数:
160
RoadFlow生成的表单,Ueditor编辑器不能进行非空验证的BUG修改:1.修改控制器:WorkFlowFormDesignerController红框处: 2.修改js文件:Scripts/roadui.init.js 3.修改文件:Scripts/FlowRun/Forms/commo.....
分类:
Web程序 时间:
2015-03-10 19:04:55
阅读次数:
179
参考这篇文章http://www.mamicode.com/info-detail-187799.html还有马哥的linux视频。cacti使用思路:cacti自定义监控脚本进行监控的具体流程如下:自定义数据收集方法,在CollectionMethods下有2项,DataQueries(xml方法)和DataInputMethods(scripts,command方法)数据收集..
分类:
其他好文 时间:
2015-03-09 19:27:44
阅读次数:
370
使用Vmware克隆linux虚拟机后,常常是网络连接不上,表现为ifconfig无法看到网卡,即使改了/etc/sysconfig/network-scripts/下的相应网卡文件onboot=yes也不行,重启网络时(/etc/init.d/networkrestart)会出现以下错误提示:"Deviceeth0doesnotseemtobepresent,delayinginitial..
分类:
其他好文 时间:
2015-03-09 19:25:29
阅读次数:
202
今天把以前硬盘里存的centos放到公司的vmware上运行,发现网络起不来,提示错误是这样的:
device “eth2” does not seem to be present, delaying initialization
然后我看了[def@localhost ~]$ cat /etc/sysconfig/network-scripts/ifcfg-eth2
DEVICE="eth2...
分类:
其他好文 时间:
2015-03-09 19:11:33
阅读次数:
179
配置: WSGIScriptAlias /var/www/wsgi-scripts/simple.wsgi def application(environ, start_response): output = ‘hello world’ status = ‘200 OK’ headers = [(‘...
分类:
其他好文 时间:
2015-03-09 14:24:01
阅读次数:
150