下載yum配置
成都創(chuàng)新互聯(lián)公司是一家集網(wǎng)站建設(shè),張北企業(yè)網(wǎng)站建設(shè),張北品牌網(wǎng)站建設(shè),網(wǎng)站定制,張北網(wǎng)站建設(shè)報價,網(wǎng)絡(luò)營銷,網(wǎng)絡(luò)優(yōu)化,張北網(wǎng)站推廣為一體的創(chuàng)新建站企業(yè),幫助傳統(tǒng)企業(yè)提升企業(yè)形象加強(qiáng)企業(yè)競爭力。可充分滿足這一群體相比中小企業(yè)更為豐富、高端、多元的互聯(lián)網(wǎng)需求。同時我們時刻保持專業(yè)、時尚、前沿,時刻以成就客戶成長自我,堅持不斷學(xué)習(xí)、思考、沉淀、凈化自己,讓我們?yōu)楦嗟钠髽I(yè)打造出實用型網(wǎng)站。rpm -ivh http://mirrors.aliyun.com/zabbix/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
安裝依賴包
[root@localhost conf]# yum install zabbix-server zabbix-web zabbix-server-mysql zabbix-web-mysql mariadb-server mariadb -y
注:如果Server端也需要監(jiān)控則需要安裝zabbix-agent
修改PHP時區(qū)配置
建議命令改,也可以手動改 直接命令改,簡單,高效 [root@localhost conf]# vim /etc/httpd/conf.d/zabbix.conf [root@localhost conf]# sed -i 's@# php_value date.timezone Europe/Riga@php_value date.timezone Asia/Shanghai@g' /etc/httpd/conf.d/zabbix.conf[root@localhost conf]#
[root@localhost conf]# systemctl start mariadb
創(chuàng)建zabbix所用數(shù)據(jù)庫
MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;Query OK, 1 row affected (0.00 sec) MariaDB [(none)]> grant all on zabbix.* to zabbix@'localhost' identified by '123456';Query OK, 0 rows affected (0.00 sec)
導(dǎo)入數(shù)據(jù)庫
[root@localhost conf]# cd /usr/share/doc/zabbix-server-mysql-3.0.9/[root@localhost zabbix-server-mysql-3.0.9]# zcat create.sql.gz |mysql -uzabbix -p123456 zabbix[root@localhost zabbix-server-mysql-3.0.9]#
修改配置文件
DBHost=localhost #數(shù)據(jù)庫所在主機(jī)IP
DBName=zabbix #數(shù)據(jù)庫名
DBUser=zabbix #數(shù)據(jù)庫用戶
DBPassword=*******#數(shù)據(jù)庫密碼
更改完畢后,重啟zabbix服務(wù)
因為之前實驗環(huán)境,先關(guān)閉Nginx服務(wù),在啟動Apache服務(wù)
[root@localhost zabbix-server-mysql-3.0.9]# /usr/local/nginx/sbin/nginx -s stop
[root@localhost zabbix-server-mysql-3.0.9]# systemctl start httpd
[root@localhost zabbix-server-mysql-3.0.9]# systemctl start zabbix-server
Welcome Check of pre-requisites Configure DB connection Zabbix server details Pre-installation summary Install Pre-installation summary
Please check configuration parameters. If all is correct, press "Next step" button, or "Back" button to change configuration parameters.
Database type MySQL Database server 172.16.1.200 Database port default Database name zabbix Database user zabbix Database password ******
Zabbix server localhost Zabbix server port 10051 Zabbix server name zabbix-server
[root@localhost zabbix-server-mysql-3.0.9]# vim /etc/zabbix/zabbix_agentd.conf
重啟服務(wù)
[root@localhost zabbix-server-mysql-3.0.9]# systemctl start zabbix-agent
查看端口
[root@localhost zabbix-server-mysql-3.0.9]# ss -lstp |egrep -e "10050|10051"LISTEN 0 128 *:10050 *:* users:(("zabbix_agentd",46212,4),("zabbix_agentd",46211,4),("zabbix_agentd",46210,4),("zabbix_agentd",46209,4),("zabbix_agentd",46208,4),("zabbix_agentd",46207,4)) LISTEN 0 128 *:10051 *:* users:(("zabbix_server",45965,5),("zabbix_server",45964,5),("zabbix_server",45963,5),("zabbix_server",45949,5),("zabbix_server",45948,5),("zabbix_server",45947,5),("zabbix_server",45946,5),("zabbix_server",45945,5),("zabbix_server",45944,5),("zabbix_server",45943,5),("zabbix_server",45942,5),("zabbix_server",45941,5),("zabbix_server",45940,5),("zabbix_server",45939,5),("zabbix_server",45938,5),("zabbix_server",45937,5),("zabbix_server",45936,5),("zabbix_server",45935,5),("zabbix_server",45934,5),("zabbix_server",45933,5),("zabbix_server",45932,5),("zabbix_server",45931,5),("zabbix_server",45930,5),("zabbix_server",45929,5),("zabbix_server",45928,5),("zabbix_server",45927,5),("zabbix_server",45922,5)) LISTEN 0 128 :::10050 :::* users:(("zabbix_agentd",46212,5),("zabbix_agentd",46211,5),("zabbix_agentd",46210,5),("zabbix_agentd",46209,5),("zabbix_agentd",46208,5),("zabbix_agentd",46207,5)) LISTEN 0 128 :::10051 :::* users:(("zabbix_server",45965,6),("zabbix_server",45964,6),("zabbix_server",45963,6),("zabbix_server",45949,6),("zabbix_server",45948,6),("zabbix_server",45947,6),("zabbix_server",45946,6),("zabbix_server",45945,6),("zabbix_server",45944,6),("zabbix_server",45943,6),("zabbix_server",45942,6),("zabbix_server",45941,6),("zabbix_server",45940,6),("zabbix_server",45939,6),("zabbix_server",45938,6),("zabbix_server",45937,6),("zabbix_server",45936,6),("zabbix_server",45935,6),("zabbix_server",45934,6),("zabbix_server",45933,6),("zabbix_server",45932,6),("zabbix_server",45931,6),("zabbix_server",45930,6),("zabbix_server",45929,6),("zabbix_server",45928,6),("zabbix_server",45927,6),("zabbix_server",45922,6)) [root@localhost zabbix-server-mysql-3.0.9]#
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點(diǎn)與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。
網(wǎng)站欄目:zabbix3.0之server端部署詳解-創(chuàng)新互聯(lián)
標(biāo)題網(wǎng)址:http://jinyejixie.com/article34/dcpjse.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站改版、小程序開發(fā)、網(wǎng)站制作、定制開發(fā)、云服務(wù)器、建站公司
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容