zoukankan      html  css  js  c++  java
  • ubuntu14.04安装zabbix

    1. apt-get update
    apt-get install apache2 mysql-server libapache2-mod-php5 php5-gd php5-mysql php5-common zabbix-server-mysql zabbix-frontend-php

    vim /etc/zabbix/zabbix_server.conf
                        

                               DBHost=localhost(不要好像也行)
                               DBName=zabbix
                               DBUser=zabbix
                               DBPassword=zabbix#非必需,但推荐
                               StartDiscoverers=5 (作用不清楚,不写也行)

                                

    2. 创建mysql账号
        
    mysql -u root -p
    mysql> create user 'zabbix'@'localhost' identified by 'zabbix';
    mysql> create database zabbix;
    mysql> grant all privileges on zabbix.* to 'zabbix'@'localhost';
    mysql> flush privileges;
    mysql> exit;


    3. 导入初始化数据
    cd /usr/share/zabbix-server-mysql/
    gunzip *.gz
    mysql -uzabbix -p zabbix

    >use zabbix;

    >source schema.sql;

    >source images.sql;

    >source data.sql;


    4. 修改PHP参数

    vim /etc/php5/apache2/php.ini
                          
    post_max_size = 32M
    max_execution_time = 600
    max_input_time = 600
    date.timezone = "Asia/Shanghai" 
     

                             
    5. 配置网页

    cp /usr/share/doc/zabbix-frontend-php/examples/zabbix.conf.php.example /etc/zabbix/zabbix.conf.phpsudo 
    vim /etc/zabbix/zabbix.conf.php
    $DB['DATABASE'] = 'zabbix';
    $DB['USER'] = 'zabbix';
    $DB['PASSWORD'] = 'zabbix'


    6. 配置apache

    cp /usr/share/doc/zabbix-frontend-php/examples/apache.conf /etc/apache2/conf-available/zabbix.conf
    a2enconf zabbix.conf
    a2enmod alias
    service apache2 restart


    7. 配置Zabbix Server  服务启动

    vim /etc/default/zabbix-server

    START=yes
    service zabbix-server start


    8. 访问 http://127.0.0.1/zabbix   缺省账户密码是    admin      zabbix

    参考:http://blog.csdn.net/as862804646/article/details/53020679

  • 相关阅读:
    UVA
    UVA
    模板——扩展欧几里得算法(求ax+by=gcd的解)
    UVA
    模板——2.2 素数筛选和合数分解
    模板——素数筛选
    Educational Codeforces Round 46 (Rated for Div. 2)
    Educational Codeforces Round 46 (Rated for Div. 2) E. We Need More Bosses
    Educational Codeforces Round 46 (Rated for Div. 2) D. Yet Another Problem On a Subsequence
    Educational Codeforces Round 46 (Rated for Div. 2) C. Covered Points Count
  • 原文地址:https://www.cnblogs.com/regit/p/7929317.html
Copyright © 2011-2022 走看看