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

Zabbix_Server installation

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

Share

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

Zabbix_Server installation

Environment: LNMP

Preparatory work:

1. Database operation

Mysql > CREATE DATABASE zabbix CHARACTER SET utf8 COLLATE utf8_bin

Query OK, 1 row affected (0.03 sec) # create zabbix database with character set set to utf8

Mysql > GRANT ALL PRIVILEGES ON zabbix.* TO zabbix@localhost IDENTIFIED BY 'zabbix'

Query OK, 0 rows affected (0.00 sec) # gives zabbix users full permissions on the zabbix database, while creating zabbix users in the mysql database

2.PHP

[root@localhost ~] # vi / usr/local/php-5.5.0/etc/php.ini # zabbix hard requirement

375 max_execution_time = 300

396 memory_limit = 128m

663 post_max_size = 16m

795 upload_max_filesize = 2m

385 max_input_time = 300

913 date.timezone = PRC

Install zabbix_server

[root@localhost media] # tar zxvf zabbix-3.0.3rc1.tar.gz

[root@localhost media] # cd zabbix-3.0.3rc1

[root@localhost zabbix-3.0.3rc1] # / configure-- prefix=/usr/local/zabbix-3.0.3/-- enable-server-- enable-agent-- with-mysql-- with-net-snmp-- with-libcurl-- with-libxml2-- enable-java

[root@localhost zabbix-3.0.3rc1] # make & & make install

Create zabbix users and groups

[root@localhost zabbix-3.0.3rc1] # groupadd zabbix

[root@localhost zabbix-3.0.3rc1] # useradd-g zabbix zabbix

Modify zabbix configuration file

[root@localhost ~] # vi / usr/local/zabbix-3.0.3/etc/zabbix_server.conf

87 DBName=zabbix

103 DBUser=zabbix

111 DBPassword=zabbix

Import database

[root@localhost ~] # cd / media/zabbix-3.0.3rc1/database/mysql/

[root@localhost mysql] # mysql-u zabbix-p zabbix < schema.sql

[root@localhost mysql] # mysql-u zabbix-p zabbix < p_w_picpaths.sql

Zabbix web deployment

[root@localhost] # cp-a / media/zabbix-3.0.3rc1/frontends/php/* / usr/local/nginx-1.6.0/html/

Server startup configuration

[root@localhost ~] # cp / media/zabbix-3.0.3rc1/misc/init.d/debian/zabbix-server / etc/init.d/

[root@localhost ~] # cp / media/zabbix-3.0.3rc1/misc/init.d/debian/zabbix-agent / etc/init.d/

[root@localhost ~] # chmod + x / etc/init.d/zabbix-server

[root@localhost ~] # chmod + x / etc/init.d/zabbix-agent

[root@localhost conf] # chkconfig-- add zabbix-server

[root@localhost conf] # chkconfig-- add zabbix-agent

Start the service

[root@localhost conf] # service zabbix-server start

[root@localhost conf] # service zabbix-agent start

Test access: http://ip

Ps: this error is that you do not have permission. You can download it and put it in the directory.

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