$ apt-get install links2
$ tar -zxvf zabbix-2.0.0.tar.gz
$ groupadd zabbix
$ useradd -g zabbix zabbix
$ apt-get install mysql-server
$ /etc/init.d/mysql start
$ mysql -u root -p
Enter password: < , >
mysql>create database zabbix;
mysql>grant usage on *.* to zabbix@localhost identified by 'password';
mysql>grant all privileges on zabbix.* to zabbix@localhost;
mysql>flush privileges;
mysql>quit;
MySQL:
$ mysql -u zabbix -p
Enter password:
. .
. :
./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl
:
$ make install
Zabbix . :
/usr/local/etc/zabbix_agentd.conf
/usr/local/etc/zabbix_server.conf
IP Zabbix. , .
zabbix :
$ zabbix_server
- Zabbix
Apache PHP:
$ apt-get install apache2
$ apt-get install php5
html, zabbix. html :
/var/www/
Zabbix :
/var/www/zabbix/
:
$ mkdir /var/www /zabbix
$ cd frontends/php
$ cp -a . /var/www /zabbix
:
http://<IP__zabbix_>/zabbix
. . , «». . , :
1. php post max size, php max execution time, php max input time, php time zone
php.ini, , . :
/etc/php5/apache2/php.ini
php time zone :
date.timezone = Europe/Moscow
Apache :
$ /etc/init.d/apache2 restart
2.php database support
MySQL PHP:
$ apt-get install php5-mysql
3.php GD, php GD PNG support
GD PHP:
$ apt-get install php5-gd
. .
, .
/ : Admin/zabbix
, – . . zabbix.
:
/database/zabbix/
:
$ cat schema.sql | mysql –u zabbix –p
Enter password:
$ cat images.sql | mysql –u zabbix –p
Enter password:
$ cat data.sql | mysql –u zabbix –p
Enter password:
MySQL Apache. .
Source: https://habr.com/ru/post/149500/
All Articles