ubuntu 14上面安装zabbix 3.0
2016-08-26 11:57
447 查看
from: https://www.zabbix.com/documentation/3.0/manual/installation/install_from_packages
3 Installation from packages
From distribution packages
Several popular OS distributions have Zabbix packages provided. You can use these packages to install Zabbix.
OS distributions may lack the latest version of Zabbix in their repositiories.
From Zabbix official repository
Zabbix SIA provides official RPM and DEB packages for Red Hat Enterprise Linux, Debian and Ubuntu LTS.
Package files are available at repo.zabbix.com. yum and apt repositories are also available on the server. A step-by-step tutorial for installing Zabbix from packages is provided here.
Red Hat Enterprise Linux / CentOS
Supported for versions: RHEL 7, Oracle Linux 7, CentOS 7
Some packages (agent, proxy, etc) are available for RHEL 5 and RHEL 6, too.
Installing repository configuration package
Install the repository configuration package. This package contains yum configuration files.
# rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
Installing Zabbix packages
Install Zabbix packages. Example for Zabbix server and web frontend with mysql database.
Zabbix official repository provides fping, iksemel, libssh2 packages as well. These packages are located in the non-supported directory.
# yum install zabbix-server-mysql zabbix-web-mysql
Example for installing Zabbix agent only.
# yum install zabbix-agent
Creating initial database
Create zabbix database and user on MySQL. For instructions on doing that, see database creation scripts for MySQL.
Then import initial schema and data.
# cd /usr/share/doc/zabbix-server-mysql-3.0.0
# zcat create.sql.gz | mysql -uroot zabbix
Starting Zabbix server process
Edit database configuration in zabbix_server.conf
# vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
Start Zabbix server process.
# systemctl start zabbix-server
Editing PHP configuration for Zabbix frontend
Apache configuration file for Zabbix frontend is located in /etc/httpd/conf.d/zabbix.conf. Some PHP settings are already configured.
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
It's necessary to uncomment the “date.timezone” setting and set the right timezone for you. After changing the configuration file restart the apache web server.
# systemctl start httpd
Zabbix frontend is available at http://zabbix-frontend-hostname/zabbix in the browser. Default username/password is Admin/zabbix.
Debian / Ubuntu
Supported for version: Debian 7 (Wheezy) and 8 (Jessie), Ubuntu 14.04 LTS (Trusty Tahr)
Installing repository configuration package
Install the repository configuration package. This package contains apt configuration files.
Zabbix 3.0 for Debian 7:
# wget http://repo.zabbix.com/zabbix/3.0/debian/pool/main/z/zabbix-release/zabbix-release_3.0-1+wheezy_all.deb
# dpkg -i zabbix-release_3.0-1+wheezy_all.deb
# apt-get update
Zabbix 3.0 for Debian 8:
# wget http://repo.zabbix.com/zabbix/3.0/debian/pool/main/z/zabbix-release/zabbix-release_3.0-1+jessie_all.deb
# dpkg -i zabbix-release_3.0-1+jessie_all.deb
# apt-get update
Zabbix 3.0 for Ubuntu 14.04 LTS:
# wget http://repo.zabbix.com/zabbix/3.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.0-1+trusty_all.deb
# dpkg -i zabbix-release_3.0-1+trusty_all.deb
# apt-get update
Installing Zabbix packages
Example for Zabbix server and web frontend with mysql database.
# apt-get install zabbix-server-mysql zabbix-frontend-php
Example for installing Zabbix agent only.
# apt-get install zabbix-agent
Creating initial database
Create zabbix database and user on MySQL. For instructions on doing that, see database creation scripts for MySQL.
Then import initial schema and data.
# cd /usr/share/doc/zabbix-server-mysql
# zcat create.sql.gz | mysql -uroot zabbix
Starting Zabbix server process
Edit database configuration in zabbix_server.conf
# vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
Start Zabbix server process.
# service zabbix-server start
Editing PHP configuration for Zabbix frontend
Apache configuration file for Zabbix frontend is located in /etc/apache2/conf.d/zabbix or /etc/apache2/conf-enabled/zabbix.conf. Some PHP settings are already configured.
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
It's necessary to uncomment the “date.timezone” setting and set the correct timezone for you. After changing the configuration file restart the apache web server.
# service apache2 restart
Zabbix frontend is available at http://zabbix-frontend-hostname/zabbix in the browser. Default username/password is Admin/zabbix.
3 Installation from packages
From distribution packages
Several popular OS distributions have Zabbix packages provided. You can use these packages to install Zabbix.
OS distributions may lack the latest version of Zabbix in their repositiories.
From Zabbix official repository
Zabbix SIA provides official RPM and DEB packages for Red Hat Enterprise Linux, Debian and Ubuntu LTS.
Package files are available at repo.zabbix.com. yum and apt repositories are also available on the server. A step-by-step tutorial for installing Zabbix from packages is provided here.
Red Hat Enterprise Linux / CentOS
Supported for versions: RHEL 7, Oracle Linux 7, CentOS 7
Some packages (agent, proxy, etc) are available for RHEL 5 and RHEL 6, too.
Installing repository configuration package
Install the repository configuration package. This package contains yum configuration files.
# rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
Installing Zabbix packages
Install Zabbix packages. Example for Zabbix server and web frontend with mysql database.
Zabbix official repository provides fping, iksemel, libssh2 packages as well. These packages are located in the non-supported directory.
# yum install zabbix-server-mysql zabbix-web-mysql
Example for installing Zabbix agent only.
# yum install zabbix-agent
Creating initial database
Create zabbix database and user on MySQL. For instructions on doing that, see database creation scripts for MySQL.
Then import initial schema and data.
# cd /usr/share/doc/zabbix-server-mysql-3.0.0
# zcat create.sql.gz | mysql -uroot zabbix
Starting Zabbix server process
Edit database configuration in zabbix_server.conf
# vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
Start Zabbix server process.
# systemctl start zabbix-server
Editing PHP configuration for Zabbix frontend
Apache configuration file for Zabbix frontend is located in /etc/httpd/conf.d/zabbix.conf. Some PHP settings are already configured.
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
It's necessary to uncomment the “date.timezone” setting and set the right timezone for you. After changing the configuration file restart the apache web server.
# systemctl start httpd
Zabbix frontend is available at http://zabbix-frontend-hostname/zabbix in the browser. Default username/password is Admin/zabbix.
Debian / Ubuntu
Supported for version: Debian 7 (Wheezy) and 8 (Jessie), Ubuntu 14.04 LTS (Trusty Tahr)
Installing repository configuration package
Install the repository configuration package. This package contains apt configuration files.
Zabbix 3.0 for Debian 7:
# wget http://repo.zabbix.com/zabbix/3.0/debian/pool/main/z/zabbix-release/zabbix-release_3.0-1+wheezy_all.deb
# dpkg -i zabbix-release_3.0-1+wheezy_all.deb
# apt-get update
Zabbix 3.0 for Debian 8:
# wget http://repo.zabbix.com/zabbix/3.0/debian/pool/main/z/zabbix-release/zabbix-release_3.0-1+jessie_all.deb
# dpkg -i zabbix-release_3.0-1+jessie_all.deb
# apt-get update
Zabbix 3.0 for Ubuntu 14.04 LTS:
# wget http://repo.zabbix.com/zabbix/3.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.0-1+trusty_all.deb
# dpkg -i zabbix-release_3.0-1+trusty_all.deb
# apt-get update
Installing Zabbix packages
Example for Zabbix server and web frontend with mysql database.
# apt-get install zabbix-server-mysql zabbix-frontend-php
Example for installing Zabbix agent only.
# apt-get install zabbix-agent
Creating initial database
Create zabbix database and user on MySQL. For instructions on doing that, see database creation scripts for MySQL.
Then import initial schema and data.
# cd /usr/share/doc/zabbix-server-mysql
# zcat create.sql.gz | mysql -uroot zabbix
Starting Zabbix server process
Edit database configuration in zabbix_server.conf
# vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
Start Zabbix server process.
# service zabbix-server start
Editing PHP configuration for Zabbix frontend
Apache configuration file for Zabbix frontend is located in /etc/apache2/conf.d/zabbix or /etc/apache2/conf-enabled/zabbix.conf. Some PHP settings are already configured.
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
It's necessary to uncomment the “date.timezone” setting and set the correct timezone for you. After changing the configuration file restart the apache web server.
# service apache2 restart
Zabbix frontend is available at http://zabbix-frontend-hostname/zabbix in the browser. Default username/password is Admin/zabbix.
相关文章推荐
- ubuntu下安装配置部署zabbix3.0――基于docker
- Ubuntu14 系统下安装Opencv3.0攻略
- Zabbix3.0安装(基于Ubuntu14.04)
- Ubuntu14.04 Zabbix3.0安装配置(客户端/服务端)
- 【运维监控】ubuntu14 下zabbix服务端安装时缺少依赖解决
- Ubuntu14.04 x64 zabbix 3.0 安装
- ubuntu 14.04安装zabbix3.0
- 在ubuntu14上面安装docker
- zabbix 3.0 安装 ubuntu环境
- Ubuntu 安装 Oracle SQL Developer 3.0
- Zabbix在Nginx上面详细安装文档
- Ubuntu Server12.04下Zabbix安装
- Ubuntu 12.04 上面成功安装 gem5
- ubuntu上面安装eclipse android到adt下载方法
- 在ubuntu 11.10上面安装svn服务器的过程
- 解决ubuntu下安装python3.0后无法 import readline
- Bumblebee 3.0在Ubuntu 上NVidia Optimus安装 让双显卡电脑显卡給力
- Bumblebee 3.0在Ubuntu 11.10上NVidia Optimus安装教程,效果惊人!
- ubuntu 开发gtk+3.0程序的环境安装。
- 先安装win7再安装linux相关系统如 fedora 14 ubuntu 等 如何修改开机系统启动顺序