标签:sha bsp time linu 时区 http gen localhost 数据库
zabbix4.0发布了,安装操作基本和3.x一样,一下为步骤简要!
1、安装zabbix仓库
[root@docker-1 ~]# rpm -i https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
2、安装zabbix
[root@docker-1 ~]# yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent mariadb-server -y
3、创建zabbix数据库
[root@docker-1 ~]# systemctl start mariadb.service
[root@docker-1 ~]# mysql -uroot -p
MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;
MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@localhost identified by ‘11111111‘;
MariaDB [(none)]> flush privileges;
MariaDB [(none)]> quit;
4、初始化数据库
[root@docker-1 ~]# zcat /usr/share/doc/zabbix-server-mysql-4.0.0/create.sql.gz |mysql -uzabbix -p zabbix
5、配置zabbix服务器的数据库连接密码
[root@docker-1 ~]# vim /etc/zabbix/zabbix_server.conf
DBPassword=11111111
6、更改zabbix服务器时区
[root@docker-1 ~]# vim /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Asia/Shanghai
7、启动zabbix相关所有服务
systemctl start httpd.service zabbix-server.service zabbix-agent.service mariadb.service
systemctl enable httpd.service zabbix-server.service zabbix-agent.service mariadb.service
8、web界面安装zabbix
http://server_ip_or_name/zabbix
9、中文乱码字体
上传微软雅黑字体并替换DejaVuSans.ttf
/usr/share/fonts/dejavu/DejaVuSans.ttf
10、使用ip地址直接访问 (http DocumentRoot)
[root@docker-1 ~]# vim /etc/httpd/conf/httpd.conf
DocumentRoot "/usr/share/zabbix"
systemctl restart httpd.service
zabbix监控,Zabbix4.0安装配置,Linux监控
标签:sha bsp time linu 时区 http gen localhost 数据库
原文地址:https://www.cnblogs.com/binleelinux/p/9744065.html