centos 7 上zabbix 3.0 服務端安裝

來源:互聯網
上載者:User

標籤:user   add   res   lib   bpa   匯入   php5.6   wget   ml2   

zabbix服務端安裝

安裝完畢mysql-5.6、php5.6

mysql-5.6安裝:https://www.cnblogs.com/xzlive/p/9771642.html

 建立zabbix 使用者

# groupadd zabbix# useradd -g zabbix zabbix

1.1 下載安裝zabbix
所有版本:http://www.zabbix.com/download.php

# yum install net-snmp-devel libxml2-devel libcurl-devel // 一定先安裝依賴# cd /usr/local/src# rpm -i https://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm# wget http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-server-mysql-3.0.9-1.el7.x86_64.rpm# wget http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-agent-3.0.9-1.el7.x86_64.rpm# wget  http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-web-mysql-3.0.9-1.el7.noarch.rpm# wget  http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-web-3.0.9-1.el7.noarch.rpm

1.2 安裝Zabbix server, frontend, agent

#yum install zabbix-web-mysql-3.0.9-1.el7.noarch.rpm zabbix-web-3.0.9-1.el7.noarch.rpm#yum install zabbix-server-mysql-3.0.9-1.el7.x86_64.rpm zabbix-agent-3.0.9-1.el7.x86_64.rpm 

1.3 建立資料庫

# mysql -uroot -ppasswordmysql> create database zabbix character set utf8 collate utf8_bin;mysql> grant all privileges on zabbix.* to [email protected] identified by ‘password‘;mysql> quit;

1.4 匯入資料庫資料

# zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix

1.5 配置zabbix server的設定檔

#vi /etc/zabbix/zabbix_server.confDBPassword=password

1.6 配置php和zabbix frontend

#vi /etc/httpd/conf.d/zabbix.conf#php_value timezone Asia/Shanghai#vi /etc/php.ini#date.timezone = Asia/Shanghai

1.7 啟動服務並設定開機自動啟動

# systemctl restart zabbix-server zabbix-agent httpd# systemctl enable zabbix-server zabbix-agent httpd

 

  

 

 

centos 7 上zabbix 3.0 服務端安裝

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.