- Add a new repo:
rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/7/x86_64/zabbix-release-2.4-1.el7.noarch.rpm
- Install zabbix server:
yum install zabbix-server-mysql zabbix-web-mysql mariadb mariadb-server
- Install zabbix agent:
yum install zabbix-agent
- Enable MySQL innodb_file_per_table feature:
# cat /etc/my.cnf ... [mysqld] innodb_file_per_table=1 ...
- configure DB server:
systemctl start mariadb mysql_secure_installation mysql -1u root -p
- create zabbix DB and give priveledges to user zabbix:
mysql> create database zabbix character set utf8; mysql> grant all privileges on zabbix.* to 'zabbix'@'localhost' identified by 'password'; mysql> flush privileges;
- create initial database:
cd /usr/share/doc/zabbix-server-mysql-2.4.5/create mysql -uroot -p zabbix < schema.sql mysql -uroot -p zabbix < images.sql mysql -uroot -p zabbix < data.sql
- Edit zabbix settings:
# cat /etc/zabbix/zabbix_server.conf DBHost=localhost DBName=zabbix DBUser=zabbix DBPassword=password
- Start zabbix server:
systemctl start mariadb systemctl start zabbix-server
- Edit zabbix frontend settings:
# cat /etc/httpd/conf.d/zabbix.conf php_value max_execution_time 300 php_value memory_limit 128M php_value post_max_size 16M php_value upload_max_filesize 2M php_value max_input_time 300 php_value date.timezone Europe/Moscow
- Restart apache web server:
systemctl restart httpd
- Disable SELinux:
# cat /etc/selinux/config | grep SELINUX=d SELINUX=disabled
- Default username/password is Admin/zabbix.
13 июля 2015 г.
How to install zabbix on centos 7
Подписаться на:
Сообщения (Atom)