Ubuntu安装OpenSearch

安装OpenSearch

安装必要依赖包

sudo apt-get update && sudo apt-get -y install lsb-release ca-certificates curl gnupg2

导入公共GPG密钥。此密钥用于验证APT存储库是否已签名。

curl -o- https://artifacts.opensearch.org/publickeys/opensearch.pgp | sudo gpg --dearmor --batch --yes -o /usr/share/keyrings/opensearch-keyring

为OpenSearch创建APT存储库

echo "deb [signed-by=/usr/share/keyrings/opensearch-keyring] https://artifacts.opensearch.org/releases/bundle/opensearch/2.x/apt stable main" | sudo tee /etc/apt/sources.list.d/opensearch-2.x.list

验证存储库是否已成功创建

sudo apt-get update

添加存储库信息后,列出OpenSearch的所有可用版本

root@Vivobook:~# sudo apt list -a opensearch
Listing... Done
opensearch/stable 2.16.0 amd64
opensearch/stable 2.15.0 amd64
opensearch/stable 2.14.0 amd64
opensearch/stable 2.13.0 amd64
opensearch/stable 2.12.0 amd64
opensearch/stable 2.11.1 amd64
opensearch/stable 2.11.0 amd64
opensearch/stable 2.10.0 amd64
opensearch/stable 2.9.0 amd64
opensearch/stable 2.8.0 amd64
opensearch/stable 2.7.0 amd64
opensearch/stable 2.6.0 amd64
opensearch/stable 2.5.0 amd64

选择要安装的OpenSearch版本

除非另有说明,否则将安装最新可用版本的OpenSearch。

OpenSearch 2.12之后的版本安装,必须要定义管理员(admin)密码

sudo env OPENSEARCH_INITIAL_ADMIN_PASSWORD=<custom-admin-password> apt-get install opensearch

OpenSearch 2.12以及之前的版本安装命令

sudo apt-get install opensearch

安装特定版本的OpenSearch

OpenSearch 2.12之后的版本

sudo env OPENSEARCH_INITIAL_ADMIN_PASSWORD=<custom-admin-password> apt-get install opensearch=2.15.0

OpenSearch 2.12以及之前的版

sudo apt-get install opensearch=2.15.0

在安装过程中,安装程序将向您显示GPG密钥指纹。请验证信息是否与以下内容匹配

Fingerprint: c5b7 4989 65ef d1c2 924b a9d5 39d3 1987 9310 d3fc

完成后,设置开机自启动OpenSearch

sudo systemctl enable opensearch

启动OpenSearch

sudo systemctl start opensearch

验证OpenSearch是否正确启动

sudo systemctl status opensearch

测试OpenSearch

向服务器发送请求以验证OpenSearch是否正在运行

向端口9200发送请求

curl -X GET https://localhost:9200 -u 'admin:<custom-admin-password>' --insecure

响应:

{
    "name":"hostname",
    "cluster_name":"opensearch",
    "cluster_uuid":"QqgpHCbnSRKcPAizqjvoOw",
    "version":{
       "distribution":"opensearch",
       "number":<version>,
       "build_type":<build-type>,
       "build_hash":<build-hash>,
       "build_date":<build-date>,
       "build_snapshot":false,
       "lucene_version":<lucene-version>,
       "minimum_wire_compatibility_version":"7.10.0",
       "minimum_index_compatibility_version":"7.0.0"
    },
    "tagline":"The OpenSearch Project: https://opensearch.org/"
 }

查询插件端点

curl -X GET https://localhost:9200/_cat/plugins?v -u 'admin:<custom-admin-password>' --insecure

响应:

name          component                            version
 hostname      opensearch-alerting                  2.15.0
 hostname      opensearch-anomaly-detection         2.15.0
 hostname      opensearch-asynchronous-search       2.15.0
 hostname      opensearch-cross-cluster-replication 2.15.0
 hostname      opensearch-geospatial                2.15.0
 hostname      opensearch-index-management          2.15.0
 hostname      opensearch-job-scheduler             2.15.0
 hostname      opensearch-knn                       2.15.0
 hostname      opensearch-ml                        2.15.0
 hostname      opensearch-neural-search             2.15.0
 hostname      opensearch-notifications             2.15.0
 hostname      opensearch-notifications-core        2.15.0
 hostname      opensearch-observability             2.15.0
 hostname      opensearch-performance-analyzer      2.15.0
 hostname      opensearch-reports-scheduler         2.15.0
 hostname      opensearch-security                  2.15.0
 hostname      opensearch-security-analytics        2.15.0
 hostname      opensearch-sql                       2.15.0

Centos安装OpenSearch请参考Centos安装OpenSearch

  • 5
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
您可以按照以下步骤在Linux Ubuntu安装OpenVINO: 1. 首先,您需要下载OpenVINO的安装包。您可以在\[1\]中找到下载链接。 2. 根据您的Ubuntu版本选择相应的命令。如果您使用的是Ubuntu 20.04,请运行以下命令: ``` curl -L https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.3/linux/l_openvino_toolkit_ubuntu20_2022.3.0.9052.9752fafe8eb_x86_64.tgz --output openvino_2022.3.0.tgz tar -xf openvino_2022.3.0.tgz sudo mv l_openvino_toolkit_ubuntu20_2022.3.0.9052.9752fafe8eb_x86_64 /opt/intel/openvino_2022.3.0 ``` 3. 如果您使用的是Ubuntu 18.04,请运行以下命令: ``` curl -L https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.3/linux/l_openvino_toolkit_ubuntu18_2022.3.0.9052.9752fafe8eb_x86_64.tgz --output openvino_2022.3.0.tgz tar -xf openvino_2022.3.0.tgz sudo mv l_openvino_toolkit_ubuntu18_2022.3.0.9052.9752fafe8eb_x86_64 /opt/intel/openvino_2022.3.0 ``` 这些命令将下载OpenVINO安装包并解压缩到/opt/intel/openvino_2022.3.0目录中。 请注意,上述命令中的版本号可能会随着OpenVINO的更新而变化。确保您使用的是最新版本的命令。 希望这可以帮助您成功安装OpenVINO在Linux Ubuntu上。如果您有任何其他问题,请随时提问。 #### 引用[.reference_title] - *1* [【Openvino01】Ubuntu安装inter的openvino2022.1以及遇到的各种错误解决](https://blog.csdn.net/Alex_81D/article/details/131326207)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* *3* [OpenVINO 2022.3之三:Linux安装OpenVINO](https://blog.csdn.net/shanglianlm/article/details/130508624)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

大叔是90后大叔

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值