In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains the steps of deploying Zabbix-server 3.0 under the CentOS6.9 system. The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn the steps of deploying Zabbix-server 3.0under the CentOS6.9 system.
[TOC]
Install Zabbix to close selinux [root@localhost ~] # sed-I "s#SELINUX=enforcing#SELINUX=disabled#g" / etc/selinux/config [root@localhost /] # setenforce 0 # temporarily close mysql5-1-"> delete the old version of MySQL5.1 database [root@localhost ~] # rpm-qa mysql*mysql-devel-5.1.73-8.el6_8.x86_64mysql-test-5.1.73-8.el6_8.x86_64mysql-bench-5.1 .73-8.el6_8.x86_64mysql-server-5.1.73-8.el6_8.x86_64mysql-5.1.73-8.el6_8.x86_64mysql-libs-5.1.73-8.el6_8.x86_64mysql-connector-java-5.1.17-6.el6.noarchmysql-connector-odbc-5.1.5r1144-7.el6.x86_64 [root@localhost ~] # yum remove mysql [root@localhost ~] # yum remove mysql-connector -java-5.1.17-6.el6.noarch [root@localhost ~] # yum remove mysql-libs-5.1.73-8.el6_8.x86_64## Delete MySQL physical storage location [root@localhost mysql] # cd / var/lib/mysql [root@localhost mysql] # rm-rf. / * install MySQL 5.6database [root@localhost /] # rpm-ivh http://dev.mysql.com/get/mysql-community-release-el6-5 .noarch.rpm [root@localhost /] # yum-y install mysql-server [root@localhost ~] # vim / etc/my.cnf add a line innodb_file_per_table= 1 [root @ localhost mysql] # mysql_secure_installation # # installation configuration initialization in [mysqld] Set the test password redhat. [root@localhost mysql] # mysql-uroot-predhat install PHP 5.6
Zabbix 3 requires PHP to be at least 5.4 or later. Our CentOS 6.5library and php 5.3.3 so we need to install a new version of php.
[root@localhost ~] # yum remove php-common [root@localhost /] # rpm-ivh http://repo.webtatic.com/yum/el6/latest.rpm[root@localhost /] # yum-y install httpd php56w php56w-gd php56w-mysql php56w-bcmath php56w-mbstring php56w-xml php56w-ldapZabbix-server deployment and installation 1. Install Yum Source # rpm-Uvh https://repo.zabbix.com/zabbix/3.0/rhel/6/x86_64/zabbix-release-3.0-1.el6.noarch.rpm2. Install Zabbix server,Web front end, agent# yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent3. Create an initialization database # mysql-uroot-ppasswordmysql > create database zabbix character set utf8 collate utf8_bin;mysql > grant all privileges on zabbix.* to zabbix@localhost identified by 'password';mysql > quit
Import the initial schema and data, and you will be prompted for the newly created password.
# zcat / usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql-uzabbix-p zabbix4. Configure the database for Zabbix server
Edit configuration file / etc/zabbix/zabbix_server.conf
DBPassword=password5. Configure php [root@localhost /] # vim / etc/php.ini post_max_size = 16Mmax_execution_time = 300max_input_time = 300date.timezone = Asia/Shanghaialways_populate_raw_post_data =-16. Configure apache [root@localhost /] # vim / etc/httpd/conf/httpd.confServerName 172.31.1.200:80DirectoryIndex index.html index.html.var index.php under [# AddType application/x-tar .tgz] Add the following: AddType application/x-httpd-php .phpAddType application/x-httpd-php-source .phps7.Zabbix Web file to the Apache Web directory # download the zabbix-3.0.24.tar.gz source code file [root@localhost conf] # tar zxvf zabbix-3.0.24.tar.gz [root@localhost conf] # mkdir / var/www/html/zabbix [root@localhost conf] # cp-ra / opt/zabbix-3.0.24/frontends/ Php/* / var/www/html/zabbix/8. Start various zabbix services # # start various services [root@localhost mysql] # service httpd restart [root@localhost mysql] # service zabbix-server restartZabbix Web interface installation
The installation page address is as follows: http://172.31.1.200/zabbix/setup.php
Here, the login page of zabbix is as follows:
User name: Admin
Password: zabbix
Thank you for reading, the above is the content of "the steps of deploying Zabbix-server 3.0 under the CentOS6.9 system". After the study of this article, I believe you have a deeper understanding of the steps of deploying Zabbix-server 3.0 under the CentOS6.9 system, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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
© 2024 shulou.com SLNews company. All rights reserved.