zoukankan      html  css  js  c++  java
  • ubuntu install zabbix

    ubuntu install zabbix

    reference1

    reference2

    some ERRORS raise during install process, may it help.

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

    Unable to locate package
    ERROR: The repository 'cdrom://Ubuntu-Server 16.04.3 LTS Xenial Xerus - Release amd64 (20170801) xenial Release' does not have a Release file
    apt-get dist-upgrade

    ERROR: please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
    vim /etc/apt/sources.list
    comment or remove follow line:
    # deb cdrom:[Ubuntu-Server 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.3)]/ xenial main restricted

    ERROR: zbbix The requested URL /zabbix was not found on this server.

    a2enconf zabbix.conf
    service apache2 reload
    

    ERROR: Package 'php5-mysql' has no installation candidate
    remove 5 from php5-mysql
    apt-get install php-mysql

    ERROR: cannot create regular file '/etc/apache2/conf.d/zabbix.conf': No such file or directory
    cp /usr/share/doc/zabbix-frontend-php/examples/apache.conf /etc/apache2/conf.d/zabbix.conf
    change to follow
    cp /usr/share/doc/zabbix-frontend-php/examples/apache.conf /etc/apache2/conf-available/zabbix.conf

    sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak
    vim /etc/apt/sources.list
    sources.list content as follow:

    deb http://us.archive.ubuntu.com/ubuntu/ maverick main restricted universe multiverse 
    deb-src http://us.archive.ubuntu.com/ubuntu/ maverick main restricted universe multiverse 
    ###### Ubuntu Update Repos
    deb http://us.archive.ubuntu.com/ubuntu/ maverick-security main restricted universe multiverse 
    deb http://us.archive.ubuntu.com/ubuntu/ maverick-updates main restricted universe multiverse 
    deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-security main restricted universe multiverse 
    deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-updates main restricted universe multiverse 
    ###### Ubuntu Partner Repo
    deb http://archive.canonical.com/ubuntu maverick partner
    deb-src http://archive.canonical.com/ubuntu maverick partner
    deb http://extras.ubuntu.com/ubuntu maverick main #Third party developers repository
    deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu maverick main # disabled on upgrade to maverick
    
  • 相关阅读:
    Java实现 LeetCode 402 移掉K位数字
    Java实现 LeetCode 402 移掉K位数字
    Java实现 LeetCode 401 二进制手表
    Java实现 LeetCode 401 二进制手表
    wpa_supplicant使用笔记-wpa_cli iwconfig
    Linux下的定时器:alarm()与setitimer()
    在 Windows 下远程桌面连接 Linux
    assert()函数用法总结
    linux下svn修改用户名和密码
    VirtualBox
  • 原文地址:https://www.cnblogs.com/vickey-wu/p/8946456.html
Copyright © 2011-2022 走看看