zabbix server搭建遇到的问题

摘要:
环境CentOS6.3servernginx1.6.3MySQL 5.6.25安装nginx时遇到的问题。启动nginx时,会提示错误“/usr/local/nginx/sbin/nginx:errorwileloadingredlibraries:libpcre.so.1:cannoopensharedobjectfile:Nosuchfileordirectory”
环境

         CentOS 6.3 server

         nginx-1.6.3

         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

从错误看出是缺少lib文件导致,进一步查看下

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目录中手动链接下

cd /lib64/

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

 

nginx启动成功,但是无法访问,关闭防火墙依然无效,

netstat -ntpl 命令查看已经存在nginx进程

kill -9 进程号杀掉,重新启动,成功

安装MySQL时候遇到的问题

         提示错误“error: Failed dependencies:

         /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

         

免责声明:文章转载自《zabbix server搭建遇到的问题》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇大型网站技术架构mongodb模糊查询包含特殊字符下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

Zabbix安装部署

环境准备 OS:CentOS 7.2 64bit Zabbix版本:3.0.12 MySQL版本:5.6 注意:zabbix3.0相关要求 mysql5.0以上版本、apache1.3以上版本、php5.4以上版本。 版本选择 在版本选择建议选择官方技术支持时间较长(LTS)的稳定版本,从上图我我们可以看到没有最新最稳定的是Zabbix3.0...

Zabbix监控Windows事件日志

1.zabbix_agentd.win文件修改: LogFile=c:zabbixzabbix_agentd.log Server=1.16.2.4 ServerActive=1.16.2.4 Hostname=1.16.3.6 #该值必须和Host里面创建的该host的Host Name一致,不加该句默认为该主机的计算机名称,不加这个会出现“acc...

zabbix proxy配置实战案例

            zabbix proxy配置实战案例                                      作者:尹正杰 版权声明:原创作品,谢绝转载!否则将追究法律责任。 一.zabbix proxy概述   上一篇博客我们分享了zabbix agent有两种工作模式,即主动模式和被动模式,默认是被动模式,主动模式需要我们手动...

zabbix监控交换机

网络设备开启snmp就不过多介绍了,后续配置新的设备也会更新; 有模板的尽量用模板,自动发现不太好用,也可能是我太弱鸡了; zabbix官网下载监控模板http://www.zabbix.org/wiki/Zabbix_Templates(看好对应的设备型号要不然用不了的) 导入模板的流程是这样:--组态>--模板>-->汇入>--...

Zabbix 中文使用手册

一、Zabbix简介 详情参考“企业监控利器-zabbix”http://waringid.blog.51cto.com/65148/904201。 二、Zabbix使用 2.1 Zabbix框架介绍 在浏览器中输入http://192.168.0.189进入监控软件登陆界面(图二),登陆用户名和密码为network,登陆后的界面如图三所示。 图二:登录...

zabbix 客户端的安装

这里我们在客户端安装就是用rpm的安装方式了: 在我使用RPM安装的时候遇到了一个错误 [root@git src]# rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/6/x86_64/zabbix-agent-3.0.3-1.el6.x86_64.rpmRetrieving http://repo.zabb...