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

杭州笕桥网站建设推广方案如何写

杭州笕桥网站建设,推广方案如何写,如何登入 WORDPRESS 后台,网站设计是用ps做图吗在Ubuntu 23.04上安装Elasticsearch的过程可能与之前版本类似,以下是基于最新稳定版Elasticsearch的一般安装步骤: 准备工作: 确保系统已更新至最新版本: sudo apt update && sudo apt upgrade安装Java Development Kit (…

在Ubuntu 23.04上安装Elasticsearch的过程可能与之前版本类似,以下是基于最新稳定版Elasticsearch的一般安装步骤:

  1. 准备工作:

    • 确保系统已更新至最新版本:

      sudo apt update && sudo apt upgrade
      
    • 安装Java Development Kit (JDK)。Elasticsearch至少需要Java 11。可以通过官方apt仓库安装Adoptium OpenJDK(或者其他你喜欢的Java版本):

      sudo apt install openjdk-11-jdk-headless
      
  2. 下载并解压Elasticsearch:
    访问Elasticsearch官方网站(https://www.elastic.co/cn/downloads/past-releases#elasticsearch)下载适合Ubuntu的tar.gz包。假设你下载了名为elasticsearch-8.12.0.tar.gz的压缩包,将其解压到适当的目录,例如 /usr/local

    wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.12.0-linux-x86_64.tar.gz
    sudo mkdir -p /usr/local/elasticsearch
    sudo tar -xzvf elasticsearch-8.12.0-linux-x86_64.tar.gz -C /usr/local/elasticsearch --strip-components=1
    
  3. 创建Elasticsearch系统用户和组:

    sudo groupadd elastic
    sudo useradd -r -g elastic -s /bin/bash elastic
    sudo chown -R elastic:elastic /usr/local/elasticsearch
    
  4. 配置Elasticsearch:

    • 编辑 /usr/local/elasticsearch/config/elasticsearch.yml 文件,根据您的环境调整配置。关键配置可能包括:
cluster.name: my-application
node.name: node-1
network.host: 0.0.0.0
xpack.security.enabled: false
path.data: /usr/local/elasticsearch/data
path.logs: /usr/local/elasticsearch/logsxpack.security.enrollment.enabled: false
xpack.security.http.ssl:enabled: falsekeystore.path: certs/http.p12
xpack.security.transport.ssl:enabled: falseverification_mode: certificatekeystore.path: certs/transport.p12truststore.path: certs/transport.p12
 - `cluster.name`: 设置集群名称。- `node.name`: 设置节点名称。- `network.host`: 指定节点监听的主机地址(如 `localhost` 或特定IP)。- `path.data`: 数据存储路径。- `path.logs`: 日志文件存放路径。- 可能需要开启或配置安全功能(如X-Pack Security)。

编辑配置文件 /etc/security/limits.conf 或者在目录 /etc/security/limits.d/ 创建配置文件 (e.g., /etc/security/limits.d/elasticsearch.conf) 添加正面的内容

elasticsearch soft nofile 65536
elasticsearch hard nofile 65536

执行以下命令

sudo systemctl daemon-reload

在目录 /etc/sysctl.d/创建文件/etc/sysctl.d/elasticsearch.conf,添加以下内容:

vm.max_map_count=262144

执行以下命令

sudo sysctl --system
  1. 启动Elasticsearch:

    sudo su elastic
    cd /usr/local/elasticsearch
    ./bin/elasticsearch
    

    如果你希望以守护进程方式运行Elasticsearch并设置为开机启动,你需要创建一个systemd服务单元文件,例如 /etc/systemd/system/elasticsearch.service,并定义正确的启动参数。

  2. 创建systemd服务(可选):
    创建一个elasticsearch.service文件,并添加相应的启动脚本。以下是一个基本示例:

    [Unit]
    Description=Elasticsearch Service
    Wants=network-online.target
    After=network-online.target[Service]
    Type=notify
    User=elastic
    Group=elastic
    ExecStart=/usr/local/elasticsearch/bin/elasticsearch
    Restart=on-failure
    LimitMEMLOCK=infinity
    LimitNOFILE=65536[Install]
    WantedBy=multi-user.target
    

    然后启用并启动服务:

    sudo systemctl daemon-reload
    sudo systemctl enable elasticsearch.service
    sudo systemctl start elasticsearch.service
    

在生产环境中,还应考虑对Elasticsearch进行安全配置,例如设置密码认证、禁用HTTP访问等。

http://www.hkea.cn/news/533585/

相关文章:

  • 网站编辑的工作职能有哪些活动营销案例100例
  • 小程序招商加盟平台我是seo关键词
  • wordpress 发帖机镇江抖音seo
  • 网站建设的小结可以发外链的论坛有哪些
  • 网站正常打开速度网店营销与推广策划方案
  • 义乌 网站制作进入百度app
  • 做外围网站赌球红树林seo基础入门免费教程
  • 绿色风格网站seo排名赚钱
  • 南宁企业免费建站百度推广营销怎么做
  • 建立个人网站的成本短视频seo营销系统
  • 深圳公司名称大全网站结构优化的内容和方法
  • 安康市代驾公司上海网站关键词排名优化报价
  • 怎么在网站上建设投票统计在线培训系统app
  • 泰州网站建设哪家好网站seo的主要优化内容
  • 洛卡博网站谁做的seo权重查询
  • 东莞网络科技公司有哪些山东网站seo
  • 网站建设需要学什么网站模板购买
  • 用html做的游戏网站关键词推广效果分析
  • 做影视网站引流正规推广平台有哪些
  • 免费下载简历模板北京seo排名厂家
  • 西昌市做网站的百度搜索排名靠前
  • 办公室装修实景拍摄图重庆seo俱乐部联系方式
  • 网站建设阶段推广计划书怎么写
  • 代做毕业设计网站现成注册网站平台
  • 电商网站开发工作计划企业网络营销策划
  • 用wps网站栏目做树形结构图网页设计代码案例
  • 多媒体网站设计开发是指什么每日关键词搜索排行
  • 网站 seo正规网络公司关键词排名优化
  • 建立网站赚多少钱seo收录排名
  • 怎么做app网站seo学习网站