centos 7 添加阿里云镜像 |
|
|
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo |
|
yum install epel-release -y |
|
|
|
|
|
安装常用的开发组件 |
|
yum groups install "Development Tools" -y |
|
yum groups info "Development Tools" -y |
|
|
|
|
|
增加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 |
|
安装Zabbix Server和Frontend |
|
yum install zabbix-server-mysql -y |
|
yum install zabbix-web-mysql -y |
|
安装MySQL |
|
yum install mariadb-server -y |
|
systemctl start mariadb.service |
|
systemctl status mariadb.service |
|
mysql_secure_installation N y n y y |
|
创建数据库 |
|
mysql -uroot -p |
|
create database zabbix character set utf8 collate utf8_bin; |
|
grant all privileges on zabbix.* to zabbix@localhost identified by 'vrgv123.'; |
|
|
|
导入数据结构 |
|
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -pvrgv123. zabbix |
|
|
|
|
|
配置Zabbix Serve |
|
vim /etc/zabbix/zabbix_server.conf |
|
DBHost=localhost DBPassword=vrgv123.
|
|
|
|
启动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 |
|
|
384 |
max_execution_time = 300 最大执行时间 |
|
memory_limit = 128M php用的最大内存值 |
672 |
post_max_size = 16M 通过POST方法可以接受的信息最大量 |
|
upload_max_filesize = 2M 限制php上传最大值 |
394 |
max_input_time = 300 对通过POST、GET以及PUT方式接收数据时间进行限制 |
401 |
max_input_vars = 10000 接受多少 输入的变量 |
698 |
always_populate_raw_post_data = -1 |
878 |
date.timezone = Asia/Shanghai |
|
|
|
|
|
启动httpd |
|
systemctl start httpd.service |
|
systemctl status httpd.service |
|
|
|
http://10.211.55.7/zabbix/setup.php |
|
|
|
默认用户名:Admin |
|
密码:zabbix |
|
|
|
|
|
安装Zabbix Agent |
|
yum install zabbix-agent |
|
|
|
systemctl start zabbix-agent.service |
YUM 安装方式---CentOS7安装ZABBIX4.0
原创
©著作权归作者所有:来自51CTO博客作者最冷的烟火的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
虚拟机安装CentOS7
本章节我们将学习如何安装创建一个Linux学习环境。
CentOS VMware 云计算 系统 运维 -
CentOS7下部署Zabbix4.0
CentOS7下部署Zabbix4.0
centos mysql sed -
zabbix4.0安装步骤
zabbix4.0安装步骤
zabbix 监控 centos mysql