Record the process of installing Zabbix Server yourself:
Installation environment: CentOS7, Mysql, Apache
1. Download the source package
wget http://jaist.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/3.0.1/zabbix-3.0.1.tar.gz
2. Unzip and copy to /usr/local/src/
3. Create an instance on the Mysql server
create database zabbix character set utf8; use zabbix; source /usr/local/src/zabbix-3.0.1/database/mysql/schema.sql; source /usr/local/src/zabbix-3.0.1/database/mysql/images.sql; source /usr/local/src/zabbix-3.0.1/database/mysql/data.sql;
4. Create users and user groups
groupadd zabbix useradd zabbix -g zabbix -s /bin/false
5. Install dependency packages
yum install net-snmp-devel curl curl-devel mysql-devel yum install php httpd php-mysql php-bcmath php-mbstring php-gd php-xmlwriter
6. Compile and install
#configure ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-net-snmp --with-libcurl --enable-proxy --with-mysql=/usr/bin/mysql_config #compile make #Install make install #Add system soft link ln -s /usr/local/zabbix/sbin/* /usr/local/sbin/ ln -s /usr/local/zabbix/bin/* /usr/local/bin/
7. Configure zabbix_server.conf
DBHost = 127.0.0.1 DBName = zabbix DBUser = zabbix DBPassword = zabbix DBPort = 3306
8, php minimize parameter configuration
post_max_size = 16M max_execution_time = 300 max_input_time = 300 date.timezone = Asia/Shanghai
9. Create a Web Control Page
cp -rf /usr/local/src/zabbix-3.0.1/frontends/php/* /var/www/html/zabbix/
10, start the service
service httpd start service zabbix_server start
11. It can be accessed through the Apache server: http://127.0.0.1:8081/zabbix/
12. Perform initialization verification on the page, and configure the data source after passing
13. After the configuration is successful, log in again to enter the home page, account password: admin/zabbix
14, Chinese version layout:
Copy a font from Windows to /var/www/html/zabbix/fonts, here is the Song simsun
修改/var/www/html/zabbix/include/defines.inc.php文件,
找到“ZBX_GRAPH_FONT_NAME”、“ZBX_FONT_NAME”
将 'DejaVuSans'修改为 'simsun'