部署zabbix
环境说明:
环境 | IP | 要安装的应用 |
---|---|---|
服务器 | 172.16.12.128 | lamp架构 zabbix ser |
因为zabbix
是用php
语言开发的,所以必须先部署lamp
架构,使其能够支持运行
[root@dabao ~]# ss -antl
State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
LISTEN 0 128 127.0.0.1:9000 0.0.0.0:*
LISTEN 0 128 0.0.0.0:22 0.0.0.0:*
LISTEN 0 80 *:3306 *:*
LISTEN 0 128 *:80 *:*
LISTEN 0 128 [::]:22 [::]:*
php
网页
zabbix服务端安装
//安装依赖包
[root@dabao ~]# yum -y install net-snmp-devel libevent-deve
安装过程略....
//下载zabbix
https://nchc.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/5.0.25/zabbix-5.0.25.tar.gz
[root@dabao ~]# ls
zabbix-5.0.25.tar.gz9
//解压
[root@dabao ~]# tar xf zabbix-5.0.25.tar.gz
//创建zabbix用户和组
[root@dabao ~]# useradd -r -M -s /sbin/nologin zabbix
[root@dabao ~]# mkdir -p /usr/lib/zabbix
[root@dabao ~]# chown -R zabbix.zabbix /usr/lib/zabbix
[root@dabao ~]# chmod 770 /usr/lib/zabbix
//配置zabbix数据库
[root@dabao ~]# mysql -uroot -pdrhandhjl123!
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (28000): A