zabbix安装步骤
环境:centos7
1、关闭防火墙、selinux
2、同步时间:ntpdate pod.ntp.org
3、yum -y install httpd mariadb mariadb-server php php-mysql php-gd
4、systemctl start mariadb.service
5、mysql
6、create database zabbix charset utf8;
7、grant all on zabbix.* to zabbix@‘localhost’ identified by ‘zabbix’;
8、flush privileges;
9、exit(退出mysql)
10、systemctl start httpd
11、将zabbix安装包传入
12、rpm -ivh jdk+tab
13、yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent
14、cd /usr/share/doc/zabbix-server+tab
15、zcat create.sql.gz | mysql -uzabbix -pzabbix zabbix
16、vim /etc/zabbix/zabbix-server.conf(进去之后找到DBpassword在等号后加上zabbix)
17、systemctl start zabbix-server
18、vim /etc/php.ini(进去找到date.timezone加上Asia/shanghai)
19、systemctl restart httpd
20、测试:ip地址+zabbix
下面是改字体的:
21、cd /usr/share/zabbix/include/defines.inc.php(进去之后将granph改成ziti)