CentOS7之CentOS7安装zabbix3.x(二)

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_33733970/article/details/82112942

接上篇: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%答案都是扯淡,浪费大把时间有钱还是要搭梯子科学上网!

猜你喜欢

转载自blog.csdn.net/qq_33733970/article/details/82112942