zabbix在centos6的安装
侧边栏壁纸
博主昵称
yuc

  • 累计撰写 291 篇文章
  • 累计收到 0 条评论

zabbix在centos6的安装

yuc
yuc
2022-03-15 / 最后修改: 2023-06-01 08:51 / 0 评论 / 638 阅读 / 正在检测是否收录...
要点

主要问题是centos6不支持高版本zbx服务端,只能使用zbx3。而且配套的环境支持有限,如mysql和php

依赖安装
yum -y install httpd zabbix zabbix-server zabbix-web zabbix-server-mysql zabbix-web-mysql mysql-server
rpm -ivh http://mirror.webtatic.com/yum/el6/latest.rpm
yum install php55w php55w-mysql php55w-common php55w-gd php55w-mbstring php55w-mcrypt php55w-devel php55w-xml php55w-bcmath php55w-fpm -y
前端和mysql
cp -R /usr/share/zabbix/ /var/www/html/
cp /usr/share/mysql/my-medium.cnf /etc/my.cnf
create database zabbix character set utf8 collate utf8_bin;
grant all on zabbix.* to zabbix@'%' identified by 'Zbx_123456';
flush privileges;
nginx的配置
server {
    listen       80;
    server_name  localhost;
    root   /var/www/html;
    index  index.php index.html index.htm;
    access_log  logs/zabbix_access.log;
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
      root   html;
    }
    location ~ \.(php|php5)?$ {
      root           /var/www/html/;
      fastcgi_pass   127.0.0.1:9000;
      fastcgi_index  index.php;
      fastcgi_param  SCRIPT_FILENAME  /var/www/html$fastcgi_script_name;
      include        fastcgi_params;
    }
}
0

评论

博主关闭了当前页面的评论