In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
This installation is going to install 3. 0 zabbix (LNMP)
The first step is to install zabbix's official zabbix source at the following address:
Http://repo.zabbix.com/zabbix/3.0/rhel/6/x86_64/zabbix-release-3.0-1.el6.noarch.rpm
Official source for installing zabbix
Rpm-ivh zabbix-release-3.0-1.el6.noarch.rpm
The second step is to install the zabbix server, agent and other related RPM packages using the yum installation method.
Yum install-y zabbix zabbix-get zabbix-server zabbix-web-mysql zabbix-web zabbix-agent
Step 3: edit the configuration file of mysql
Vim / etc/my.cnf
Fill in under the [mysqld] module
Character-set-server=utf8 # sets the character set to utf8
Innodb_file_per_table=1 # lets each table file of innodb be stored separately
Save exit and restart the mysql database:
/ etc/init.d/mysqld restart
Check to see if mysql is started
Step 4: create a database for zabbix
Set the root user password for mysql
Mysqladmin-uroot password hongkun@12836
Mysql-uroot-phongkun@12836
Create database zabbix character set utf8
Grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix'
Flush privileges
Note: the common problem here is that the database character set of zabbix is not utf8, which causes the web interface to switch to the Chinese environment.
Step 5: import the database file of zabbix
When importing the database here, there is a bit of a hole. I was still looking for the database of the path file, but now we can import the database directly with one command:
Here the path to our database file is: / usr/share/doc/zabbix-server-mysql-3.0.7
Zcat create.sql.gz | mysql-uroot-phongkun@12836
Step 6 modify the configuration file of zabbix
Vim / etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
StartPollers=5
CacheSize=256M
Create a script file folder for zabbix
Mkdir / etc/zabbix/alertscripts / etc/zabbix/externalscripts
Step 7 put the web installer of zabbix into the external site directory of nginx
Cd / usr/share/cp-r zabbix / usr/local/nginx/htmlchown-R zabbix:zabbix / usr/local/nginx/html/zabbix chown-R zabbix:zabbix / etc/zabbix chown-R zabbix:zabbix / usr/share/zabbix chown-R zabbix:zabbix / usr/lib/zabbix
Chown 755 / etc/zabbix/web # (this is very important, if not, the error will be as follows)
Warning: require_once (/ etc/zabbix/web/maintenance.inc.php): failed to open stream: Permission denied in / usr/local/nginx/html/zabbix/include/classes/core/ZBase.php on line 269
Fatal error: require_once (): Failed opening required'/ etc/zabbix/web/maintenance.inc.php' (include_path='.:/usr/local/php/lib/php') in/usr/local/nginx/html/zabbix/include/classes/core/ZBase.php on line 269
Step 8 install zabbix on the web page
Enter the URL http://121.41.25.102/zabbix/setup.php
Next step
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.