10.0.0.61 zabbix-server
hostnamectl set-hostname zabbix-server && bash
sed -ri 's#(IPADDR=)(.*)#\110.0.0.61#g' /etc/sysconfig/network-scripts/ifcfg-eth0
systemctl restart network && ip add
cat >>/etc/hosts<
wget http://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
rpm -ivh zabbix-release-4.0-1.el7.noarch.rpm
yum install zabbix-server-MySQL zabbix-web-mysql -y
rpm -qa |grep zabbix
yum install mariadb-server -y
systemctl start mariadb
systemctl enable mariadb
mysql_secure_installation
回車
n
4次y
create database zabbix character set utf8 collate utf8_bin;
grant all privileges on zabbix.* to zabbix@localhost identified by '123456';
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p123456 zabbix
#檢查zabbix庫是否導(dǎo)入成功
mysql -uroot zabbix -e 'show tables;'
vi /etc/zabbix/zabbix_server.conf
91行:DBHost=localhost
100行:DBName=zabbix
116行:DBUser=zabbix
124行:DBPassword=123456
#啟動zabbix-server
systemctl start zabbix-server
systemctl enable zabbix-server
#檢查
netstat -lntup | grep 10051
vi /etc/httpd/conf.d/zabbix.conf #<==修改時區(qū)為上海
20行:php_value date.timezone Asia/Shanghai
systemctl start httpd
systemctl enable httpd
瀏覽器訪問:http://10.0.0.61/zabbix
登錄的賬號密碼:
Admin
zabbix
后期修改zabbix數(shù)據(jù)庫密碼的時候,需要修改的配置文件:
/etc/zabbix/web/zabbix.conf.php
為五峰等地區(qū)用戶提供了全套網(wǎng)頁設(shè)計制作服務(wù),及五峰網(wǎng)站建設(shè)行業(yè)解決方案。主營業(yè)務(wù)為做網(wǎng)站、網(wǎng)站建設(shè)、五峰網(wǎng)站設(shè)計,以傳統(tǒng)方式定制建設(shè)網(wǎng)站,并提供域名空間備案等一條龍服務(wù),秉承以專業(yè)、用心的態(tài)度為用戶提供真誠的服務(wù)。我們深信只要達(dá)到每一位用戶的要求,就會得到認(rèn)可,從而選擇與我們長期合作。這樣,我們也可以走得更遠(yuǎn)!