安裝zabbix需要php的兩個(gè)模塊是什么

安裝zabbix需要php的兩個(gè)模塊是什么,相信很多沒(méi)有經(jīng)驗(yàn)的人對(duì)此束手無(wú)策,為此本文總結(jié)了問(wèn)題出現(xiàn)的原因和解決方法,通過(guò)這篇文章希望你能解決這個(gè)問(wèn)題。

成都網(wǎng)站建設(shè)哪家好,找創(chuàng)新互聯(lián)!專(zhuān)注于網(wǎng)頁(yè)設(shè)計(jì)、網(wǎng)站建設(shè)公司、微信開(kāi)發(fā)、成都小程序開(kāi)發(fā)、集團(tuán)成都企業(yè)網(wǎng)站建設(shè)等服務(wù)項(xiàng)目。核心團(tuán)隊(duì)均擁有互聯(lián)網(wǎng)行業(yè)多年經(jīng)驗(yàn),服務(wù)眾多知名企業(yè)客戶(hù);涵蓋的客戶(hù)類(lèi)型包括:成都紗窗等眾多領(lǐng)域,積累了大量豐富的經(jīng)驗(yàn),同時(shí)也獲得了客戶(hù)的一致贊賞!


1.操作系統(tǒng)版本

  1. [root@aws zabbix]# cat /etc/redhat-release

  2. Red Hat Enterprise Linux Server release 7.4 (Maipo)

2.在安裝zabbix的時(shí)候報(bào)錯(cuò)(紅色是執(zhí)行的語(yǔ)句),如下:

  1. yum install zabbix-server-MySQL zabbix-web-mysql

  2. --> Finished Dependency Resolution

  3. Error: Package: zabbix-web-3.4.7-1.el7.noarch (zabbix)

  4.            Requires: php-bcmath

  5. Error: Package: zabbix-web-3.4.7-1.el7.noarch (zabbix)

  6.            Requires: php-mbstring

  7.  You could try using --skip-broken to work around the problem

  8.  You could try running: rpm -Va --nofiles --nodigest

3.這兩個(gè)模塊的yum源比較少,在網(wǎng)上發(fā)現(xiàn)163的yum源包含它們,那么就需要替換yum源,步驟如下:

a.進(jìn)入yum源目錄

  1. cd /etc/yum.repos.d

b.執(zhí)行

  1. [root@aws yum.repos.d]# wget http://mirrors.163.com/.help/CentOS7-Base-163.repo

c.因?yàn)槲夷壳笆莚edhat7,所以要編輯這個(gè)文件,黑色加粗斜體是我改的,屏蔽3行,增加3行

  1. # CentOS-Base.repo

  2. #

  3. # The mirror system uses the connecting IP address of the client and the

  4. # update status of each mirror to pick mirrors that are updated to and

  5. # geographically close to the client. You should use this for CentOS updates

  6. # unless you are manually picking other mirrors.

  7. #

  8. # If the mirrorlist= does not work for you, as a fall back you can try the

  9. # remarked out baseurl= line instead.

  10. #

  11. #

  12. [base]

  13. name=CentOS-$releasever - Base - 163.com

  14. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os

  15. #baseurl=http://mirrors.163.com/centos/$releasever/os/$basearch/

  16. baseurl=http://mirrors.163.com/centos/7/os/x86_64/

  17. gpgcheck=1

  18. gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

  19. #released updates

  20. [updates]

  21. name=CentOS-$releasever - Updates - 163.com

  22. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates

  23. #baseurl=http://mirrors.163.com/centos/$releasever/updates/$basearch/

  24. baseurl=http://mirrors.163.com/centos/7/updates/x86_64/

  25. gpgcheck=1

  26. gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

  27. #additional packages that may be useful

  28. [extras]

  29. name=CentOS-$releasever - Extras - 163.com

  30. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras

  31. #baseurl=http://mirrors.163.com/centos/$releasever/extras/$basearch/

  32. baseurl=http://mirrors.163.com/centos/7/extras/x86_64/

  33. gpgcheck=1

  34. gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

  35. #additional packages that extend functionality of existing packages

  36. [centosplus]

  37. name=CentOS-$releasever - Plus - 163.com

  38. #baseurl=http://mirrors.163.com/centos/$releasever/centosplus/$basearch/

  39. gpgcheck=1

  40. enabled=0

  41. gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

4.清除和創(chuàng)建yum緩存

  1. yum clean all

  2. yum makecache

5.再次執(zhí)行安裝zabbix

  1. yum install zabbix-server-mysql zabbix-web-mysql

看完上述內(nèi)容,你們掌握安裝zabbix需要php的兩個(gè)模塊是什么的方法了嗎?如果還想學(xué)到更多技能或想了解更多相關(guān)內(nèi)容,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道,感謝各位的閱讀!

網(wǎng)站題目:安裝zabbix需要php的兩個(gè)模塊是什么
URL鏈接:http://muchs.cn/article46/ijcjhg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供虛擬主機(jī)、全網(wǎng)營(yíng)銷(xiāo)推廣網(wǎng)頁(yè)設(shè)計(jì)公司、網(wǎng)站改版動(dòng)態(tài)網(wǎng)站、營(yíng)銷(xiāo)型網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶(hù)投稿、用戶(hù)轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

手機(jī)網(wǎng)站建設(shè)