zabbix-server 4.2.3 install

2019-06-14

首先安装mysql/php/nginx

1、rpm -Uvh https://repo.zabbix.com/zabbix/4.2/rhel/7/x86_64/zabbix-release-4.2-1.el7.noarch.rpm
2、yum -y install zabbix-server-mysql
3、mysql -uroot -ppassword
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'password';
mysql> quit;
4、zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix

php_value date.timezone Asia/Shanghai
Edit file /etc/zabbix/zabbix_server.conf

DBPassword=password
5、# systemctl restart zabbix-server zabbix-agent httpd
# systemctl enable zabbix-server zabbix-agent httpd

6、Configure Zabbix frontend
yum -y install zabbix-web-mysql会附带很多包,建议复制源码里面frontend/php目录即可
Copying PHP files
cp -r zabbix-4.2.3/frontends/php /var/opt/zabbix

http://zabbix03.test.com/setup.php

分类:Linux | 标签: |

相关日志

评论被关闭!