zabbix监控安装
程序员文章站
2022-06-27 22:20:04
1、关闭iptables和selinux 2、安装yum源 3、安装LAMP 3.1、安装MySQL 3.2、安装apache 3.3、安装PHP 4、安装zabbix 5、修改配置文件 6、登陆zabbix,账号Admin,密码zabbix ......
1、关闭iptables和selinux
# systemctl stop firewalld # systemctl disable firewalld # setenforce 0
2、安装yum源
# cd /etc/yum.repos.d # yum -y install wget # wget http://mirrors.163.com/.help/CentOS7-Base-163.repo # yum clean all # yum makecache
3、安装LAMP
3.1、安装MySQL
# yum -y install mariadb mariadb-server # systemctl start mariadb # systemctl enable mariadb # mysql_secure_installation
3.2、安装apache
# yum -y install httpd # systemctl start httpd # systemctl enable httpd
3.3、安装PHP
# yum -y install php php-mysql
4、安装zabbix
# rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm # yum -y install zabbix-server-mysql zabbix-web-mysql # yum -y install zabbix-agent
# mysql -uroot -p
mysql>create database zabbix character set utf8 collate utf8_bin;
mysql>grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
# cd /usr/share/doc/zabbix-server-mysql-3.2.1
# zcat create.sql.gz | mysql -uroot -p zabbix
5、修改配置文件
# vim /etc/php.ini php_value max_execution_time 300 php_value memory_limit 128M php_value post_max_size 16M php_value upload_max_filesize 2M php_value max_input_time 300 php_value date.timezone Asia/Shanghai
# systemctl restart httpd
6、登陆zabbix,账号Admin,密码zabbix
http://IP/zabbix http://IP/zabbix/setup.php
推荐阅读
-
自制Windows镜像给Mac安装双系统简易图文教程 超级简单
-
Movavi Photo Editor怎么破解?Movavi Photo Editor 5安装破解图文教程
-
ACDSee Photo Studio Ultimate 2018 破解汉化版安装详细图文教程(附下载)
-
Win7旗舰版下Windows Virtual PC虚拟机安装教程
-
360随身wifi不能用怎么办 360随身wifi驱动的安装及使用步骤
-
搜狗壁纸如何使用 搜狗桌面壁纸的安装使用图文教程
-
lingo16.0如何安装?lingo16详细安装图文教程
-
ogre3d环境配置 SDK安装配置及简单事例教程
-
steam如何安装 steam安装教程最全攻略
-
联想一键恢复怎么用 联想一键恢复7.0安装使用步骤