1、参照下列网址方法,打开端口:80,3306,443,22,10050,10051(可能实际不需要打开这么多)
https://www.cnblogs.com/lw-2019forlinuxpython/p/10653188.html
2、设置中文
localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8 export LC_ALL=zh_CN.UTF-8echo ‘LANG=zh_CN.UTF-8‘ > /etc/locale.conf
3、设置mariadb远程授权
mysql -uroot -ppasswd > create database zabbix character set utf8 collate utf8_bin; > grant all privileges on zabbix.* to [email protected]‘%’ identified by ‘passwd‘; > quit
4、安装
rpm -Uvh https://repo.zabbix.com/zabbix/4.2/rhel/7/x86_64/zabbix-release-4.2-1.el7.noarch.rpm yum clean all yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent
5、导入zabbix初始化数据
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
6、修改文件 /etc/zabbix/zabbix_server.conf
vim /etc/zabbix/zabbix_server.conf #修改下列项目 DBHost=localhost(或者server的ip)DBName=zabbixDBUser=zabbixDBPassword=passwd
7、修改php设置中时区
vim /etc/httpd/conf.d/zabbix.conf #修改下面项目 php_value date.timezone Europe/Riga 改成 php_value date.timezone Asia/Shanghai
8、登陆http://server_ip_or_name/zabbix ,确认
9、查看中文支持是否打开
/usr/share/zabbix/include/locales.inc.php
10、再登陆zabbix,修改页面为中文
原文地址:https://www.cnblogs.com/lw-2019forlinuxpython/p/10657516.html
时间: 2024-10-09 23:44:51