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--
1.LNMP environment is built, which will not be described in detail here, but there are a few points to pay attention to.
1) if mysql is binary or compiled and installed, php needs the following compilation parameters when compiling
-- the path after with-mysqli=/application/mysql-5.5.32/bin/mysql_config / / is the specific path of your mysql_config. If this parameter is not added, mysql support will not be found when installing zabbix.
2) when mysql establishes zabbix database, it should specify utf8 to build database, and then import zabbix data.
3) the following parameters should be added when php compiles
-- with-gettext
Otherwise, there will be a warnning warning when the zabbix front-end page is installed, and if this parameter is not added, when the Chinese language is translated
You cannot select a Chinese language in the zabbix web configuration options.
2.zabbix installation
(1) download zabbix3.0.4tar.gz
[root@Server01 tmp] # wget http://jaist.dl.sourceforge.net/project/zabbix/ZABBIX%20L atest%20Stable/3.0.4/zabbix-3.0.4.tar.gz
(2) decompression and installation
[root@Server01 zabbix-3.0.4] # yum install net-snmp-devel net-snmp- y [root@Server01 zabbix-3.0.4] # / configure-- enable-server-- enable-agent-- with-mysql-- with-net-snmp-- with-libcurl-- with-libxml2 [root@Server01 zabbix-3.0.4] # make & & make install
(3) initialize the database
Mysql > create database zabbix default character set utf8;Query OK, 1 row affected (0.00 sec) [root@Server01 mysql] # mysql-uroot-poldboy zabbix
< /tools/zabbix-3.0.4/database/mysql/data.sql[root@Server01 mysql]# mysql -uroot -poldboy zabbix < /tools/zabbix-3.0.4/database/mysql/p_w_picpaths.sql [root@Server01 mysql]# mysql -uroot -poldboy zabbix < /tools/zabbix-3.0.4/database/mysql/data.sql mysql>Grant all on zabbix.* to 'zabbix'@'localhost' identified by' zabbix';Query OK, 0 rows affected (0.00 sec) mysql > flush privileges
(4) configure zabbix server configuration file
Vim / usr/local/etc/zabbix_ server.conftion [root @ Server01 zabbix-3.0.4] # egrep-v "^ # | ^ $" / usr/local/etc/zabbix_server.conf LogFile=/tmp/zabbix_server.logDBName=zabbix / / zabbix database name DBUser=zabbix / / zabbix database account DBPassword=zabbix//zabbix database password Timeout=4LogSlowQueries=3000
(5) configure the web file in the previous paragraph
[root@Server01 zabbix-3.0.4] # cp frontends/php/* / application/nginx/html/zabbix/-rf [root@Server01 zabbix-3.0.4] # cd / application/nginx/html/zabbix/ [root@Server01 zabbix] # chown-R nginx.nginx. / [root@Server01 zabbix] # pwd/application/nginx/html/zabbix [root@Server01 zabbix] #
(6) install the zabbix front-end program
Browser opens http://zabbixserver_ip
NEXT,NEXT,NEXT will be over.
If there is an exception in the second part of the installation, you can modify the php.ini file as prompted.
If there is a problem with the linked database, you can view / tmp/zabbix_server.err error log
(7) Log in to the web page again after the installation is completed
Default account password: Admin\ zabbix
(8) if the login page prompts zabbix_server is no running
Please solve the related problems according to the error log
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.