中文字幕理论片,69视频免费在线观看,亚洲成人app,国产1级毛片,刘涛最大尺度戏视频,欧美亚洲美女视频,2021韩国美女仙女屋vip视频

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費(fèi)電子書(shū)等14項(xiàng)超值服

開(kāi)通VIP
CentOS 7上搭建Zabbix4.0

zabbix介紹

Zabbix 是一個(gè)基于 WEB 界面的提供分布式系統(tǒng)監(jiān)視以及網(wǎng)絡(luò)監(jiān)視功能的企業(yè)級(jí)的開(kāi)源解決方案。它能監(jiān)視各種網(wǎng)絡(luò)參數(shù),保證服務(wù)器系統(tǒng)的安全運(yùn)營(yíng);并提供靈活的通知機(jī)制以讓系統(tǒng)管理員快速定位/解決存在的各種問(wèn)題。

zabbix軟件組成

zabbix-server: 監(jiān)控服務(wù)端

zabbix-agent: 監(jiān)控客戶端

zabbix-web: 監(jiān)控網(wǎng)站服務(wù)

php: 處理動(dòng)態(tài)請(qǐng)求

mysql: 數(shù)據(jù)庫(kù)存儲(chǔ)監(jiān)控?cái)?shù)據(jù)

zabbix: 負(fù)責(zé)收集agent信息匯總告知zabbix-server

1.關(guān)閉防火墻和selinux

[root@zabbix ~]# setenforce 0[root@zabbix ~]# sed -ri '/^SELINUX=/cSELINUX=disabled' /etc/sysconfig/selinux [root@zabbix ~]# systemctl stop firewalld ; systemctl disable firewalld

2.添加zabbix源和epel源

[root@zabbix ~]# rpm -ivh https://mirrors.tuna.tsinghua.edu.cn/zabbix/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm ##這里使用的是清華源[root@zabbix ~]# wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo ##添加epel源

3.安裝zabbix和相關(guān)服務(wù)組件

[root@zabbix ~]# wget https://mirrors.tuna.tsinghua.edu.cn/zabbix/zabbix/4.0/rhel/7/x86_64/{zabbix-server-mysql-4.0.20-1.el7.x86_64.rpm,zabbix-web-4.0.22-1.el7.noarch.rpm} ##把這兩個(gè)包先拿下來(lái),因?yàn)榘惭b的時(shí)候網(wǎng)絡(luò)問(wèn)題會(huì)出現(xiàn)安裝超時(shí)[root@zabbix ~]# yum install -y httpd php zabbix-server-mysql-4.0.20-1.el7.x86_64.rpm zabbix-web-mysql ###安裝zabbix的服務(wù)程序和web程序[root@zabbix ~]# yum install -y mariadb-server ##安裝數(shù)據(jù)庫(kù)服務(wù)

4.修改zabbix配置文件

[root@zabbix ~]# sed -ri.bak '/# DBPassword=/cDBPassword=zabbix' /etc/zabbix/zabbix_server.conf ##修改zabbix數(shù)據(jù)庫(kù)密碼為zabbix[root@zabbix ~]# sed -ri.bak 's/ #(.*)date.timezone.*/\1date.timezone Asia\/Shanghai/' /etc/httpd/conf.d/zabbix.conf ##修改時(shí)區(qū)為國(guó)內(nèi)

5.配置數(shù)據(jù)庫(kù)服務(wù)

[root@zabbix ~]# systemctl start mariadb #啟動(dòng)數(shù)據(jù)庫(kù)[root@zabbix ~]# mysql_secure_installation ##初始化數(shù)據(jù)庫(kù)
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we'll need the currentpassword for the root user. If you've just installed MariaDB, andyou haven't set the root password yet, the password will be blank,so you should just press enter here.
Enter current password for root (enter for none): OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MariaDBroot user without the proper authorisation.
Set root password? [Y/n] yNew password: Re-enter new password: Password updated successfully!Reloading privilege tables.. ... Success!

By default, a MariaDB installation has an anonymous user, allowing anyoneto log into MariaDB without having to have a user account created forthem. This is intended only for testing, and to make the installationgo a bit smoother. You should remove them before moving into aproduction environment.
Remove anonymous users? [Y/n] y ... Success!
Normally, root should only be allowed to connect from 'localhost'. Thisensures that someone cannot guess at the root password from the network.
Disallow root login remotely? [Y/n] y ... Success!
By default, MariaDB comes with a database named 'test' that anyone canaccess. This is also intended only for testing, and should be removedbefore moving into a production environment.
Remove test database and access to it? [Y/n] n ... skipping.
Reloading the privilege tables will ensure that all changes made so farwill take effect immediately.
Reload privilege tables now? [Y/n] y ... Success!
Cleaning up...
All done! If you've completed all of the above steps, your MariaDBinstallation should now be secure.
Thanks for using MariaDB![root@zabbix ~]# mysql -uroot -p ##登錄數(shù)據(jù)庫(kù)Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g.Your MariaDB connection id is 8Server version: 5.5.65-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin; ##創(chuàng)建zabbix數(shù)據(jù)庫(kù) Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix'; ##創(chuàng)建數(shù)據(jù)庫(kù)管理用戶Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> quitBye[root@zabbix ~]# zcat /usr/share/doc/zabbix-server-mysql-4.0.20/create.sql.gz | mysql -uzabbix -pzabbix zabbix ##將數(shù)據(jù)表寫(xiě)入到zabbix庫(kù)中

6.啟動(dòng)zabbix和相關(guān)服務(wù)

[root@zabbix ~]# systemctl start zabbix-server.service httpd mariadb.service[root@zabbix ~]# systemctl enable zabbix-server.service httpd mariadb.serviceCreated symlink from /etc/systemd/system/multi-user.target.wants/zabbix-server.service to /usr/lib/systemd/system/zabbix-server.service.Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.

7.登錄zabbix的web界面,進(jìn)行初始化

初始化地址http://172.16.210.56/zabbix/setup.php

點(diǎn)擊Next step

檢查php的一些變量條件,如果沒(méi)有報(bào)錯(cuò)的信息可以點(diǎn)擊next step

填寫(xiě)好對(duì)應(yīng)的數(shù)據(jù)庫(kù)密碼和賬號(hào)點(diǎn)擊Next step

設(shè)置主機(jī)和端口還有監(jiān)控頁(yè)面名字,然后點(diǎn)擊Next step

確認(rèn)信息.然后點(diǎn)擊Next step

點(diǎn)擊Finish

賬號(hào)Admin 密碼zabbix ,再點(diǎn)Sign in

登錄成功。

8.更改zabbix界面語(yǔ)言為中文

原文鏈接:https://www.jianshu.com/p/7d798423ec58
作者:南南宮問(wèn)天
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開(kāi)APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
zabbix入門(二):zabbix的安裝與配置
zabbix配置
centos7用yum搭建LAMP環(huán)境
云計(jì)算學(xué)習(xí)路線教程大綱課件:部署網(wǎng)校系統(tǒng) edusoho
centos7手把手教你搭建zabbix監(jiān)控
安裝mysql數(shù)據(jù)庫(kù)及問(wèn)題解決方法
更多類似文章 >>
生活服務(wù)
熱點(diǎn)新聞
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服