Zabbix a simple deployment package to install once
Once the deployment package has been installed once
Environment Centos7 Zabbix 3.2.11
Preparatory work
Shutting down the firewall
Systemctl Stop Firewalld
Systemctl Disable FIREWALLD
Turn off SELinux
Vi/etc/selinux/config
Selinux=enforcing instead
Selinux=disabled
Or
Sed-i ' s/selinux=.*/selinux=disabled/g '/etc/selinux/config
Init 6 Restart
Installing the RPM Library Configuration deployment Package
RPM Package http://repo.zabbix.com/zabbix/
RPM-IVH http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm
Installing the Zabbix deployment package
Install Zabbix server, Web front end with MySQL database
Yum Install Zabbix-server-mysql zabbix-web-mysql-y
# install zabbix-agent, monitored side, optional installation, then need to monitor which one to install which
# yum Install Zabbix-agent-y
Install MySQL database, centos7 under the MySQL called MARIADB
Yum Install mariadb mariadb-server-y
Systemctl Enable MARIADB
Systemctl Start mariadb
Log in to MySQL and create Zabbix users and Zabbix databases
Mysql
Use MySQL;
Grant all on zabbix.* to [email protected] ' localhost ' identified by "Zabbix";
CREATE DATABASE ' Zabbix ' CHARACTER SET UTF8 COLLATE utf8_general_ci;
Install the Zabbix database and the user on MySQL, and then import the initial schema and data.
cd/usr/share/doc/zabbix-server-mysql-3.2.11/
Zcat create.sql.gz | Mysql-uroot Zabbix # Use root installation, if you set a password to add the-p parameter yourself
Edit database configuration in Modify zabbix_server.conf
Vi/etc/zabbix/zabbix_server.conf
Dbhost=localhost
Dbname=zabbix
Dbuser=zabbix
Dbpassword=zabbix
Start the Zabbix server process
Systemctl Restart Zabbix-server
Modify PHP configuration for Zabbix
The Zabbix front-end Apache configuration file is located, and some PHP settings have been configured.
Vi/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 Always_populate_raw_post_data-1
# Php_value Date.timezone Europe/riga
Delete the "#" comment for the "date.timezone" setting, modify the configuration to Shanghai
Php_value Date.timezone Asia/shanghai
Restarting the Apache Web server
Systemctl Restart httpd
View service Status NETSTAT-NTLP
The Zabbix front end can be accessed through the address in the browser.
Http://ip/zabbix
Need to configure database information, fill in, other default; the default username/password is Admin/zabbix; Enter the top right corner of the interface-select language-Select Chinese switch to Chinese
If an error is viewed log
Tailf/var/log/zabbix/zabbix_server.log
Follow the prompts to resolve the issue
Zabbix a simple deployment package to install once