摘要: date.timezone设置php5默认date.timezone为utc,改为date.timezone = PRC即可解决时间相差八小时的问题 阅读全文
posted @ 2015-05-28 09:40 RH★JEANS 阅读(2205) 评论(0) 推荐(0) 编辑
摘要: # yum -y install php*注意:php53-odbc64-5.3.3-2.el5.x86_64 from base has depsolving problems -->php53-odbc64conflicts with php53-odbcError:php53-odbc64co... 阅读全文
posted @ 2015-05-27 15:41 RH★JEANS 阅读(549) 评论(0) 推荐(0) 编辑
摘要: 由于centos的标准组件中是不带rrdtool的,因此我们需要添加一个dag的yum源,以安装rrdtool。修改/etc/yum.repos.d/CentOS-Base.repo,#vi /etc/yum.repos.d/CentOS-Base.repo在其末尾追加[dag]name=Dag R... 阅读全文
posted @ 2015-05-27 14:19 RH★JEANS 阅读(510) 评论(0) 推荐(0) 编辑
摘要: 无权查看任何主机的信息。 请检查HTTP服务器关于该CGI的访问权限设置。搜索了一下方法确保 htpasswd.user的所有组为nagios解决办法:vi /usr/local/nagios/etc/cgi.cfg将use_authentication的值改为0.use_authenticatio... 阅读全文
posted @ 2015-05-27 14:06 RH★JEANS 阅读(904) 评论(0) 推荐(0) 编辑
摘要: 安装pluginunzip cacti-plugin-0.8.7e-PA-v2.6.zip -d cacti-plugin-archcp -R cacti-plugin-arch/* /data/wwwroot/cacti#cd /data/wwwroot/cacti#mysql -ucactius... 阅读全文
posted @ 2015-05-26 14:13 RH★JEANS 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 如果你不是安装 Cacti 到 Apache 默认的网络目录文件夹位置,那么在 /etc/httpd/conf.d 中新增配置文件 cacti.conf,并且按如下内容编辑。设置 /your/cacti/dir 为你自己的cacti目录名称。更新 Allow from 127.0.0.1 为任何你需... 阅读全文
posted @ 2015-05-26 13:16 RH★JEANS 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 缘由:在64位操作系统下IIS发布32位的项目,报“项目依赖的dll无法读取,试图加载格式不正确的程序”错误。原因:程序集之间的通讯要么全是64位环境下的,要么全是32位环境下的。不能混编访问。不然会出现“试图加载格式不正确的程序”的错误。解决方法:【C/S】运行C/S程序比较简单,直接在Build... 阅读全文
posted @ 2015-04-27 11:34 RH★JEANS 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 已知已经拥有一个包含数据的DataTable "rmstate"Random r=new Random();//实例化随机数对象int random = r.Next(0, rmstate.Rows.Count-1);//设定随机数的范围并产生一个随机数并返回,int类型DataTable dt = rmstate.Clone();//将原表的结构克隆给一个新表dt.ImportRow(rmstateList.Rows[random]);//ImportRow方法表示如果目标表中包含有与原表完全相同的数据,则先删除目标表中重复的数据并将原表数据复制过来。dt.AcceptC 阅读全文
posted @ 2012-01-05 16:52 RH★JEANS 阅读(299) 评论(0) 推荐(0) 编辑
摘要: asp:Literal控件的Text属性,可以将所写的内容完整的反应到前台页面中。例如:HTML<body> <form runat="server"> <h1><asp:Literal id="Headline" runat=server /></h1> </form></body>C#Headline.Text = "欢迎";效果前台页面中将显示“欢迎”两个字 阅读全文
posted @ 2011-09-27 16:34 RH★JEANS 阅读(254) 评论(0) 推荐(0) 编辑