当前位置:网站首页>日志收集分析平台搭建-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系统内核里一个跟安全相关的子系统 规则非常繁琐 一般日常工作里都是关闭的
边栏推荐
- 学生如何申请免费IDEA
- 芯片的翻新和造假,人被坑麻了
- How can red star Macalline design cloud upgrade the traditional home furnishing industry in ten minutes to produce film and television level interior design effects
- FTP实验及概述
- Home VR panoramic display production to improve customer transformation
- Use of feign (Part 2)
- Attack and defense world -- easy_ web
- 【个人总结】2022.7.24周结
- 动态内存管理及柔性数组
- Motor control column summary
猜你喜欢
随机推荐
Day011 一维数组
解决Vagrant报错b:48:in `join‘: incompatible character encodings: GBK and UTF-8 (Encoding::Compatib
520送什么?DIY一个高颜值RGB时钟,女生看了都想要
FTP experiment and overview
选电子工程被劝退,真的没前景了?
leetcode-aboutString
Usage and common problems of SIP softphone registered with SIP account
Nn.moudle module - details of creating neural network structure
Mba-day29 arithmetic - preliminary understanding of absolute value
SQL injection
Mongodb common commands
Attack and defense world -- easy_ web
Benji Bananas 开启第二季边玩边赚奖励活动,支持使用多张 Benji 通行证!
代码审计之百家cms
IVR在voip电话系统的应用与价值
平衡二叉树(AVL) ~
数仓搭建-DIM层
Embedded general learning route arrangement
ERROR: Could not open requirements file: [Errno 2] No such file or directory: ‘requirments.txt’
开发项目事半功倍,一款开源的stm32驱动库大集合








