zoukankan      html  css  js  c++  java
  • Ubuntu system zabbix-server-3.x install documentation

    Installing repository configuration package

    wget http://repo.zabbix.com/zabbix/3.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.0-1+xenial_all.deb
    dpkg -i zabbix-release_3.0-1+xenial_all.deb
    apt-get update

    #内部apt zabbix-server-mysql 源 (备注:不用内部源)

    http://mirror.gxycloud.com/ubuntu/pool/universe/z/zabbix/

     

    Installing packages

    Here is an example for Zabbix server and web frontend installation with MySQL database:

    # apt-get install zabbix-server-mysql zabbix-frontend-php

    Creating initial database

    Create Zabbix database and user on MySQL by the following commands, where <root_password> shall be replaced with the actual root password (e.g., shell> mysql -uroot -p12345) and <password> with new password for zabbix user on the database (including apostrophes: …identified by '67890';):

    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;

    Then import initial schema and data. You will be prompted to enter your newly created password.

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

    Database configuration for Zabbix server

    Edit server host, name, user and password in zabbix_server.conf as follows, where DBPassword is the password you've set creating initial database:

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

    Starting Zabbix server process

    Now you may start Zabbix server process and make it start at system boot

    # service zabbix-server start
    # update-rc.d zabbix-server enable

    PHP configuration for Zabbix frontend

    Apache configuration file for Zabbix frontend is located in /etc/zabbix/apache.conf. Some PHP settings are already configured. But it's necessary to uncomment the “date.timezone” setting and set the right timezone for you.

    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 Europe/Riga

    After that you need to restart Apache web server:

    # service apache2 restart


    FIQ:
    zabbix-server install addr:
    https://www.zabbix.com/documentation/3.0/manual/installation/install_from_packages/server_installation_with_mysql


  • 相关阅读:
    Qt表格导出图片
    QItemDelegate edit某个控件后把数据写回model
    qt json操作
    qt在tableview中绘制图片
    qt tableview里面添加控件
    qt QAbstractItemModel一些方法介绍
    ecahrt表格内容自适应
    qt tableview列头背景颜色设置
    qt对plot柱状图颜色设置
    qtdebug和release加载不同的文件配置
  • 原文地址:https://www.cnblogs.com/nulige/p/8795444.html
Copyright © 2011-2022 走看看