1. Build Lamp Environment
Aptitude install Mysql-server mysql-client apache2 apache2-doc php5 php5-mysql libapache2-mod-php5
Vim My.cnfcharacter-set-server = UTF8 #设置字符集utf8innodb_file_per_table = 1 #让innodb每个表文件单独存储
2. Download the Zabbix source installation package (This package is an installation source, which is equivalent to adding a Zabbix source after installation)
wget Http://repo.zabbix.com/zabbix/2.4/debian/pool/main/z/zabbix-release/zabbix-release_2.4-1+wheezy_ All.debdpkg-i zabbix-release_2.4-1+wheezy_all.deb apt-get Update
3. Installing the Zabbix Agent
Apt-get Install Zabbix-agent
vim/etc/zabbix/zabbix_agentd.confserver= "Zabbix server LAN IP" #必须与zabbix server Listenip consistent hostname= "Zabbix agent LAN IP "listenip=" Zabbix Agent LAN IP "
4. Installing Zabbix Server
Apt-get Install Zabbix-server-mysql zabbix-frontend-php zabbix-get
vim/etc/zabbix/zabbix_server.conflistenip=192.168.11.1
Configuring the Apache virtual host for Zabbix
Vim/etc/apache2/sites-available/zabbix<virtualhost *:80> ServerAdmin [email protected] Documentroot/usr/shar E/zabbix include/etc/zabbix/apache.conf errorlog ${apache_log_dir}/error.log LogLevel warn Customlog ${APACHE _log_dir}/access.log combined</virtualhost>
The basic building has been completed.
By setting some necessary parameters in the browser, you can make a preliminary use of the
This article is from the "Blowfish Home" blog, please make sure to keep this source http://mrhetun.blog.51cto.com/10560856/1695101
Build Zabbix monitoring under Debian