zabbix3.0安装记录

1 wget https://jaist.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/3.0.13/zabbix-3.0.13.tar.gz

2 tar -zxvf zabbix-3.0.0.tar.gz

3 groupadd zabbix useradd -g zabbix zabbix

./configure --enable-server --enable-agent --with-mysql --enable-java --enable-proxy --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2

4 安装mysql/////安装jdk

yum install -y mysql mysql-server mysql-devel

执行zabbix 建库脚本(其它数据库参考文档)

create database zabbix character set utf8 collate utf8_bin;

grant all privileges on zabbix.* to zabbix@localhost identified by '';

cd /opt/zabbix-3.0.13/database/mysql

mysql -uzabbix -p123456 zabbix < schema.sql

mysql -uzabbix -p123456 zabbix < images.sql

mysql -uzabbix -p123456 zabbix < data.sql

yum install libxml2-devel libxml2 net-snmp net-snmp-devel curl curl-devel

5 php7 安装

php.ini 修改

max_execution_time = 300 memory_limit = 128M post_max_size = 16M upload_max_filesize = 2M max_input_time = 300 date.timezone = PRC

6配置/usr/local/etc/zabbix_server.conf

LogFile=/tmp/zabbix_server.log

PidFile=/tmp/zabbix_server.pid

DBHost=localhost

DBName=zabbix

DBUser=zabbix

DBPassword=123456

zabbix_server 启动

7 nginx配置 最简化的配置

listen 80 default_server;

listen [::]:80 default_server;

server_name _;

root /opt/zabbix-3.0.13/frontends/php ;

Load configuration files for the default server block.

include /etc/nginx/default.d/*.conf;

location / {

index index.html index.htm index.php;

}

location ~ .php$ {

add_header Cache-Control "no-cache, no-store, max-age=0, must-revalidate";

add_header Pragma no-cache;

fastcgi_pass 127.0.0.1:9000;

fastcgi_index index.php;

include fastcgi_params;

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

}

8 zabbix 默认密码 Admin 、zabbix

你可能感兴趣的:(zabbix3.0安装记录)