zabbix server搭建遇到的問題

環境

         CentOS 6.3 serverlinux

         nginx-1.6.3nginx

         MySQL-5.6.25 數據庫

 

 

安裝nginx遇到的問題

啓動nginx時候提示錯誤「/usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory curl

從錯誤看出是缺乏lib文件致使,進一步查看下url

ldd $(which /usr/local/nginx/sbin/nginx)

 

         linux-vdso.so.1 =>  (0x00007fff2cbff000)

         libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f6a5758a000)

         libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f6a57353000)

         libpcre.so.1 => not found

         libz.so.1 => /lib64/libz.so.1 (0x00007f6a56f1f000)

         libc.so.6 => /lib64/libc.so.6 (0x00007f6a56b8b000)

         /lib64/ld-linux-x86-64.so.2 (0x00007f6a577af000)

         libfreebl3.so => /lib64/libfreebl3.so (0x00007f6a56928000)

         libdl.so.2 => /lib64/libdl.so.2 (0x00007f6a56724000)

能夠看出 libpcre.so.1 => not found 並無找到,進入/lib64目錄中手動連接下spa

cd /lib64/

ln -s /usr/local/lib/libpcre.so.1 /lib64/ 

 

 

nginx啓動成功,可是沒法訪問,關閉防火牆依然無效,日誌

netstat -ntpl 命令查看已經存在nginx進程code

kill -9 進程號殺掉,從新啓動,成功orm

 

 

 

安裝MySQL時候遇到的問題

         提示錯誤「error: Failed dependencies:server

         /usr/bin/perl is needed by MySQL-server-5.6.25-1.linux_glibc2.5.x86_64

         libaio.so.1()(64bit) is needed by MySQL-server-5.6.25-1.linux_glibc2.5.x86_64

         libaio.so.1(LIBAIO_0.1)(64bit) is needed by MySQL-server-5.6.25-1.linux_glibc2.5.x86_64

         libaio.so.1(LIBAIO_0.4)(64bit) is needed by MySQL-server-5.6.25-1.linux_glibc2.5.x86_64」 

         能夠看到缺乏libaio庫,安裝之         

yum install libaio

         

    再次安裝,提示「error: Failed dependencies:

         /usr/bin/perl is needed by MySQL-server-5.6.25-1.linux_glibc2.5.x86_64」 

         缺乏perl環境,安裝之         

yum install perl

        

安裝PHP遇到的問題

         錯誤提示:「Configure: error: xml2-config not found. Please check your libxml2 installation.」  

         安裝libxml2          

yum install libxml2 libxml2-devel

   

         錯誤提示「configure: error: Please reinstall the libcurl distribution -

easy.h should be in <curl-dir>/include/curl/

         安裝curl

yum install curl curl-devel

         

         錯誤提示:「configure: error: jpeglib.h not found.

         安裝libjpeg

yum install libjpeg-devel

       

         錯誤提示:「configure: error: png.h not found.

         安裝libpng

yum install libpng-devel

 

 

zabbix

         登陸以後,提示「zabbix server is not running: the information displayed may not be current.」

         先去查看日誌,根據日誌判斷是什麼問題

         若是沒有日誌,那麼試着啓動一下

         /etc/init.d/zabbix_server start

         根據啓動提示判斷,我遇到的狀況是提示「Starting zabbix_server:  /etc/init.d/functions: line 536: /usr/local/sbin/zabbix_server: 沒有那個文件或目錄」

         查看啓動腳本發現zabbix_server中的BASEDIR不是zabbix安裝路徑,改之,解決,能夠啓動,但仍是有問題,可是這時候有日誌了,查看日誌發現「10950:20150629:160204.156 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'root'@'localhost' (using password: NO)

 10950:20150629:160204.156 database is down: reconnecting in 10 seconds」

         查看/usr/local/zabbix/etc/zabbix_server.conf配置文件中數據庫信息是否正確,改之,正常

 

         啓動zabbix時候提示「user zabbix does not exist

         添加zabbix用戶

         useradd zabbix

相關文章
相關標籤/搜索