# apt-getinstall zabbix-server-mysql
# apt-getinstall zabbix-frontend-php
#apt-getinstall php*mysql
# mysql
>create database zabbix character set utf8 collate utf8_bin;
> grantall privileges on zabbix.* to zabbix@'%' identified by 'hello2018';
> flushprivileges;
# zcat/usr/share/zabbix-server-mysql/{schema,images,data}.sql.gz | mysql -uzabbix-phello2018 zabbix
# nano/etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=hello2018
# nano/etc/apache2/conf-enabled/zabbix-frontend-php.conf
php_valuedate.timezone Asia/Chongqing
# nano/etc/php/7.0/apache2/php.ini
;date.timezone=
改成:
date.timezone= Asia/Chongqing
# cd/usr/share/zabbix/conf/
# mvzabbix.conf.php /etc/zabbix/
#systemctl restart zabbix-server
#systemctl restart apache2
http://192.168.1.18/zabbix/
默认账号密码Admin/zabbix