当前位置:网站首页>日志收集分析平台搭建-1-环境准备
日志收集分析平台搭建-1-环境准备
2022-07-26 05:44:00 【hahyyy】
1、准备好3台虚拟机搭建nginx和kafka集群
2、配置好静态ip地址
备注:服务:NetworkManager 或者 network 只运行一个
启动/停止/重启:systemctl start/stop/restart NetworkManager
systemctl管理的服务 配置文件在/usr/lib/systemd/system下,以.service结尾的配置文件
配置好dns 输入cat /etc/resolv.conf 查看是否输入以下内容

dns解析流程:
1、先找浏览器的缓存
2、再找本地hosts文件 --linux(/etc/hosts)
3、再找本地域名服务器 -- linux(/etc/resolv.conf)
3、修改主机名
vim /etc/hostname
hostname -F /etc/hostname
4、每一台机器上都写好域名解析
输入 vim /etc/hosts 在文件里加入以下三行(每台都要加三行)
ip地址1 名字1
ip地址2 名字2
ip地址3 名字3
5、安装基本软件
yum install wget lsof vim -y
6、安装时间同步服务
yum -y install chrony
systemctl enable chronyd # 设置开机自启 disable关闭开机自启
systemctl start chronyd
设置时区:
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
7、关闭防火墙
systemctl stop firewalld
systemctl disable firewalld
关闭selinux:
vim /etc/selinux/config
SELINUX=disabled
selinux关闭 需要重启机器
输入getenforce查看是否为disabled
selinux是Linux系统内核里一个跟安全相关的子系统 规则非常繁琐 一般日常工作里都是关闭的
边栏推荐
- 解决Vagrant报错b:48:in `join‘: incompatible character encodings: GBK and UTF-8 (Encoding::Compatib
- Mongodb tutorial Chapter 08 comparison operators
- MBA-day29 算术-绝对值初步认识
- Rocbossphp free open source light community system
- C language explanation series -- understanding of functions (3) formal parameters, arguments, nested calls and chain access
- SSTI payload and various bypass methods
- sdc中对cdc的处理方式
- Lightweight MCU command line interaction project, all open source
- No EGL Display 报错解决
- OD-Paper【1】:Rich feature hierarchies for accurate object detection and semantic segmentation
猜你喜欢

Redis official visualization tool, with high appearance value and powerful functions!
![[paper notes] anti packet loss joint coding for network speech steganography](/img/ca/95476b6d4b5765f5fde82cbeda577e.png)
[paper notes] anti packet loss joint coding for network speech steganography

leetcode-Array

Hack the box - Web requests module detailed Chinese tutorial

FTP experiment and overview

87. Disturb string

Mongondb API usage

Day011 one dimensional array
C language explanation series -- understanding of functions (3) formal parameters, arguments, nested calls and chain access

TZC 1283: simple sort - Comparative sort
随机推荐
Embedded general learning route arrangement
Lemon class automatic learning after all
Redis master-slave replication
三本毕业,三年嵌入式软件的心路历程
DOM操作--操作节点
Hack The Box - Web Requests Module详细讲解中文教程
Project topic selection reference
You'd better not take this kind of project!
电机控制专栏文章汇总
Hack The Box -SQL Injection Fundamentals Module详细讲解中文教程
Mongondb API usage
Redis persistence RDB
高分子物理试题库
满二叉树 / 真二叉树 / 完全二叉树 ~
MBA-day28 数的概念-练习题
How to name the project version number? Looks like cow b
【个人总结】2022.7.24周结
Home VR panoramic display production to improve customer transformation
Mongodb common commands
Attack and defense world -- easy_ web