CentOS6.9-zabbix3.2啟動失敗原因及頁面沒有mysql選擇項

來源:互聯網
上載者:User

標籤:曆史   mysql資料庫   pre   code   gen   extension   usr   base   5.5   

 環境核心資訊:
[[email protected]01 ~]# uname -aLinux lodboyedu-01 2.6.32-696.el6.x86_64 #1 SMP Tue Mar 21 19:29:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
zabbix啟動失敗的原因啟動時出這 個錯誤:
[[email protected] zabbix-3.2.7]# /etc/init.d/zabbix_server start/usr/local/sbin/zabbix_server not installed!  
解決方案:
1. 首先複製的啟動指令碼是core目錄下的,並不是core5下面的[[email protected] zabbix-3.2.7]# \cp /server/tools/zabbix-3.2.7/misc/init.d/fedora/core/* /etc/init.d/
2. 複製過來之後,修改啟動指令碼中的目錄資訊[[email protected] zabbix-3.2.7]# vim /etc/init.d/zabbix_server       zabbix_agentd也要這樣改,兩個檔案一樣     BASEDIR=/usr/local/zabbix    ----根據個人情況來改,zabbix軟體路徑
啟動
[[email protected] zabbix-3.2.7]# /etc/init.d/zabbix_server startStarting zabbix_server:                                    [  OK  ][[email protected] zabbix-3.2.7]# /etc/init.d/zabbix_agentd startStarting zabbix_agentd:                                    [  OK  ]

zabbix頁面沒有mysql選擇項

php編譯中少了參數/application/php-5.5.32/bin/php -i |grep configure ----- 查看曆史的編譯記錄[[email protected] php-5.5.32]# ./configure -h |grep mysql  ----查看協助--with-mysql=DIR Include MySQL support. DIR is the MySQL basemysqlnd the MySQL native driver will be used--with-mysql-sock=SOCKPATH--with-mysqli=FILE Include MySQLi support. FILE is the pathto mysql_config. If no value or mysqlnd is passed--enable-embedded-mysqli--with-pdo-mysql=DIR PDO: MySQL support. DIR is the MySQL base directoryIf no value or mysqlnd is passed as DIR, the--enable-mysqlnd Enable mysqlnd explicitly, will be done implicitly--disable-mysqlnd-compression-supportDisable support for the MySQL compressed protocol in mysqlnd--with-zlib-dir=DIR mysqlnd: Set the path to libz install prefix串連不到mysql資料庫的原因:缺少 --with-mysqli=mysqlnd 模組參數

解決方案:

添加該編譯參數

/server/tools/php-5.5.32/ext/mysqli/目錄下執行:[[email protected] mysqli]# ./configure --with-mysqli=mysqlnd --with-php-config=/application/php-5.5.32/bin/php-config [[email protected] mysqli]# make && make install

編譯完成後修改php.ini中的參數,沒有這個參數就加上

[[email protected] php]# vim lib/php.iniextension="mysqli.so"

然後到網頁中強制重新整理一下,就有選擇mysql的一項了

 

CentOS6.9-zabbix3.2啟動失敗原因及頁面沒有mysql選擇項

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.