cactiEZ 添加PHP扩展模块mssql及相关设置问题整理
2015-07-21 16:36
771 查看
1、下载安装EPEL软件源(必须)EPEL 是yum的一个软件源,里面包含了许多基本源里没有的软件。
centos 6 64位
安装EPEL 源命令如下
yum install http://mirrors.hustunique.com/epel//6/x86_64/epel-release-6-8.noarch.rpm
2、yum安装,遇到一个问题:
Error: Cannot retrieve metalink for repository: epel. Please verify its path
and try again
把镜像服务器的HTTPS地址更改为HTTP地址后问题解决,
参见https://www.centos.org/forums/viewtopic.php?t=1420
参考下图
vi /etc/yum.repos.d/epel.repo
:wq! 保存文件
3、
安装php-mssql时,使用下面使用
yum install php-mssql
安装时报错
database disk image is malformed
实际上使用Yum安装的LAMP环境,添加mssql模块到PHP,部署方法是这样:
yum install php-mssql -y
service httpd restart
4、配置Cacti 监控mssql
http://www.51ou.com/browse/cacti/60619.html
此文章写的很好,强烈推荐参考此文,附件也附上一份
5、相关常用命令
----php
/usr/bin/php -q /var/www/html/scripts/ss_win_mssql.php 192.168.90.110 scans cactistats CHANGEME
php /var/www/html/scripts/ss_win_mssql.php 192.168.90.110 connections
php -q /var/www/html/cli/rebuild_poller_cache.php -d 添空缓存
----RRDTOOL命令
/usr/local/rrdtool/bin/rrdtool fetch /var/www/html/rra/3/416.rrd AVERAGE
/usr/local/rrdtool/bin/rrdtool info /var/www/html/rra/3/416.rrd
----LINUX命令
查找目录:find /(查找范围) -name '查找关键字' -type d
查找文件:find /(查找范围) -name 查找关键字 -print
本文出自 “石头多的博客” 博客,请务必保留此出处http://dayday.blog.51cto.com/3248/1676775
centos 6 64位
安装EPEL 源命令如下
yum install http://mirrors.hustunique.com/epel//6/x86_64/epel-release-6-8.noarch.rpm
2、yum安装,遇到一个问题:
Error: Cannot retrieve metalink for repository: epel. Please verify its path
and try again
把镜像服务器的HTTPS地址更改为HTTP地址后问题解决,
参见https://www.centos.org/forums/viewtopic.php?t=1420
参考下图
vi /etc/yum.repos.d/epel.repo
:wq! 保存文件
3、
安装php-mssql时,使用下面使用
yum install php-mssql
安装时报错
database disk image is malformed
实际上使用Yum安装的LAMP环境,添加mssql模块到PHP,部署方法是这样:
yum install php-mssql -y
service httpd restart
4、配置Cacti 监控mssql
http://www.51ou.com/browse/cacti/60619.html
此文章写的很好,强烈推荐参考此文,附件也附上一份
5、相关常用命令
----php
/usr/bin/php -q /var/www/html/scripts/ss_win_mssql.php 192.168.90.110 scans cactistats CHANGEME
php /var/www/html/scripts/ss_win_mssql.php 192.168.90.110 connections
php -q /var/www/html/cli/rebuild_poller_cache.php -d 添空缓存
----RRDTOOL命令
/usr/local/rrdtool/bin/rrdtool fetch /var/www/html/rra/3/416.rrd AVERAGE
/usr/local/rrdtool/bin/rrdtool info /var/www/html/rra/3/416.rrd
----LINUX命令
查找目录:find /(查找范围) -name '查找关键字' -type d
查找文件:find /(查找范围) -name 查找关键字 -print
本文出自 “石头多的博客” 博客,请务必保留此出处http://dayday.blog.51cto.com/3248/1676775
相关文章推荐
- php json_encode() 数据
- php -- instanceof、class_exists、insterface_exists、method_exists、get_class、get_parent_class
- PHP中使用cURL实现Get和Post请求的方法
- 开启CURL扩展,让服务器支持PHP curl函数(远程采集)
- PHP实现根据设备类型自动跳转相应页面的方法
- thinkphp自动创建数据对象分析
- WampServer搭建php环境可能遇到的问题
- php -- 魔术方法 之 序列化和反序列化的触发函数:__sleep(),__wakeup()
- php设置和获取cookie
- PHPExcel1.8.0 设置单元格格式
- Laravel 关联查询
- Zend studio快捷键使用
- LAMP服务器环境之编译(部分)安装-php的fastcgi模式
- php调用webservice接口
- ZendStudio10.6.1如何安装最新的集成svn小工具?
- 在VS 2015 RTM 版中 提示 未能正确加载 NuGetPackage包
- 陈力:传智播客古代 珍宝币 泡泡龙游戏开发第24讲:PHP程序的控制结构
- 陈力:传智播客古代 珍宝币 泡泡龙游戏开发第23讲:PHP运算符(算术运算、逻辑运算、比较运算、三元运算、类型运算、运算符优先级)
- 陈力:传智播客古代 珍宝币 泡泡龙游戏开发第22讲:PHP语法、数据类型(整型、布尔型、浮点型、字符串型)
- 陈力:传智播客古代 珍宝币 泡泡龙游戏开发第21讲:PHP运行原理及编程规范