您好,登錄后才能下訂單哦!
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<<EOF
10.0.0.61 zabbix-server
EOF
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庫是否導入成功
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 #<==修改時區為上海
20行:php_value date.timezone Asia/Shanghai
systemctl start httpd
systemctl enable httpd
瀏覽器訪問:http://10.0.0.61/zabbix
登錄的賬號密碼:
Admin
zabbix
后期修改zabbix數據庫密碼的時候,需要修改的配置文件:
/etc/zabbix/web/zabbix.conf.php
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。