安装zabbix所需的PHP模块
- apt-get install php7.0-bcmath php7.0-xml php7.0-mbstring
安装zabbix
- wget http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+xenial_all.deb
- dpkg -i zabbix-release_3.2-1+xenial_all.deb
更新apt包源码
- apt-get update
安装具有MySQL支持的Zabbix Server和PHP前端
- apt-get install zabbix-server-mysql zabbix-frontend-php
安装zabbix agent
- apt-get install zabbix-agent
安装MYSQL 创建zabbix数据库、用户
初始化SQL
- /usr/share/doc/zabbix-server-mysql/create.sql.gz
配置数据库连接
- /etc/zabbix/zabbis_server.conf
修改/etc/zabbix/apache.conf
- 取消注释php_value date.timezone Europe/Rome
启动服务
* sudo systemctl restart apache2
* sudo systemctl start zabbix-server
* sudo systemctl enable zabbix-server
* systemctl status zabbix-server
- 访问 http://localhost/zabbix 默认用户名密码 Admin/zabbix