Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Install ZABBIX2.2 (CentOS6.5+Zabbix2.2.2) by hand

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

one。 Environment (VM+CentOS6.5+Zabbix2.2.2) yum installation

Hostname:zabbix2

IP:192.168.248.140

Zoning

/ boot boot 200MB

Swap swap 2048MB

/ root 20480MB

/ var var 18900MB

Server side installation configuration:

1. Synchronize server time

1) install the ntpdate dependency package yum-y install ntpdate

2) ntpdate time.nist.gov

two。 Install the development package

Yum-y groupinstall "Development Tools"

3. Install the required dependency packages

Yum-y install httpd MySQL mysql-server php php-mysql php-common php-mbstring php-gd php-odbc php-pear curl curl-devel net-snmp net-snmp-devel perl-DBI php-xml ntpdate php-bcmath mysql-devel unixODBC-devel libxml2-devel

The following two packages are needed for compilation

Yum install libxml2

Yum install libxml2-devel-y

4. Create users and groups needed for the zabbix service to run

Groupadd-g 201 zabbix

Useradd-g zabbix-u 201-m zabbix

5. Initialize the mysql server

/ etc/init.d/mysqld start

6. Create the database and user rights needed for zabbix to run

Mysqladmin-uroot-h227.0.0.1 password "123456"

Log in to mysql

Mysql-uroot-h227.0.0.1-p

Create a zabbix database

Create database zabbix character set utf8; # create a database

Grant all privileges on zabbix.* to zabbixuser@'%' identified by 'zabbixpass'; # create users and passwords to access the zabbix database

Flush privileges

Use show databases; to find that zabbix has been created successfully

Quit exit

7. Download and extract zabbix can also be downloaded manually and uploaded to this directory

Wget http://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/2.2.2/zabbix-2.2.2.tar.gz/download

Cd / usr/src/

Tar xf zabbix-2.2.2.tar.gz

8. Import the initial data of zabbix into the database

Cd zabbix-2.2.2

Mysql-uzabbixuser-h292.168.248.140-p zabbix

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.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report