rpm -i https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent
mysql -uroot -p
123456
drop database zabbix;
create database zabbix character set utf8 collate utf8_bin;
grant all privileges on zabbix.* to zabbix@localhost identified by '123456';
quit;
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
123456
/etc/zabbix/zabbix_server.conf
DBPassword=123456
/etc/httpd/conf.d/zabbix.conf
php_value date.timezone Asia/Shanghai
systemctl restart zabbix-server zabbix-agent httpd
systemctl enable zabbix-server zabbix-agent httpd
wget https://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/4.0.3/zabbix-4.0.3.tar.gz
tar -zxvf zabbix-4.0.3.tar.gz
groupadd zabbix
useradd -g zabbix zabbix
cd zabbix-4.0.3
./configure --help
./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --enable-agent --enable-proxy --with-net-snmp
make
make & make install
/usr/local/etc/zabbix_agentd.conf
/usr/local/etc/zabbix_server.conf
zabbix_server
zabbix_agentd
mkdir /var/www/html/zabbix
cd frontends/php
cp -a . /var/www/html/zabbix
http://xxx.xxxx.xx.xxx/zabbix
PHP version 5.4.16 5.4.0 OK
PHP option "memory_limit" 128M 128M OK
PHP option "post_max_size" 16M 16M OK
PHP option "upload_max_filesize" 2M 2M OK
PHP option "max_execution_time" 300 300 OK
PHP option "max_input_time" 300 300 OK
PHP option "date.timezone" Asia/Shanghai OK
PHP databases support MySQL
OK
PHP bcmath on OK
PHP mbstring on OK
PHP option "mbstring.func_overload" off off OK
PHP sockets on OK
PHP gd 2.1.0 2.0 OK
PHP gd PNG support on OK
PHP gd JPEG support on OK
PHP gd FreeType support on OK
PHP libxml 2.9.1 2.6.15 OK
PHP xmlwriter on OK
PHP xmlreader on OK
PHP LDAP on OK
PHP ctype on OK
PHP session on OK
PHP option "session.auto_start" off off OK
PHP gettext on OK
PHP option "arg_separator.output" & & OK
Database type
Database host
localhost
Database port
0
0 - use default port
Database name
zabbix
User
zabbix
123456
Host
localhost
Port
10051
Name
Database type MySQL
Database server localhost
Database port default
Database name zabbix
Database user zabbix
Database password ******
Zabbix server localhost
Zabbix server port 10051
Zabbix server name
Congratulations! You have successfully installed Zabbix frontend.
Configuration file "/etc/zabbix/web/zabbix.conf.php" created.
cp /etc/zabbix/web/zabbix.conf.php /var/www/html/zabbix/conf/