日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
Zabbix2.2服務(wù)端安裝

操作系統(tǒng)為CentOS 6.5 64位,采用yum方式安裝,操作系統(tǒng)能正常出公網(wǎng)后,建議先更新操作系統(tǒng)
yum -y update
如果yum 安裝時(shí)錯(cuò)誤 Errno 14 Couldn't resolve host需要修改DNS服務(wù)器,可以修改一下 /etc/resolv.conf
添加一個(gè)nameserver 8.8.8.8完成

雙塔ssl適用于網(wǎng)站、小程序/APP、API接口等需要進(jìn)行數(shù)據(jù)傳輸應(yīng)用場景,ssl證書未來市場廣闊!成為成都創(chuàng)新互聯(lián)的ssl證書銷售渠道,可以享受市場價(jià)格4-6折優(yōu)惠!如果有意向歡迎電話聯(lián)系或者加微信:028-86922220(備注:SSL證書合作)期待與您的合作!

安裝epel擴(kuò)展源spacer.gif
  [root@localhost ~]#yum install -y epel-release安裝rpm包的lamp環(huán)境
  [root@localhost ~]#yum install -y httpd mysql mysql-libs php php-mysql mysql-server php-bcmath php-gd php-mbstring 安裝zabbix的版本可以通過yum search zabbix查看yum源帶的是什么版本,確認(rèn)后選擇你需要的版本即可
  [root@localhost ~]# yum search zabbix
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
epel/metalink                                                      | 5.3 kB    00:00   
 * base: centos.ustc.edu.cn
 * epel: ftp.cuhk.edu.hk
 * extras: mirrors.yun-idc.com
 * updates: mirrors.sina.cn
base                                                              | 3.7 kB    00:00   
extras                                                            | 3.4 kB    00:00   
updates                                                            | 3.4 kB    00:00   
================================== N/S Matched: zabbix ===================================
pcp-export-zabbix-agent.x86_64 : Module for exporting from PCP into a Zabbix agent daemon
Python-pyzabbix.noarch : PyZabbix is a Python module for working with the Zabbix API
uwsgi-stats-pusher-zabbix.x86_64 : uWSGI - Zabbix Stats Pusher for uWSGI
zabbix-agent.x86_64 : Zabbix Agent
zabbix-proxy.x86_64 : Zabbix Proxy
zabbix-proxy-mysql.x86_64 : Zabbix proxy compiled to use MySQL
zabbix-proxy-pgsql.x86_64 : Zabbix proxy compiled to use PostgreSQL
zabbix-proxy-sqlite3.x86_64 : Zabbix proxy compiled to use SQLite
zabbix-server.x86_64 : Zabbix server common files
zabbix-server-mysql.x86_64 : Zabbix server compiled to use MySQL
zabbix-server-pgsql.x86_64 : Zabbix server compiled to use PostgresSQL
zabbix-server-sqlite3.x86_64 : Zabbix server compiled to use SQLite
zabbix-web.noarch : Zabbix Web Frontend
zabbix-web-mysql.noarch : Zabbix web frontend for MySQL
zabbix-web-pgsql.noarch : Zabbix web frontend for PostgreSQL
zabbix-web-sqlite3.noarch : Zabbix web frontend for SQLite
zabbix20-agent.x86_64 : Zabbix agent
zabbix20-proxy.noarch : Zabbix proxy common files
zabbix20-proxy-mysql.x86_64 : Zabbix proxy compiled to use MySQL
zabbix20-proxy-pgsql.x86_64 : Zabbix proxy compiled to use PostgreSQL
zabbix20-proxy-sqlite3.x86_64 : Zabbix proxy compiled to use SQLite
zabbix20-server.noarch : Zabbix server common files
zabbix20-server-mysql.x86_64 : Zabbix server compiled to use MySQL
zabbix20-server-pgsql.x86_64 : Zabbix server compiled to use PostgresSQL
zabbix20-web.noarch : Zabbix Web Frontend
zabbix20-web-mysql.noarch : Zabbix web frontend for MySQL
zabbix20-web-pgsql.noarch : Zabbix web frontend for PostgreSQL
zabbix22-agent.x86_64 : Zabbix Agent
zabbix22-dbfiles-mysql.noarch : Zabbix database schemas, images, data and patches
zabbix22-dbfiles-pgsql.noarch : Zabbix database schemas, images, data and patches
zabbix22-dbfiles-sqlite3.noarch : Zabbix database schemas and patches
zabbix22-proxy.noarch : Zabbix Proxy
zabbix22-proxy-mysql.x86_64 : Zabbix proxy compiled to use MySQL
zabbix22-proxy-pgsql.x86_64 : Zabbix proxy compiled to use PostgreSQL
zabbix22-proxy-sqlite3.x86_64 : Zabbix proxy compiled to use SQLite
zabbix22-server.noarch : Zabbix server common files
zabbix22-server-mysql.x86_64 : Zabbix server compiled to use MySQL
zabbix22-server-pgsql.x86_64 : Zabbix server compiled to use PostgreSQL
zabbix22-web.noarch : Zabbix Web Frontend
zabbix22-web-mysql.noarch : Zabbix web frontend for MySQL
zabbix22-web-pgsql.noarch : Zabbix web frontend for PostgreSQL
zabbix.x86_64 : Open-source monitoring solution for your IT infrastructure
zabbix20.x86_64 : Open-source monitoring solution for your IT infrastructure
zabbix22.x86_64 : Open-source monitoring solution for your IT infrastructure
從yum源可以看到配置了zabbix2.0和zabbix2.2
安裝zabbix服務(wù)端(可以選擇安裝zabbix2.0或者zabbix2.2)
安裝zabbix2.0
 [root@localhost ~]#yum install -y zabbix20 zabbix20-agent zabbix20-server zabbix20-server-mysql zabbix20-web zabbix20-web-mysql net-snmp-devel安裝zabbix2.2 [root@localhost ~]#yum install -y zabbix22 zabbix22-agent zabbix22-server zabbix22-server-mysql zabbix22-web zabbix22-web-mysql net-snmp-devel

      啟動(dòng)服務(wù)

 [root@localhost ~]# /etc/init.d/zabbix-server startStarting Zabbix server:                                    [確定] [root@localhost ~]# /etc/init.d/zabbix-agent startStarting Zabbix agent:                                    [確定] [root@localhost ~]# /etc/init.d/httpd start正在啟動(dòng) httpd:httpd: Could not reliably determine the server's fully qualified domain name, using 0.0.0.133 for ServerName                                                          [確定] 修改mysql配置文件

 [root@localhost ~]# vim /etc/my.cnf增加如下內(nèi)容

[mysql]default-character-set=utf8[mysqld]character_set_server=utf8 啟動(dòng)mysql

 [root@localhost ~]# /etc/init.d/mysqld startPlease report any problems with the /usr/bin/mysqlbug script!                                                          [確定]正在啟動(dòng) mysqld:                                          [確定]      創(chuàng)建數(shù)據(jù)庫,導(dǎo)入數(shù)據(jù)

 [root@localhost ~]# mysql -uroot -e "create database zabbix" [root@localhost ~]# mysql -uroot --default-character-set=utf8 zabbix < /usr/share/zabbix-mysql/schema.sql [root@localhost ~]# mysql -uroot --default-character-set=utf8 zabbix < /usr/share/zabbix-mysql/images.sql [root@localhost ~]# mysql -uroot --default-character-set=utf8 zabbix < /usr/share/zabbix-mysql/data.sql [root@localhost ~]# mysql -uroot -e "grant all on *.* to 'zabbix'@'localhost' identified by 'zabbix';"      編輯zabbix-server配置文件,配置DBUser,DBPassword,然后重啟zabbix-server。

 [root@localhost ~]## vim /etc/zabbix/zabbix_server.confDBUser=zabbixDBPassword=zabbix [root@localhost ~]# /etc/init.d/zabbix-server restartShutting down Zabbix server:                              [失敗]Starting Zabbix server:                                    [確定] [root@localhost ~]# netstat -lnp|grep zabbixtcp        0      0 0.0.0.0:10050              0.0.0.0:*                  LISTEN      1691/zabbix_agentdtcp        0      0 0.0.0.0:10051              0.0.0.0:*                  LISTEN      2078/zabbix_servertcp        0      0 :::10050                    :::*                        LISTEN      1691/zabbix_agentdtcp        0      0 :::10051                    :::*                        LISTEN      2078/zabbix_server 網(wǎng)頁安裝zabbix

      瀏覽器訪問 http://ip/zabbix,默認(rèn)會(huì)有“It is not safe to rely on the system's timezone settings”這樣的警告信息,根據(jù)其中提示,需要 vim /etc/php.ini 設(shè)置 date.timezone="Asia/Shanghai",重啟apache后刷新就沒有了,點(diǎn)next。
wKiom1d6YZmhbi8sAAEaQMOgHrc357.png
wKiom1d6YZmhbi8sAAEaQMOgHrc357.png

        它會(huì)提示一些參數(shù)不合適:
wKiom1d6YaSjHNZSAAE9AbFOECk682.png

        編輯配置文件 /etc/php.ini,修改對應(yīng)的項(xiàng)目,然后點(diǎn)擊retry。
 [root@localhost ~]# vim /etc/php.inipost_max_size = 16Mmax_execution_time = 300max_input_time = 300 [root@localhost ~]# service httpd restart停止 httpd:                                              [確定]正在啟動(dòng) httpd:httpd: Could not reliably determine the server's fully qualified domain name, using 0.0.0.133 for ServerName                                                          [確定]

wKiom1d6YaezHg3hAAEpUswH7xg707.png

        然后接著輸入mysql的信息,首先測試一下,不通過則需要調(diào)試,通過則下一步。
wKioL1d6Ya7iwZIEAAKLdhIurpk263.png
        前兩項(xiàng)保持默認(rèn),其中zabbix-server的port可以用netstat -lnp|grep zabbix查看,Name是可以自定義的,可以寫zabbix所在服務(wù)器的主機(jī)名(這個(gè)名字會(huì)在web界面上顯示,建議寫的比較有意義一些) ,下面就是一路next到finish。
wKiom1d6YbCTX9NAAADldJQk7hE944.png
wKioL1d6YbGiJG-WAAECGsu7exs425.png
wKioL1d6YbTAIDSYAADQ4e3D3p4897.png

        下面即進(jìn)入登錄界面,默認(rèn)管理員賬號(hào)為 admin,密碼為 zabbix。
wKiom1d6YbeimUPnAAEjIrnRVQo831.png
wKioL1d6Yb6iX-5rAAFgBwCVKi4685.png

登陸后如果提示zabbix server is running 值為no的話,需要將server服務(wù)器的selinux、iptables關(guān)掉,具體操作方式如下:

關(guān)閉SELinux的方法:
修改/etc/selinux/config文件中的SELINUX="" 為 disabled ,然后重啟。
如果不想重啟系統(tǒng),使用命令setenforce 0
注:
setenforce 1 設(shè)置SELinux 成為enforcing模式
setenforce 0 設(shè)置SELinux 成為permissive模式
在lilo或者grub的啟動(dòng)參數(shù)中增加:selinux=0,也可以關(guān)閉selinux
關(guān)閉iptables的方法:
service iptables stop
chkconfig iptables off

 

配置zabbix相關(guān)服務(wù)開機(jī)自動(dòng)重啟:
安裝完成后服務(wù)器重啟,進(jìn)程均沒有自動(dòng)啟動(dòng),需要配置開機(jī)自動(dòng)重啟。
 chkconfig --add zabbix_server
chkconfig --add zabbix-agent
chkconfig --add httpd
chkconfig --add mysqld
chkconfig --level 345 zabbix-server on

chkconfig --level 345 zabbix-agent on
chkconfig --level 345 mysqld on
 chkconfig --level 345 httpd on
啟動(dòng)后zabbix服務(wù)端的日志放在/var/log/zabbixsrv/zabbix_server.log中,如果啟動(dòng)過程中有任何問題可以查看這個(gè)日志
啟動(dòng)后如果還提示zabbix server is running,查看zabbix的日志有out of memory的錯(cuò)誤提示,需要修改/etc/zabbix_server.conf,修改為如下所示的配置。主要是修改CacheSize的值,根據(jù)機(jī)器性能修改為100M即可。
LogFile=/var/log/zabbixsrv/zabbix_server.log
LogFileSize=0
PidFile=/var/run/zabbixsrv/zabbix_server.pid
DBName=zabbix
DBUser=zabbix
 DBPassword=zabbix
DBSocket=/var/lib/mysql/mysql.sock
 StartVMwareCollectors=5
 VMwareFrequency=60
VMwareCacheSize=2000M
CacheSize=100M
AlertScriptsPath=/var/lib/zabbixsrv/alertscripts
ExternalScripts=/var/lib/zabbixsrv/externalscripts
TmpDir=/var/lib/zabbixsrv/t

如何漢化
zabbix2.2.11發(fā)現(xiàn)不能漢化,本人覺得還是不漢化好,想要漢化修改一下,如下:
1、 服務(wù)端/usr/share/zabbix/include/locales.inc.php文件
2、修改 locales.inc.php內(nèi)容為:'zh_CN' => array('name' => _('Chinese (zh_CN)'),        'display' => true),
      默認(rèn)是false,所以不顯示Chinese(zh_CN)。保存退出。
3、在web端,按下圖設(shè)置即可配置為中文模式


標(biāo)題名稱:Zabbix2.2服務(wù)端安裝
轉(zhuǎn)載來于:http://www.5511xx.com/article/dpshgej.html