xenforo安装Enhanced Searche及ubuntu设置

Posted by

安装JAVA和elasticsearch-rtf
sudo apt-get install openjdk-7-jre-headless

下载elasticsearch
wget -c https://github.com/medcl/elasticsearch-rtf/archive/0.90.2.tar.gz
tar zxvf 0.90.2.tar.gz
cd elasticsearch-rtf-0.90.2
sudo mv elasticsearch /usr/local/elasticsearch
sudo chmod +x /usr/local/elasticsearch/bin/service/elasticsearch
sudo /usr/local/elasticsearch/bin/service/elasticsearch install

配置:
/usr/local/elasticsearch/config/elasticsearch.yml
# cluster.name: elasticsearch
修改为
cluster.name: xf
# path.data: /path/to/data
修改为
path.data: /var/elasticsearch

#network.host: 127.0.0.1
修改为
network.host: 127.0.0.1

transport.tcp.compress: true
修改为
# transport.tcp.compress: true

# http.port: 9200
修改为
http.port: 9200

编辑/usr/local/elasticsearch/bin/service/elasticsearch.conf
找到
代码:
set.default.ES_HEAP_SIZE=1024修改为适合自己的值
1 百万帖 = 1024
2 百万帖 = 2048
3 百万帖 = 3072
以此类推

移动索引目录
cd /var
sudo mkdir elasticsearch
编辑
usr/local/elasticsearch/config/elasticsearch.yml
# path.data: /path/to/data
–>path.data: /var/elasticsearch

导入站点
重建缓存

Leave a Reply

您的电子邮箱地址不会被公开。 必填项已用 * 标注