centos 7 添加阿里云镜像
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum install epel-release
安装常用的开发组件
yum groups install "Development Tools"
yum groups info "Development Tools"
增加Zabbix镜像源
rpm -ivh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
关闭SElinux
systemctl stop firewalld.service
systemctl disable firewalld.service
vim /etc/selinux/config
SELINUX=disable
安装Zabbix Server和Frontend
yum install zabbix-server-mysql
yum install zabbix-web-mysql
安装MySQL
yum install mariadb-server
systemctl start mariadb.service
systemctl status mariadb.service
ps aux | grep mysql
mysql_secure_installation (初始化数据库)
创建数据库
mysql -uroot -p
create database zabbix character set utf8 collate utf8_bin;
grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix@123456';
flush privileges;
导入数据结构
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -pzabbix@123456 zabbix
MariaDB [(none)]> use zabbix;
MariaDB [zabbix]> show tables;
配置Zabbix Serve
vim /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=123456
[root@localhost ~]# mysql -u zabbix -pzabbix@123456
启动Zabbix Server
systemctl start zabbix-server.service
systemctl status zabbix-server.service
more /var/log/zabbix/zabbix_server.log
配置Zabbix frontend
vim /etc/php.ini
max_execution_time = 300
memory_limit = 128M
post_max_size = 16M
upload_max_filesize = 2M
max_input_time = 300
max_input_vars = 10000
always_populate_raw_post_data = -1
date.timezone = Asia/Shanghai
启动httpd
systemctl start httpd.service
systemctl status httpd.service
http://192.168.200.25/zabbix/setup.php
用户名:Admin 密码:zabbix
安装Zabbix Agent
yum install zabbix-agent
systemctl start zabbix-agent.service
zabbix 4.0 Server安装部署(二进制包安装)
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
推荐阅读更多精彩内容
- 配置yum环境 1、[root@localhost ~]# wget https://mirrors.aliyun...