由于官網(wǎng)很慢,經(jīng)常看官方文檔就弄的很煩,因此把我看官網(wǎng)安裝配置zabbix的步驟在此記錄一下。
網(wǎng)站建設(shè)公司,為您提供網(wǎng)站建設(shè),網(wǎng)站制作,網(wǎng)頁設(shè)計及定制網(wǎng)站建設(shè)服務(wù),專注于成都企業(yè)網(wǎng)站建設(shè),高端網(wǎng)頁制作,對成都服務(wù)器租用等多個行業(yè)擁有豐富的網(wǎng)站建設(shè)經(jīng)驗的網(wǎng)站建設(shè)公司。專業(yè)網(wǎng)站設(shè)計,網(wǎng)站優(yōu)化推廣哪家好,專業(yè)成都網(wǎng)站推廣優(yōu)化,H5建站,響應(yīng)式網(wǎng)站。
###安裝環(huán)境
centos6.8
192.168.2.110 基礎(chǔ)服務(wù)器安裝
#關(guān)閉防火墻
service iptables stop
chkconfig iptables off
#修改selinux
vim /etc/selinux/config
SELINUX=disabled
####yum安裝MySQL.apache.php
yum -y install httpd httpd-devel
yum -y install mysql mysql-servermysql-devel
yum -y install php php-mysql php-common php-gdphp-mbstring php-mcrypt php-devel php-xml
###yum安裝zabbix
#先安裝yum源:
# rpm -ivhhttp://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm
#安裝zabbix
# yum install zabbix-server-mysqlzabbix-web-mysql
#創(chuàng)建zabbix數(shù)據(jù)庫
#先開啟服務(wù):service mysqldstart
shell> mysql -uroot-p
mysql> create database zabbix characterset utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.*to zabbix@localhost identified by '
mysql> quit;
#導(dǎo)入數(shù)據(jù)到zabbix庫
# cd/usr/share/doc/zabbix-server-mysql-2.4.8/create
# mysql -uroot -pxx zabbix < schema.sql
# mysql -uroot -pxx zabbix < p_w_picpaths.sql
# mysql -uroot -pxx zabbix < data.sql
###修改zabbix配置文件
# vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
#啟動zabbix
# service zabbix-server start
###修改php配置
vim /etc/httpd/conf.d/zabbix.conf
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 date.timezone Asia/Shanghai
###啟動服務(wù)
service httpd restart
chkconfig httpd on
service mysqld restart
chkconfig mysqld on
service zabbix-server restart
chkconfig zabbix-server on
#打開zabbix dashboard
192.168.2.110/zabbix 進行安裝
客戶端可以安裝zabbix的yum源之后,直接yum安裝:yum install zabbix-agent