zabbix3.4--server编译安装

lamp CentOS release 6.7 (Final)+Apache/2.2.15 (Unix)+mysql5.6+php5.6.38
zibbx3.4的下载网址 https://www.zabbix.com/download_sources#tab:34
https://sourceforge.net/projects/zabbix/files/ZABBIX Latest Stable/3.4.15/zabbix-3.4.15.tar.gz
./configure --prefix=/opt/zabbix/ --enable-server --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2
陆续报错
error: Not found mysqlclient library
安装mysql56u-devel
error:configure: error: LIBXML2 library not found
安装libxml2-devel.x86_64
error: Invalid Net-SNMP directory - unable to find net-snmp-config
安装net-snmp-devel.x86_64
configure: error: Unable to use libevent (libevent check failed)
安装libevent-devel.x86_64
configure: error: Curl library not found
libcurl-devel.x86_64
configure: error: Unable to use libpcre (libpcre check failed)
安装pcre的所有程序包
yum -y install pcre*
vim /opt/zabbix/etc/zabbix_server.conf

/opt/zabbix/sbin/zabbix_server 启动
报错 cannot open “/opt/zabbix/logs/zabbix_server.log”: [13] Permission denied
chown zabbix:zabbix logs
chmod 777 -R logs
正常启动后 cp -r /root/zabbix-3.4.15/frontends/php/* /var/www/html/zabbix


    servername zabbix.wkphp.com
    documentroot /var/www/html/zabbix
    errorlog logs/zabbix.error.log
    customlog logs/zabbix.access.log combine

Cannot create the configuration file.
chown -R zabbix:zabbix zabbx
chmod a+w -R zabbix
账户密码 Admin zabbix
cp /root/zabbix-3.4.15/misc/init.d/fedora/core5/zabbix_server /etc/init.d/
cp /opt/zabbix/sbin/zabbix_server /usr/local/sbin/
create database zabbix character set utf8 collate utf8_bin;

你可能感兴趣的:(zabbix)