yum install zabbix

环境: centos 6.5



  1. 下载并安装epel源

    links  http://fedoraproject.org/wiki/EPEL

    rpm -ivh epel-*


 2.安装amp环境


    yum install httpd mysql mysql-server php php-mysql -y


3.安装zabbix


    yum install zabbix22.x86_64 zabbix22-agent.x86_64 zabbix22-server.noarch zabbix22-server-mysql.x86_64 zabbix22-web.noarch zabbix22-web-mysql.noarch

4.启动httpd ,mysqld


    service httpd restart

    chkconfig httpd on

    service mysqld restart

    chkconfig mysqld on


5.配置zabbix


   http://server3.example.com/zabbix


       wKioL1PdDPKSibFqAAKZkJAy6Ao969.jpg


    next


wKioL1PdDTuTq4vhAALC33lpSEM938.jpg

    

        vim /etc/php.ini

        post_max_size = 16

        max_execution_time = 300

        max_input_time = 300

        date.timezone = Asia/Shanghai


    Retry----next

            

  

wKioL1PdDU_jIresAAKP0LCEVTg388.jpg


    mysql> create database zabbix;
    Query OK, 1 row affected (0.00 sec)

    mysql> grant all on zabbix.* to zabbix@"%" identified by "password";
    Query OK, 0 rows affected (0.00 sec)


    [root@server3 zabbix22-server-2.2.1]# cd /usr/share/zabbix-mysql/
    [root@server3 zabbix-mysql]# ls
    data.sql  images.sql  schema.sql  upgrades
    [root@server3 zabbix-mysql]# mysql -u zabbix -p zabbix < schema.sql
    Enter password:
    [root@server3 zabbix-mysql]# mysql -u zabbix -p zabbix < images.sql
    Enter password:
    [root@server3 zabbix-mysql]# mysql -u zabbix -p zabbix < data.sql
    Enter password:
    [root@server3 zabbix-mysql]#


    vim /etc/zabbix/zabbix_server.conf
    DBName=zabbix

    DBUser=zabbix

    DBPassword=password


    /etc/init.d/mysqld restart



    next

wKioL1PdJ-Gxk40vAAIytfQF4po930.jpg


    next


wKioL1PdKSexChjZAAHvASXj7VI959.jpg


    next

wKiom1PdKCLBKD3OAAIsOFpFRik693.jpg

    

    next

wKioL1PdKVLgm-KyAAGyoqVAkQo093.jpg


    Finish




6.访问zabbix


    http://server3.example.com/zabbix

    

    默认,用户名:admin,密码:zabbix

wKiom1PdKJfgR8RVAAEsg_CuvEQ134.jpg



你可能感兴趣的:(Install,yum,zabbix)