In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
System environment: Centos 6.5
Software environment: Xshell 5
I. Install zabbix official source
[root@localhost~]#rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/6/x86_64/zabbix-release-3.0-3.el7.noarch.rpm official source
1, install zabbix service I don't have to install the source code is too much trouble...
[root@localhost~]#yum install zabbix-server-mysql zabbix-web-mysql //install zabbix service
2. Install zabbix proxy service agent
[root@localhost~]#yum install zabbix-agent //Install zabbix proxy service
3. Install mysql database
[root@localhost~]#yum -y install mysql-server mysql-dev //install mysql database
[root@localhost~]#service mysqld s //Open database
Close SElinux and iptables, otherwise there will be no data.
[root@localhost~]#vi /etc/sysconfig/selinux
//close selinux Change SELINUX=enforcing to SELINUX=disabled
[root@localhost~]#setenforce 0 //close selinux restart free
[root@localhost~]#service iptables stop //turn off firewall
Second, configure MySQL database
[root@localhost~]#mysql -uroot -ppassword 'machenxi' //Set mysql database password
[root@localhost~]#mysql -uroot -p //Enter database
password:********
mysql>show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| test |
+--------------------+
5 rows in set (0.00 sec) //View all databases
[root@localhost~]# create database zabbix character set utf8 collate utf8_bin;
//Create a new database named zabbix
[root@localhost~]# grant all privileges on zabbix.* to zabbix@localhost identified by '';
//grant zabbix permission and add password
mysql>show databases; //View the zabbix database created
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| test |
| zabbix |
+--------------------+
5 rows in set (0.00 sec)
[root@localhost~]# cd /usr/share/doc/zabbix-server-mysql/creta/mysql
//Enter the directory where zabbix stores sql files
mysql -uzabbix -p zabbix mysql -uzabbix -p zabbix mysql -uzabbix -p zabbix Note: Import databases in order!!! [root@localhost~]# vi /etc/zabbix/zabbix_server.conf //modify zabbix service master configuration file DBHost=localhost //zabbix Host DBName=zabbix //zabbix Name DBUser=zabbix //zabbix User DBPassword=zabbix //zabbix Password [root@localhost~]# vi /etc/httpd/conf.d/zabbix.conf. //Change zabbix's time zone 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 always_populate_raw_post_data -1 # php_value date.timezone Europe/Riga //Delete the note "#" for Europe/Riga read Asia/Shanghai [root@localhost~]# service httpd restart //Restart Apache service ok, to install the configuration here is almost the same, the next is the web interface installation! GUI installation link: machenxi.blog.51cto.com/9840008/1843001 I will continue to update the article later! Friends interested in Linux and automation operation and maintenance technology can +QQ group! (Please indicate the source for entering the group) QQ group: 201260501
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.