centos7.3 zabbix3.2 安装server端

server端安装

安装yum源(这里我们使用的是阿里云提供的repo)

# rpm -ivh http://mirrors.aliyun.com/zabbix/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm

安装相关软件

yum install zabbix-server zabbix-web zabbix-server-mysql zabbix-web-mysql mariadb-server mariadb -y
注:如果Server端也需要监控则需要安装zabbix-agent

修改zabbix的PHP前端配置文件

#vi /etc/httpd/conf.d/zabbix.conf

    <IfModule mod_php5.c>
        php_value max_execution_time 300
        php_value memory_limit 128M
        php_value post_max_size 16M
        php_value upload_max_filesize 2M
        php_value max_input_time 300
        php_value always_populate_raw_post_data -1
        php_value date.timezone Asia/Shanghai
    </IfModule>

初始化数据库配置

shell> mysql -uroot -p<root_password>
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by '<password>';
mysql> quit;

导入模型和数据

# zcat /usr/share/doc/zabbix-server-mysql-3.2.3/create.sql.gz | mysql -uzabbix -p<password> zabbix

修改zabbix配置文件,编辑数据库信息

# vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=<password>

启动zabbix server并设置开机启动

# systemctl start zabbix-server
# systemctl enable zabbix-server

启动httpd服务

# systemctl start httpd

浏览器访问,并进行安装

http://ipaddr:80/zabbix

centos7.3  zabbix3.2 安装server端

centos7.3  zabbix3.2 安装server端

centos7.3  zabbix3.2 安装server端

centos7.3  zabbix3.2 安装server端

centos7.3  zabbix3.2 安装server端

centos7.3  zabbix3.2 安装server端

centos7.3  zabbix3.2 安装server端

centos7.3  zabbix3.2 安装server端

上一篇:[算法总结] 13 道题搞定 BAT 面试——字符串


下一篇:zabbix3.2 添加nginx监控(连接数)