Zabbix 1.8 InstallationThe process is still quite long!
This document only records the installation process of Zabbix 1.8.
Below I want to install Zabbix Server, Zabbix Proxy and Zabbix Agent on the same Server.
Configure PHP before installation. php-gd, php-bcmath, php-xml, php-mysql, php-net-socket, and php-mbstring are required, add -- with-gd -- enable-bcmath -- enable-xml -- with-mysql -- enable-sockets -- enable-mbstring to the configure parameter.
My configuration parameters are as follows:
- ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-fpm --enable-sockets --enable-pdo --with-pdo-mysql=/usr/local/mysql --with-gd --enable-bcmath --enable-xml --enable-mbstring
-
Install Zabbix as follows:
* Download and decompress:
- wget http://prdownloads.sourceforge.net/zabbix/zabbix-1.8.tar.gz?download
-
- tar zxf zabbix-1.8.tar.gz
-
- cd zabbix-1.8
-
* Create zabbix user groups and users:
- groupadd zabbix
-
- useradd zabbix -g zabbix
-
* Create a mysql database:
- create database zabbix character set utf8;
-
* Create a mysql user:
- grant all on zabbix.* to zabbix@localhost identified by 'zabbix';
-
* Import tables and data:
- mysql -uroot -p zabbix < create/schema/mysql.sql
-
- mysql -uroot -p zabbix < create/data/data.sql
-
- mysql -uroot -p zabbix < create/data/images_mysql.sql
-