In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1. Production environment:
OS: CentOS release 6.8 (Final)
Web server software: Apache/2.2.15 (Unix)
PHP operating environment: PHP 5.4.45 (cli) (built: Aug 23 2016 14:41:13)
Database system: mysql Ver 14.14 Distrib 5.5.49, for Linux (x86 / 64) using readline 5.1
Web environment: LAMP=Linux+Apache+Mysql+PHP
2. Download the Zabbix software package:
Download page: http://www.zabbix.com/download.php
[root@sky9896 html] # wget
Http://jaist.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/3.2.0/zabbix-3.2.0.tar.gz
III. Installation
1. Create and import zabbix database
[root@sky9896 html] # cd / var/www/html
[root@sky9896 html] # tar zxvf zabbix-3.2.0.tar.gz
[root@sky9896] cd / var/www/html/zabbix-3.2.0/database/mysql # enter the mysql database creation script directory
[root@sky9896 /] # mysql-uroot-p
Enter password:
Mysql > create database zabbix character set utf8; # create database zabbix, and database encoding uses utf8
Mysql > insert into mysql.user (Host,User,Password) values ('localhost','zabbix',password (' * *)); # create a new account and password
Mysql > flush privileges; # refresh the system authorization table
Mysql > grant all on zabbix.* to 'zabbix'@'127.0.0.1' identified by' * 'with grant option; # allows the account zabbix to connect locally to the database zabbix
Mysql > use zabbix
Mysql > source / var/www/html/zabbix-3.2.0/database/mysql/schema.sql # Import script file to zabbix database
Mysql > source / var/www/html/zabbix-3.2.0/database/mysql/p_w_picpaths.sql # Import script file to zabbix database
Mysql > source / var/www/html/zabbix-3.2.0/database/mysql/data.sql # Import script file to zabbix database
[root@sky9896 /] # ln-s libmysqlclient.so.16.0.0 libmysqlclient.so
[root@sky9896 /] # ln-s libmysqlclient_r.so.16.0.0 libmysqlclient_r.so
two。 Install zabbix
1) add users:
[root@sky9896 /] # useradd zabbix
2) the web environment has been installed and is omitted here.
3) install zabbix
[root@sky9896 /] #
Ln-s / usr/local/lib/libiconv.so.2 / usr/lib/libiconv.so.2 # add soft connection
[root@sky9896 /] # / sbin/ldconfig # make the configuration effective immediately
[root@sky9896 /] # cd / var/www/html/zabbix-3.2.0
[root@sky9896 zabbix-3.2.0/] #
. / configure-prefix=/usr/local/zabbix-- enable-server-- enable-agent-- with-net-snmp-- with-libcurl-- enable-proxy-- with-mysql=/usr/bin/mysql_config # configuration
[root@sky9896 zabbix-3.2.0/] make
[root@sky9896 zabbix-3.2.0/] make install
4) add the corresponding port for zabbix service
[root@sky9896 /] # vi / etc/services # edit, add the following code at the end
# Zabbix
Zabbix-agent 10050/tcp # Zabbix Agent
Zabbix-agent 10050/udp # Zabbix Agent
Zabbix-trapper 10051/tcp # Zabbix Trapper
Zabbix-trapper 10051/udp # Zabbix Trapper
# indicates that services files must be writable attributes
5) modify zabbix configuration file
[root@sky9896 etc] # vi / usr/local/zabbix/etc/zabbix_server.conf
DBName=zabbix # Database name
DBUser=zabbix # Database user name
DBPassword=* # database password
ListenIP=localhost # Database ip address
AlertScriptsPath=/usr/local/zabbix/share/zabbix/alertscripts # zabbix run script storage directory
: wq! # Save exit
Vi / usr/local/zabbix/etc/zabbix_agentd.conf
Include=/usr/local/zabbix/etc/zabbix_agentd.conf.d/
UnsafeUserParameters=1 # enable custom key
: wq! # Save exit
6) add boot script
[root@sky9896 ~] #
Cp / var/www/html/zabbix-3.2.0/misc/init.d/fedora/core/zabbix_server / etc/rc.d/init.d/zabbix_server # server
[root@sky9896 ~] #
Cp / var/www/html/zabbix-3.2.0/misc/init.d/fedora/core/zabbix_agentd / etc/rc.d/init.d/zabbix_agentd # client
[root@sky9896 ~] # chmod + x / etc/rc.d/init.d/zabbix_server # add script execution permissions
[root@sky9896 ~] # chmod + x / etc/rc.d/init.d/zabbix_agentd # add script execution permissions
[root@sky9896 ~] # chkconfig zabbix_server on # add boot boot
[root@sky9896 ~] # chkconfig zabbix_agentd on # add boot boot
7) modify the zabbix installation directory in the zabbix boot script
[root@sky9896 ~] #
Vi / etc/rc.d/init.d/zabbix_server # Editing server configuration file
BASEDIR=/usr/local/zabbix/ # zabbix installation directory
: wq! # Save exit
Vi / etc/rc.d/init.d/zabbix_agentd # Editing client profile
BASEDIR=/usr/local/zabbix/ # zabbix installation directory
: wq! # Save exit
3. Configure the web site
[root@sky9896 ~] # cd / var/www/html/zabbix-3.2.0
[root@sky9896] # cp-r / var/www/html/zabbix-3.2.0/frontends/php / var/www/html/zabbix
[root@sky9896] # chown apache.apache-R / var/www/html/zabbix
[root@sky9896 ~] # service zabbix_server start # start the zabbix server
[root@sky9896 ~] # service zabbix_agentd start # start the zabbix client
4. Modify php profile parameters
1) [root@sky9896 ~] # vi / etc/php.ini # Edit and modify
Post_max_size = 16m
Max_execution_time = 300
Max_input_time = 300
: wq! # Save exit
2) [root@sky9896 ~] # vi / etc/php-fpm.conf # Edit and modify
Request_terminate_timeout = 300
: wq! # Save exit
[root@sky9896 ~] # service php-fpm reload # restart php-fpm
5. Open in browser: browser-based installation is omitted here.
Http://117.40.239.9/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.
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.