Install elasticsearch-HQ under linux

Because elasticsearch-HQ needs python support, you must install python first. Note here that the version requires 3.4+

I downloaded and installed anaconda here (because anaconda integrates many python packages)

Download the address of anaconda

https://mirrors.ustc.edu.cn/anaconda/pkgs/free/linux-64/

I downloaded anaconda3-5.1.0 here

After uploading to the server, run: bash Anaconda3-5.1.0-Linux-x86_64.sh

During installation, you will be asked to specify the installation path. If you do not specify it, it will have a default installation path.

Just choose yes for the last time.

After the installation is complete, write the command: source ~/.bashrc

You can update the configuration file to make anaconda take effect

There is also a mirror to be added here, just add the mirror of Tsinghua University and the command is as follows;

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config --set show_channel_urls yes


After adding the image, create a Python virtual environment: conda create -n env_name (the name of the virtual environment, you can start it yourself) python=3.6.4 (python version)

Then enter the command to make the image take effect: source activate env_name

Next, download the elasticsearch-HQ package and upload it to the server

Enter the command to crimp the compressed package: unzip elasticsearch-HQ-master.zip
Go to the root directory: cd elasticsearch-HQ-master

Enter the command: pip install -r requirements.txt   

Launcher : python application.py 

Enter the url to access the program, the default port is 5000


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324817918&siteId=291194637