CentOS7之CentOS7安装zabbix3.x(二)

接上篇:https://blog.csdn.net/qq_33733970/article/details/82017457

sudo make && make install

  1. 更新数据库:

    updatedb

  2. 配置zabbix_server文件

    locate zabbix_server.conf
    locate mysql.sock
    egrep -v “^#|^$” /usr/local/etc/zabbix_server.conf(具体路径看自己的!)
    egrep -v “^#|^$” /usr/local/etc/zabbix_server.conf
    cp /misc/init.d/tru64/zabbix_server /etc/init.d/
    cp /misc/init.d/tru64/zabbix_agentd /etc/init.d/

    vim /etc/init.d/zabbix_server:在文件内把BASEDIR=/usr/local/zabbix加上
    vim /etc/init.d/zabbix_agentd:在文件内把BASEDIR=/usr/local/zabbix加上

    在zabbix解压目录安装frontends 和编辑/etc/php.ini
    cp -a frontends/php/ /var/www/html/zabbix
    chown apache.apache /var/www/html/zabbix/ -R
    编辑/etc/php.ini :
    384 max_execution_time =300
    394 max_input_time =300
    405 memory_limit =128M
    672 post_max_size =16M
    698 always_populate_raw_post_data =-1
    800 upload_max_filesize =2M
    880 date.timezone =Asia/Shanghai
    systemctl restart httpd

  3. 防火墙配置★★★★★

    firewall-cmd –permanent –zone=public –add-service=http
    firewall-cmd –permanent –zone=public –add-service=https
    firewall-cmd –reload

  4. 查询ip地址

    ip addr

  5. 将地址输入到浏览器:

    http://192.168.131.129/zabbix/setup.php

大功告成!

这里写图片描述

初始密码:Admin/zabbix

参考资料:
http://shunconf.coding.me/2017/09/07/zabbix/zabbix.3.4%E7%BC%96%E8%AF%91%E5%AE%89%E8%A3%85/
https://www.cnblogs.com/apro-abra/p/4862285.html

PS:百度是个大坑货,百度的90%答案都是扯淡,浪费大把时间有钱还是要搭梯子科学上网!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值