zabbix 3.4 installation records

zabbix
--3.4
https://blog.51cto.com/hwg1227/2126342
https://blog.51cto.com/10981246/2087541
- 3.0
https://www.cnblogs.com/linuxk/p/9450616.html
https://www.cnblogs.com/liang-wei/p/5848923.html
Bird brother 2.x:
http://blog.chinaunix.net/uid-25266990-id-3380929.html
official website Manual:
HTTPS: / /www.zabbix.com/documentation/3.4/zh/manual
. 1, mounted ntp
time synchronization: the install -Y #yum the ntpdate
echo '* * * * * / usr / sbin / ntp1.aliyun.com the ntpdate &> / etc / null '>> / var / spool / cron / root

2,安装部署zabbix3.0LTS
zabbix_server -V
zabbix_server (Zabbix) 3.4.15

zabbix3.0 installation

Initialize the database
mysql_secure_installation
create zabbix ordinary users
https://www.cnblogs.com/xujishou/p/6306765.html
create simultaneous users authorized
MySQL> All Grant privileges to the Test ON MQ * @ localhost IDENTIFIED by '1234';.
Query the OK, 0 rows affected, 1 warning (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)

PS: must be executed flush privileges;

否则登录时提示:ERROR 1045 (28000): Access denied for user 'user'@'localhost' (using password: YES )
-------------------
MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> quit;
Bye
-----创建zabbix用户并授权107
MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;
MariaDB [(none)]> select user,host from mysql.user;
MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@"%" identified by 'zabbix';
MariaDB [(none)]> flush privileges;
MariaDB [(none)]> select user,host from mysql.user;
+--------+-------------+
| user | host |
+--------+-------------+
| root | % |
| zabbix | % |
| root | 127.0.0.1 |
| rep | 192.168.1.% |
| root | ::1 |
+--------+-------------+

------108
[root@zizhen ~]# cd /usr/share/doc/zabbix-server-mysql-3.4.15/
[root@zizhen zabbix-server-mysql-3.4.15]# zcat create.sql.gz | mysql -h 192.168.1.107 -uzabbix -pzabbix;
ERROR 1046 (3D000) at line 1: No database selected
[root@zizhen zabbix-server-mysql-3.4.15]# zcat create.sql.gz | mysql -h 192.168.1.107 -P 3306 -uzabbix -pzabbix;
ERROR 1046 (3D000) at line 1: No database selected
[root@zizhen zabbix-server-mysql-3.4.15]# zcat create.sql.gz | mysql -h 192.168.1.107 -uzabbix -pzabbix -D zabbix;
[root@zizhen zabbix-server-mysql-3.4.15]#
-----
zabbix-server 监听端口10051
zabbix-agent 监听端口10050
MariaDB 端口3306
浏览器访问,并进行安装 http://192.168.203.131/zabbix/
Log latest version Zabbix3.4 default Admin user default password zabbix

 

Error: After ip address changes, you need to modify:
1, modify the configuration file
#cat /etc/zabbix/zabbix_server.conf | grep -v "#" | grep -v "^ $"
DBHost = 192.168.203.131
#vim / etc / ZABBIX / Web / zabbix.conf.php
$ DB [ 'SERVER'] = '192.168.203.131';

2, restart the service:

#systemctl   restart  zabbix-server

#systemctl  restart   httpd

 

Guess you like

Origin www.cnblogs.com/weizitianming/p/10936106.html