In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
CentOS6 deployment Zabbix4.2 Monitoring
Installation of the Zabbix front end on Zabbix 6 is not supported due to the PHP version. Zabbix 3.0 requires PHP 5.4.0 or later, while the latest version of RHEL 6 is 5.3.3. In most cases, the Zabbix server and the front end are installed on the same machine. When upgrading from 2.2 to 3.0, the Zabbix server will perform a database upgrade and the front end will stop working. Unable to roll back database changes, users will be forced to upgrade PHP with third-party software packages. This is why the Zabbix server was deprecated on RHEL 6.
Download the official Zabbix online source first.
Rpm-ivh https://repo.zabbix.com/zabbix/4.2/rhel/6/x86_64/zabbix-release-4.2-1.el6.noarch.rpm
Install epel online source
Yum-y install epel-release install mysql
Install mysql5.6 online source
Rpm-ivh http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
Install the mysql5.6 database server
Yum-y install mysql-server
Check to see if the installation is complete, version 5.6
Rpm-qa | grep mysql
Start the mysql database
Service mysqld start
Set mysql password and security settings
Mysql_secure_installation
Enter the database, create a new zabbix library, create a new zabbix user, password zabbix@123, refresh permissions
Mysql-uroot-pCREATE DATABASE zabbix CHARACTER SET utf8 COLLATE utf8_bin;GRANT ALL PRIVILEGES ON zabbix.* TO zabbix@localhost IDENTIFIED BY 'zabbix@123'; flush privileges;exit install php
To upgrade PHP with a third-party package, you need to enable the zabbix-deprecated repository first:
Vim / etc/yum.repos.d/zabbix.repo find [zabbix-deprecated] modify enabled = 1 to save the file and exit
Install php5.6 third-party online source
Rpm-ivh http://repo.webtatic.com/yum/el6/latest.rpm
Install php5.6
Yum-y install httpd php56w php56w-gd php56w-mysql php56w-bcmath php56w-mbstring php56w-xml php56w-ldap php56w-pdo php56w-fpm
Modify php.ini configuration file
Vim / etc/php.ini663 post_max_size = 16M375 max_execution_time = 300385 max_input_time = 300889 date.timezone = Asia/Shanghai705 always_populate_raw_post_data =-1 install zabbix-server
Install the zabbix-server,zabbix-mysql,zabbix-web package
Yum-y install zabbix-server-mysql zabbix-web-mysql zabbix-agent
Import data file. The password is the database password of the zabbix user.
Zcat / usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql-uzabbix-p zabbix
Modify zabbix_server configuration file
Vim / etc/zabbix/zabbix_server.conf124 DBPassword = zabbix@123
Modify httpd configuration file
Vim / etc/httpd/conf/httpd.conf292 DocumentRoot "/ usr/share/zabbix"
Restart the service
Service zabbix-server restartservice zabbix-agent restartservice httpd restart
Web-side access for configuration
Chrome > 192.168.1.111 > Wizard installation > finish
Install zabbix-agent
The monitored end needs to install zabbix-agent
Rpm-ivh https://repo.zabbix.com/zabbix/4.2/rhel/7/x86_64/zabbix-release-4.2-1.el7.noarch.rpmyum-config-manager-- enable rhel-7-server-optional-rpmsyum install zabbix-agentvim / etc/zabbix/zabbix_agentd.confServer=192.168.1.111systemctl start zabbix-agent
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
I hope you will read it carefully.
© 2024 shulou.com SLNews company. All rights reserved.