Zabbix的简单使用
0. 卸載mariadb 安裝mysql
? ? 方法 rpm -qa |grep mariadb?
? ? 然后 rpm -e --nodeps mariadb*****
? ? 安裝mysql
? ??# 下載mysql源安裝包
shell> wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm
# 安裝mysql源
?shell> yum localinstall mysql57-community-release-el7-8.noarch.rpm
安裝mysql
yum install mysql-community-server啟動(dòng)mysql
shell> systemctl start mysqld 設(shè)置開機(jī)自動(dòng)啟動(dòng) systemctl enable mysqld
查找默認(rèn)的mysql臨時(shí)密碼:
grep 'temporary password' /var/log/mysqld.log
修改為新密碼:
ALTER USER 'root'@'localhost' IDENTIFIED BY 'Test6530!';
默認(rèn)配置文件路徑:?
配置文件:/etc/my.cnf?
日志文件:/var/log//var/log/mysqld.log?
服務(wù)啟動(dòng)腳本:/usr/lib/systemd/system/mysqld.service?
socket文件:/var/run/mysqld/mysqld.pid
原作者目錄:
https://www.linuxidc.com/Linux/2016-09/135288.htm
?
1. 通過官網(wǎng)查找安裝攻略
地址:https://www.zabbix.com/download
內(nèi)容:
a. Install Repository with MySQL database
# rpm -i http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpmb. Install Zabbix server, frontend, agent
# yum install zabbix-server-mysql zabbix-web-mysql zabbix-agentc. Create initial database
# mysql -uroot -ppassword
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'Test6530!';
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 zabbixd. Configure the database for Zabbix server
DBPassword=passworde. Start Zabbix server and agent processes
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
f. Configure PHP for Zabbix frontend
Edit file /etc/httpd/conf.d/zabbix.conf, uncomment and set the right timezone for you.# php_value date.timezone Europe/RigaNow your Zabbix server is up and running!
Configure Zabbix fronten
一開始出現(xiàn) php的連接錯(cuò)誤
因?yàn)榘惭b順序的問題 重新安裝一下??php-mysql-5.4.16-43.el7_4.1.x86_64
127 rpm -qa|grep php
128 rpm -qa|grep mysql
129 rpm -e php-mysql-5.4.16-43.el7_4.1.x86_64
130 rpm -e --nodeps php-mysql-5.4.16-43.el7_4.1.x86_64
131 yum install php-mysql-5.4.16-43.el7_4.1.x86_64
即可
然后web端進(jìn)行安裝.?
基本上可用了
?
4. 添加ESXi主機(jī)
?
轉(zhuǎn)載于:https://www.cnblogs.com/jinanxiaolaohu/p/8999575.html
總結(jié)
以上是生活随笔為你收集整理的Zabbix的简单使用的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ADT操作实例
- 下一篇: LVS入门篇(五)之LVS+Keepal