安裝
所選環境 centos7 zabbix4.0
1:在centos上安裝lamp環境。
l即Linux,a即阿帕奇,m即MySQL,p即php。
2:安裝zabbix4.0
因為是最新版本,且在Linux環境下,獲取安裝包源方便,直接選擇了在線安裝。下面提供為官方給出的安裝方法(
1、獲取安裝包,進行yum改變。
# rpm -Uvh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
# yum clean all
2、安裝zabbix服務
# yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent
3、 創建zabbix資料庫
# mysql -uroot -p
password
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'password';
mysql> quit;
Import initial schema and data. You will be prompted to enter your newly created password.
# zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
4.修改組態檔
Edit file /etc/zabbix/zabbix_server.conf
DBPassword=password
5. 修改時區
Edit file /etc/httpd/conf.d/zabbix.conf
# php_value date.timezone 改為亞洲/上海
6. 開啟服務
Start Zabbix server and agent processes and make it start at system boot:
# systemctl restart zabbix-server zabbix-agent httpd
# systemctl enable zabbix-server zabbix-agent httpd
Now your Zabbix server is up and running!
7、開啟web配置
Connect to your newly installed Zabbix frontend:
瀏覽器處輸入http://server_ip_or_name/zabbix
8、默認用戶
名稱:Admin
密碼:zabbix
好嘞,開始愉快的使用
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/88205.html
標籤:網絡維護與管理
上一篇:概率統計19——中心極限定理
