溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

cactiEZ 添加PHP擴(kuò)展模塊mssql及相關(guān)設(shè)置問題整理

發(fā)布時(shí)間:2020-07-28 08:29:04 來源:網(wǎng)絡(luò) 閱讀:606 作者:sfih 欄目:web開發(fā)

1、下載安裝EPEL軟件源(必須)

EPEL 是yum的一個(gè)軟件源,里面包含了許多基本源里沒有的軟件。

centos 6 64位

安裝EPEL 源命令如下

yum install http://mirrors.hustunique.com/epel//6/x86_64/epel-release-6-8.noarch.rpm


2、yum安裝,遇到一個(gè)問題:


Error: Cannot retrieve metalink for repository: epel. Please verify its path 


and try again


把鏡像服務(wù)器的HTTPS地址更改為HTTP地址后問題解決,

參見https://www.centos.org/forums/viewtopic.php?t=1420

參考下圖

vi /etc/yum.repos.d/epel.repo

:wq! 保存文件

cactiEZ 添加PHP擴(kuò)展模塊mssql及相關(guān)設(shè)置問題整理

3、

安裝php-mssql時(shí),使用下面使用

yum install php-mssql

安裝時(shí)報(bào)錯(cuò)

database disk p_w_picpath is malformed

實(shí)際上使用Yum安裝的LAMP環(huán)境,添加mssql模塊到PHP,部署方法是這樣:

yum install php-mssql -y

service httpd restart

cactiEZ 添加PHP擴(kuò)展模塊mssql及相關(guān)設(shè)置問題整理

4、配置Cacti 監(jiān)控mssql

http://www.51ou.com/browse/cacti/60619.html

此文章寫的很好,強(qiáng)烈推薦參考此文,附件也附上一份

5、相關(guān)常用命令

----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 '查找關(guān)鍵字' -type d
查找文件:find /(查找范圍) -name 查找關(guān)鍵字 -print

附件:http://down.51cto.com/data/2365940
向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請(qǐng)聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI