原文地址
Pilosa
是一個開源的分佈式索引(搜索引擎)。它主要設計用於高速和可橫向擴展的場景。若是您擁有數十億個對象
數據,這些對象數據可能具備數百萬個屬性
,而且您想探索這些關係,Pilosa能夠爲您提供幫助。linux
Pilosa
旨在實時應答這些類型的查詢,適用具備於高速率數據流的使用,或爲用戶界面提供支持。Pilosa
,入門指南將向您展現與Pilosa
交互的基礎知識,併爲您提供更深刻探索的一些指導。原文地址
Pilosa目前適用於MacOS和Linux。git
在MacOS
上安裝Pilosa
的四種方法。github
一、更新您的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安裝的輸出同樣。
有關從源構建的高級說明,請查看咱們的貢獻者指南。
一、安裝依賴
二、克隆倉庫
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安裝的輸出同樣。
一、安裝Mac版Docker
二、確認 Docker 守護進程正在後臺運行
docker version
若是您看不到列出的服務器,請啓動 Docker 應用程序。
三、從 Docker Hub 中提取官方 Pilosa 鏡像
docker pull pilosa/pilosa:latest
四、確保已成功安裝 Pilosa
docker run --rm pilosa/pilosa:latest help
在 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.
有關從源構建的高級說明,請查看咱們的貢獻者指南。
一、安裝依賴
二、克隆倉庫
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 version
若是您看不到列出的服務器,請啓動 Docker 應用程序。
三、從 Docker Hub 中提取官方 Pilosa 鏡像
docker pull pilosa/pilosa:latest
四、確保已成功安裝 Pilosa
docker run --rm pilosa/pilosa:latest help
請訪問入門指南,建立您的第一個Pilosa索引(Index)。