標籤:曆史 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選擇項