Zabbix 1.8 安裝詳解(1)

來源:互聯網
上載者:User

Zabbix 1.8 安裝過程還是比較漫長的!

本文只記錄我的 Zabbix 1.8 的安裝過程。

以下我要在同一台伺服器上安裝 Zabbix Server、Zabbix Proxy 和 Zabbix Agent。

安裝前先配置好PHP,要求支援 php-gd、php-bcmath、php-xml、php-mysql、php-net-socket、php-mbstring,即 configure 參數中加上 --with-gd --enable-bcmath --enable-xml --with-mysql --enable-sockets --enable-mbstring。

我的配置參數如下:

  1. ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-fpm --enable-sockets --enable-pdo --with-pdo-mysql=/usr/local/mysql --with-gd --enable-bcmath --enable-xml --enable-mbstring  
  2.  

下面開始安裝 Zabbix:

* 下載並解壓:

  1. wget http://prdownloads.sourceforge.net/zabbix/zabbix-1.8.tar.gz?download  
  2.  
  3. tar zxf zabbix-1.8.tar.gz  
  4.  
  5. cd zabbix-1.8  
  6.  

* 建立 zabbix 使用者組和使用者:

  1. groupadd zabbix  
  2.  
  3. useradd zabbix -g zabbix  
  4.  

* 建立 mysql 資料庫:

  1. create database zabbix character set utf8;  
  2.  

* 建立 mysql 使用者:

  1. grant all on zabbix.* to zabbix@localhost identified by 'zabbix';  
  2.  

* 匯入表和資料:

  1. mysql -uroot -p zabbix < create/schema/mysql.sql  
  2.  
  3. mysql -uroot -p zabbix < create/data/data.sql  
  4.  
  5. mysql -uroot -p zabbix < create/data/images_mysql.sql  
  6.  


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.