首页 > 其他 > 详细

Centos 8 安装zabbix 爬坑

时间:2020-11-09 21:43:48      阅读:31      评论:0      收藏:0      [点我收藏+]

1.安装mininal 8


2.配置静态网络
BOOTPROTO=static
IPADDR=192.168.2.1
NETMASK=255.255.255.0
GATEWAY=192.168.2.200
DNS1=192.168.22.252


3.重启网络配置
nmcli connection up ens33
nmcli connection reload
cmcli networking off
cmcli networking on
nmcli device show


4.禁用防火墙
systemctl stop firewalld
systemctl disable firewalld.service
#setenforce 0
#getenforce
Permissive
#vi /etc/selinux/config
SELINUX=disable

###########SELINUX关闭,这是会忽略的一个地方,导致页面打开时候一直提示服务器无法连接


5.安装mysql
dnf install -y @mysql
systemctl start mysqld.service
systemctl enable mysqld.service
初始化mysql
mysql_secure_installation
create user zabbix@localhost identified by ‘1234.Com!‘;


6.安装zabbix
https://www.zabbix.com/download?zabbix=5.2&os_distribution=red_hat_enterprise_linux&os_version=8&db=mysql&ws=apache
/etc/zabbix/zabbix_server.conf
DBPassword
/etc/php-fpm.d/zabbix.conf
php_value[date.timezone] = Asia/Shanghai
#前面有;标识注释

tzselect
4 –> 9–>1–>1–>ok
然后执行下面这两条命令
rm /etc/localtime
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime


systemctl start zabbix-server zabbix-agent httpd php-fpm
systemctl stop zabbix-agent httpd php-fpm zabbix-server
systemctl restart mysqld

Centos 8 安装zabbix 爬坑

原文:https://www.cnblogs.com/lijifei/p/13950042.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!