Pilosa文档翻译(一)导言、安装

导言

原文地址
Pilosa是一个开源的分布式索引(搜索引擎)。它主要设计用于高速和可横向扩展的场景。若是您拥有数十亿个对象数据,这些对象数据可能具备数百万个属性,而且您想探索这些关系,Pilosa能够为您提供帮助。linux

  • 哪一种属性最多见?
  • 哪些对象具备这些特定属性?
  • 哪些属性组常常出如今一块儿?
    Pilosa旨在实时应答这些类型的查询,适用具备于高速率数据流的使用,或为用户界面提供支持。
    一旦安装了Pilosa,入门指南将向您展现与Pilosa交互的基础知识,并为您提供更深刻探索的一些指导。

安装

原文地址
Pilosa目前适用于MacOS和Linux。git

安装在MacOS

MacOS上安装Pilosa的四种方法。github

使用HomeBrew

一、更新您的HomeBrewgolang

brew update

二、安装Pilosadocker

brew install pilosa

三、查看是否安装成功shell

pilosa

若是有以下形式输出,表示安装成功macos

Pilosa is a fast index to turbocharge your database.

This binary contains Pilosa itself, as well as common
tools for administering pilosa, importing/exporting data,
backing up, and more. Complete documentation is available
at https://www.pilosa.com/docs/.

Version: v1.1.0
Build Time: 2018-05-14T22:14:01+0000

Usage:
  pilosa [command]

Available Commands:
  check           Do a consistency check on a pilosa data file.
  config          Print the current configuration.
  export          Export data from pilosa.
  generate-config Print the default configuration.
  help            Help about any command
  import          Bulk load data into pilosa.
  inspect         Get stats on a pilosa data file.
  server          Run Pilosa.

Flags:
  -c, --config string   Configuration file to read from.
  -h, --help            help for pilosa

Use "pilosa [command] --help" for more information about a command.

下载二进制文件

一、下载最近发行版本压缩包文件bash

curl -L -O https://github.com/pilosa/pilosa/releases/download/v1.1.0/pilosa-v1.1.0-darwin-amd64.tar.gz

其余版本可从 Github 上的Releases页面中下载。服务器

二、解压

tar xfz pilosa-v1.1.0-darwin-amd64.tar.gz

三、将二进制文件移动到PATH中,这样就能够在shell任何位置运行:

cp -i pilosa-v1.1.0-darwin-amd64/pilosa /usr/local/bin

四、查看是否安装成功

pilosa

安装成功输出与上面brew安装的输出同样。

从源码构建

有关从源构建的高级说明,请查看咱们的贡献者指南

一、安装依赖

  • Go请按照说明设置$GOPATH$PATH环境变量
  • Git

二、克隆仓库

mkdir -p ${GOPATH}/src/github.com/pilosa && cd $_
git clone https://github.com/pilosa/pilosa.git

三、构建Pilosa仓库

cd $GOPATH/src/github.com/pilosa/pilosa
make install-build-deps
make install

四、查看是否安装成功

pilosa

安装成功输出与上面brew安装的输出同样。

使用Docker

一、安装Mac版Docker
二、确认 Docker 守护进程正在后台运行

docker version

若是您看不到列出的服务器,请启动 Docker 应用程序。

三、从 Docker Hub 中提取官方 Pilosa 镜像

docker pull pilosa/pilosa:latest

四、确保已成功安装 Pilosa

docker run --rm pilosa/pilosa:latest help

安装在Linux

在 Linux 上安装 Pilosa 的三种方法:下载二进制(推荐)、从源构建或使用 Docker。

下载二进制文件

一、要安装最新版本的Pilosa,请下载最新版本

curl -L -O https://github.com/pilosa/pilosa/releases/download/v1.1.0/pilosa-v1.1.0-linux-amd64.tar.gz

注意:这里假定您正在使用amd64兼容体系结构。其余版本能够从Github上Release页面下载。

二、解压

tar xfz pilosa-v1.1.0-linux-amd64.tar.gz

三、将二进制程序拷贝到您的PATH路径中,以便您能够shell从任何位置运行pilosa

cp -i pilosa-v1.1.0-linux-amd64/pilosa /usr/local/bin

四、确保已成功安装Pilosa

pilosa

若是您看的相似的输出,则表示安装成功:

Pilosa is a fast index to turbocharge your database.

This binary contains Pilosa itself, as well as common
tools for administering pilosa, importing/exporting data,
backing up, and more. Complete documentation is available
at https://www.pilosa.com/docs/.

Version: v1.1.0
Build Time: 2018-05-14T22:14:01+0000

Usage:
  pilosa [command]

Available Commands:
  check           Do a consistency check on a pilosa data file.
  config          Print the current configuration.
  export          Export data from pilosa.
  generate-config Print the default configuration.
  help            Help about any command
  import          Bulk load data into pilosa.
  inspect         Get stats on a pilosa data file.
  server          Run Pilosa.

Flags:
  -c, --config string   Configuration file to read from.
  -h, --help            help for pilosa

Use "pilosa [command] --help" for more information about a command.

从源码构建

有关从源构建的高级说明,请查看咱们的贡献者指南

一、安装依赖

  • Go请按照说明设置$GOPATH$PATH环境变量
  • Git

二、克隆仓库

mkdir -p ${GOPATH}/src/github.com/pilosa && cd $_
git clone https://github.com/pilosa/pilosa.git

三、构建Pilosa仓库

cd $GOPATH/src/github.com/pilosa/pilosa
make install-build-deps
make install

四、查看是否安装成功

pilosa

安装成功输出与上面二进制安装的输出同样。

使用Docker

一、安装Docker
二、确认Docker 守护进程正在后台运行

docker version

若是您看不到列出的服务器,请启动 Docker 应用程序。

三、从 Docker Hub 中提取官方 Pilosa 镜像

docker pull pilosa/pilosa:latest

四、确保已成功安装 Pilosa

docker run --rm pilosa/pilosa:latest help

接下来是什么?

请访问入门指南,建立您的第一个Pilosa索引(Index)。

相关文章
相关标签/搜索