In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1. Add zabbix users
Groupadd zabbix-g 201
Useradd-g zabbix-u 201-m zabbix
Yum install net-snmp-devel curl curl-devel mysql-devel php-bcmath
3. Decompression
Tar zxvf zabbix-3.0.7.tar.gz
4. Copy to / usr/local/zabbix
Mv / usr/local/src/zabbix-3.0.7 / usr/local/zabbix
5. Compilation
Cd / usr/local/zabbix/
/ configure-- prefix=/usr/local/zabbix-- enable-server-- enable-agent-- with-net-snmp-- with-libcurl-- enable-proxy-- with-mysql=/usr/local/mysql/bin/mysql_config
A lot of mistakes will be reported during this period. Yum-related packages will be fine.
6 、 make;make install
7. Zabbix database
Enter mysql
Mysql > create database zabbix character set utf8
Mysql > grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix'
Mysql > flush privileges
Import database
Cd / usr/local/zabbix/database/mysql/
Mysql-uzabbix-pzabbix zabbix < schema.sql
Mysql-uzabbix-pzabbix zabbix < p_w_picpaths.sql
Mysql-uzabbix-pzabbix zabbix < data.sql
8. Copy the script
Cd / usr/local/zabbix/misc/init.d/fedora/core
Cp zabbix_server / etc/init.d/
Cp zabbix_agentd / etc/init.d
Chmod 755 / etc/init.d/zabbix_*
9 、 vi / etc/init.d/zabbix_server
Modify the installation directory BASEDIR=/usr/local/zabbix of zabbix
Vi / etc/init.d/zabbix_agentd
Modify the installation directory BASEDIR=/usr/local/zabbix of zabbix
10. Modify zabbix_server.conf
Vi / usr/local/zabbix/etc/zabbix_server.conf
DBUser=zabbix
DBPassword=zabbix
AllowRoot=1
DBSocket=/tmp/mysql.sock (ps aux | grep mysqld knows)
Copy the zabbix file to the ngixn directory
Cd / usr/local/zabbix
Mkdir-p / data/web/zabbixServer/
Cp-r frontends/php/* / data/web/zabbixServer/
Mkdir-p / usr/local/nginx/conf/vhosts
Modify vi / usr/local/nginx/conf/vhosts/zabbix.conf
1.server_name 2.root 3 add index.php 4.root 5. fastcgi
Server {
Listen 80
Server_name 121.201.24.236
# charset koi8-r
# access_log logs/host.access.log main
Location / {
Root / data/web/zabbixServer
Index index.php index.html index.htm
}
Location ~\ .php$ {
Root / data/web/zabbixServer
Fastcgi_pass 127.0.0.1:9000
Fastcgi_index index.php
Fastcgi_param SCRIPT_FILENAME / data/web/zabbixServer$fastcgi_script_name
Include fastcgi_params
}
12. Modify the php.ini file
Vi / usr/local/php/etc/php.ini
Date.timezone = Asia/Shanghai
Max_execution_time = 300
Post_max_size = 32m
Max_input_time = 300
Mbstring.func_overload = 1
Service php-fpm reload
Next, you can configure http://121.201.24.236/setup.php in the browser web
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.