perl d:\mrtg\bin\indexmaker d:\mrtg\bin\idc.cfg >d:\index.htm perl.exe D:\mrtg\bin\cfgmaker *@192.168.*.* *@192.168.*.* --output d:\mrtg1.cfg Read More
posted @ 2016-03-04 15:46 又是十年 Views(196) Comments(0) Diggs(0) Edit
在nconf向导的时候报如下错误: copy config file (.file_accounts.php) failed copy config file (authentication.php) failed copy config file (main.php) failed copy co Read More
posted @ 2016-03-04 15:45 又是十年 Views(365) Comments(0) Diggs(0) Edit
清空temp目录 rm -rf /var/www/nconf/temp/* 执行 /var/www/nconf/bin/generate_config.pl 删除原来配置文件 rm -rf /usr/local/nagios/etc/Default_collector rm -rf /usr/loc Read More
posted @ 2016-03-04 15:44 又是十年 Views(205) Comments(0) Diggs(0) Edit
python django-admin.py startproject myproject; python manage.py runserver, 启动Django的自带Web服务器, 在浏览器上输入:127.0.0.1:8000,便能浏览你创建的网站了。 -------------------- Read More
posted @ 2016-03-04 15:38 又是十年 Views(107) Comments(0) Diggs(0) Edit
Mysql5.7.11安装 - yum方式: 1、mysql官方网站下载mysql yum repo文件(rpm文件),安装后在系统/etc/yum.repo.d目录多出2个文件 2、yum search mysql 3、yum install mysql-community-server.x86_ Read More
posted @ 2016-03-04 15:36 又是十年 Views(350) Comments(0) Diggs(0) Edit
php.ini里 short_open_tag = On 重启apache Read More
posted @ 2016-03-04 15:35 又是十年 Views(135) Comments(0) Diggs(0) Edit
查询mysql数据库编码是否为utf8: mysql> show create database test; 查询mysql数据表编码是否为utf8: mysql> show create table yjdb; 如不是utf8: Vim /usr/share/doc/rsyslog-7.4.7/m Read More
posted @ 2016-03-04 11:42 又是十年 Views(1013) Comments(0) Diggs(0) Edit
4.1 检查是否安装了rsyslog软件 # rpm -qa|grep rsyslog //默认系统都安装了该软件 4.2 安装rsyslog 连接MySQL数据库的模块 # yum install rsyslog-mysql –y rsyslog-mysql 为rsyslog 将日志传送到MySQ Read More
posted @ 2016-03-04 11:41 又是十年 Views(1230) Comments(0) Diggs(0) Edit
如果在cacti日志中发现时间与本机时间不一致,则: cacti默认是以美国的时间为准的,监测的适合要纠正到我朝的时区. 打开 C:\AppServ\www\cacti\include\global.php 文件,在里面加入一行 date_default_timezone_set('Asia/sha Read More
posted @ 2016-03-04 11:36 又是十年 Views(1757) Comments(0) Diggs(0) Edit
解决方法:vim /etc/my.cnf 文件,加入 : sql-mode="NO_ENGINE_SUBSTITUTION" , Systemctl restart mysqld 进入mysql的之后可执行: select @@sql_mode 查询当前使用的sql_mode是什么 Read More
posted @ 2016-03-04 11:35 又是十年 Views(669) Comments(1) Diggs(0) Edit