【搜索引擎1】Ubuntu通过deb方式安装ElasticSearch和Kibana
在Ubuntu系统中,您可以通过添加Elasticsearch和Kibana的官方仓库并使用apt
进行安装。以下是具体步骤:
- 为Elasticsearch添加官方APT仓库:
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
sudo apt-get install apt-transport-https
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list
- 为Kibana添加官方APT仓库:
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list
- 更新APT索引并安装Elasticsearch和Kibana:
sudo apt-get update
sudo apt-get install elasticsearch kibana
- 启动Elasticsearch和Kibana服务:
sudo systemctl start elasticsearch
sudo systemctl start kibana
- (可选)开机自启动:
sudo systemctl enable elasticsearch
sudo systemctl enable kibana
请注意,上述代码是基于Elasticsearch和Kibana的7.x版本。如果需要安装其他版本,请替换相应的版本号。此外,Elasticsearch和Kibana可能需要较多的系统资源,如内存和CPU,请确保您的系统满足最低要求。
评论已关闭