当前位置: 首页 > news >正文

公司网站建设哪里好建湖做网站哪家好

公司网站建设哪里好,建湖做网站哪家好,怎么制作网站一键更新,产品开发设计目录 资源列表 基础环境 关闭防护墙 关闭内核安全机制 修改主机名 添加hosts映射 一、部署elasticsearch 修改limit限制 部署elasticsearch 修改配置文件 单节点 集群(3台节点集群为例) 启动 二、部署filebeat 部署filebeat 添加配置文件 启动 三、部署kiban…目录 资源列表 基础环境 关闭防护墙 关闭内核安全机制 修改主机名 添加hosts映射 一、部署elasticsearch 修改limit限制 部署elasticsearch 修改配置文件 单节点 集群(3台节点集群为例) 启动 二、部署filebeat 部署filebeat 添加配置文件 启动 三、部署kibana 单节点kibana 部署kibana 修改配置文件 启动 多节点kibana 之前给大家分享的ELK今天分享的是一个更加轻量级的日志收集EFK主要就是有filebeat代替了logstashfilebeat采用go语言编写占用资源少更加轻量级。本文中涉及到的软件包如果有需要可以评论区找我要无偿提供。 资源列表 操作系统配置主机名IPCentOS7.3.16112C4Ges01192.168.207.131CentOS7.3.16112C4Gkibana192.168.207.165CentOS7.3.16112C4Gfilebeat192.168.207.166 基础环境 关闭防护墙 systemctl stop firewalld systemctl disable firewalld 关闭内核安全机制 sed -i s/.*SELINUX.*/SELINUXdisabled/g /etc/selinux/config reboot 修改主机名 hostnamectl set-hostname es01 hostnamectl set-hostname kibana hostnamectl set-hostname filebeat 添加hosts映射 cat /etc/hosts EOF 192.168.207.131 es01 192.168.207.165 kibana 192.168.207.166 filebeat EOF 一、部署elasticsearch 修改limit限制 cat /etc/security/limits.d/es.conf EOF * soft nproc 655360 * hard nproc 655360 * soft nofile 655360 * hard nofile 655360 EOF ​ cat /etc/sysctl.conf EOF vm.max_map_count655360 EOF sysctl -p 部署elasticsearch mkdir -p /data/elasticsearch tar zxvf elasticsearch-7.14.0-linux-x86_64.tar.gz -C /data/elasticsearch 修改配置文件 单节点 mkdir /data/elasticsearch/{data,logs}[rootes01 elasticsearch-7.14.0]# grep -v ^# /data/elasticsearch/elasticsearch-7.14.0/config/elasticsearch.yml cluster.name: my-application node.name: es01 path.data: /data/elasticsearch/data path.logs: /data/elasticsearch/logs bootstrap.memory_lock: false network.host: 0.0.0.0 http.port: 9200 cluster.initial_master_nodes: [es01] 集群(3台节点集群为例) 需要准备3台机器主机名分别是es01es02es03 [rootes01 ~]# grep -v ^# /data/elasticsearch/elasticsearch-7.14.0/config/elasticsearch.yml cluster.name: es node.name: es01 path.data: /data/elasticsearch/data path.logs: /data/elasticsearch/logs bootstrap.memory_lock: false network.host: 0.0.0.0 http.port: 9200 discovery.seed_hosts: [es01,es02,es03] cluster.initial_master_nodes: [es01,es02,es03] node.master: true node.data: true http.cors.enabled: true http.cors.allow-origin: * ​ [rootes02 ~]# grep -v ^# /data/elasticsearch/elasticsearch-7.14.0/config/elasticsearch.yml cluster.name: es node.name: es02 path.data: /data/elasticsearch/data path.logs: /data/elasticsearch/logs bootstrap.memory_lock: false network.host: 0.0.0.0 http.port: 9200 discovery.seed_hosts: [es01,es02,es03] cluster.initial_master_nodes: [es02, es01, es03] node.master: true node.data: true http.cors.enabled: true http.cors.allow-origin: * ​ ​ [rootes03 ~]# grep -v ^# /data/elasticsearch/elasticsearch-7.14.0/config/elasticsearch.yml cluster.name: es node.name: es03 path.data: /data/elasticsearch/data path.logs: /data/elasticsearch/logs bootstrap.memory_lock: false network.host: 0.0.0.0 http.port: 9200 discovery.seed_hosts: [es01,es02,es03] cluster.initial_master_nodes: [es01, es02, es03] node.master: true node.data: true http.cors.enabled: true http.cors.allow-origin: * 启动 useradd es chown -R es:es /data/ su - es /data/elasticsearch/elasticsearch-7.14.0/bin/elasticsearch -d 二、部署filebeat 部署filebeat mkdir -p /data/filebeat tar zxvf filebeat-7.14.0-linux-x86_64.tar.gz -C /data/filebeat/ 添加配置文件 [rootfilebeat filebeat-7.14.0-linux-x86_64]# cat filebeat.yml filebeat.inputs: - type: logenabled: truepaths:- /var/log/messages # 定义模板的相关信息 # 不允许自动生成模板 setup.template.enabled: false # 生成index模板的名称 setup.template.name: filebeat-test # 生成index模板的格式 setup.template.pattern: filebeat-test-* # 7版本自定义ES的索引需要把ilm设置为false setup.ilm.enabled: false output.elasticsearch:hosts: [192.168.207.131:9200]index: filebeat-test-%{yyyy.MM.dd} [rootfilebeat filebeat-7.14.0-linux-x86_64]# cat filebeat.yml filebeat.inputs: - type: logenabled: truepaths:- /var/log/httpd/access_logfields:source: access - type: logenabled: truepaths:- /var/log/httpd/error_logfields:source: error setup.template.enabled: false setup.template.name: httpd setup.template.pattern: httpd-* setup.ilm.enabled: false output.elasticsearch:hosts: [192.168.207.131:9200]index: httpd-%{[fields.source]}-*indices:- index: httpd-access-%{yyyy.MM.dd}when.equals:fields.source: access- index: httpd-error-%{yyyy.MM.dd}when.equals:fields.source: error 启动 /data/filebeat/filebeat-7.14.0-linux-x86_64/filebeat -e -c filebeat.yml 三、部署kibana 单节点kibana 部署kibana mkdir -p /data/kibana tar zxvf kibana-7.14.0-linux-x86_64.tar.gz -C /data/kibana/ 修改配置文件 grep -v ^# /data/kibana/kibana-7.14.0-linux-x86_64/config/kibana.yml | grep -v ^$ server.port: 5601 server.host: 0.0.0.0 elasticsearch.hosts: [http://192.168.207.131:9200] kibana.index: .kibana 启动 useradd kibana chown -R kibana:kibana /data su - kibana /data/kibana/kibana-7.14.0-linux-x86_64/bin/kibana 多节点kibana 每个节点配置相同 [rootes01 ~]# grep -v ^# /data/kibana/kibana-7.14.0-linux-x86_64/config/kibana.yml | grep -v ^$ server.port: 5601 server.host: 0.0.0.0 server.name: your-hostname elasticsearch.hosts: [http://es01:9200, http://es02:9200, http://es03:9200] kibana.index: .kibana
http://www.yingshimen.cn/news/6948/

相关文章:

  • 明薇通网站建设价格班级网站怎么做
  • 成都商务网站建设徐州市城乡建设局网站6
  • 做导购网站多少钱网站建设带宽多少合适
  • 网站域名收费济南网站怎么做
  • 西安网站制作工程师网页制作教程用什么软件
  • 装修设计公司网站江门官网建站公司
  • 网站建设网站建设哪里有网站建设第三方
  • asp网站制作wordpress 快站
  • 崇明建设机械网站网络营销策划案ppt
  • 洞头区网站建设收费网站推广营销策略
  • 雄县网站建设公司做哪种类型网站赚钱
  • 黄石下陆区建设局网站贵港有网站建设的公司吗
  • 网站建设中网页模板河南建筑信息一体
  • 网站,商城,app 建设建设属于哪里
  • 阿里云服务器管理搜索引擎优化技巧
  • 就是做网站的.....网站在哪里
  • 建筑素材网站小程序推广员好做吗
  • 做预算兼职的网站建网站的英文
  • asp.net做网站源代码网络规划设计师试题
  • 新作的网站怎么做百度推送网站建设管理职责
  • 在长沙做网站需要多少钱网页广告调词平台多少钱
  • 花生壳如何做网站wordpress老文章
  • 网站设计项目网址之家
  • 网络营销资讯网站数字媒体艺术
  • 南京网站网站建设学校asp.net网站开发源码
  • 滨州网站建设公司网站建设职位
  • 用手机建网站的步骤湛江网红打卡点
  • 网站域名到期什么意思wordpress添加登入
  • 中国最大的网站排名页面调用不了wordpress
  • 南宁网站建设公司哪家专业工作室网站制作