--- --- restore content begins
1. Install depend on the environment
yum -y install telnet net-tools python-paramiko dejavu-sans-fonts python-setuptools python-devel sendmail mailx net-snmp net-snmp-devel net-snm-utils freetype-devel libpng-devel perl unbound libtasnl-devel pll-kit-devel OpenIPMI unix0DBC libevent-devel mysql-devel libxml2-devel libssh2-devel OpenIPMI-devel openldap-devel curl-devel unixODBC-devel wget gcc gcc-c++
2. Download
zabbix-4.0.12.tar.gz包
3. Create a folder zabbix
mkdir /zabbix
4. decompression
tar -zxf zabbix-4.0.12.tar.gz
5. Go to the unzipped folder
cd /zabbix-4.0.12
6. Configure
./configure --prefix=/home/zabbix/ --enable-server --enable-agent --enable-java --with-mysql --with- unixodbc --with-libxml2 --with-net-snmp --with-ssh2 --with-openipmi --with-ldap --with-libcurl --with-iconv --with-ssh2 --with-openipmi --with-ldap
7. compile and install
make && make install
8. Check zabbix version and whether the installation is successful
/zabbix/sbin/zabbix_server -V
9. Install mysql database
yum -y install mariadb-server
10. Start the database
systemctl start mariadb
11. mysql database be initialized
mysql_secure_installation
12. enter the database, create a database zabbix
create database zabbix character set utf8 collate utf8_bin;
13. Create a user access to the database zabbix
grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix@lfl123';
14. The import table structure zabbix
mysql -uzabbix -pzabbix@lfl123 zabbix</root/zabbix-4.0.12/database/mysql/schema.sql
mysql -uzabbix -pzabbix@lfl123 zabbix</root/zabbix-4.0.12/database/mysql/images.sql
date.timezone ="Asia/Shanghai"
23.启动httpd服务
systemctl start httpd
25.ip/zabbix访问web
---恢复内容结束---