安装Ubuntu14TLS Server
http://www.ubuntu.com/download/server
安装tokumx
https://www.percona.com/doc/percona-tokumx/installation_from_packages.html
1
2
3
4
5
6
7
8
9
10
| $ sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 1C4CBDCDCD2EFD2A
$ echo "deb http://repo.percona.com/apt "$(lsb_release -sc)" main" | sudo tee /etc/apt/sources.list.d/percona.list
$ echo "deb-src http://repo.percona.com/apt "$(lsb_release -sc)" main" | sudo tee -a /etc/apt/sources.list.d/percona.list
$ sudo apt-get update
$ sudo apt-get install tokumx-enterprise
|
- To control the mongod data server, use service:
1
2
3
| $ sudo service tokumx start
$ sudo service tokumx restart
$ sudo service tokumx stop
|
- To enable Percona TokuMX on boot, use chkconfig:
1
2
| $ sudo chkconfig tokumx on
$ sudo chkconfig tokumx off
|
安装redis
1
2
3
| sudo add-apt-repository -y ppa:rwky/redis
sudo apt-get update
sudo apt-get install -y redis-server
|
安装elasticsearch
1
2
3
4
| sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
java -version
|
1
2
3
| wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/2.3.4/elasticsearch-2.3.4.deb
sudo dpkg -ielasticsearch-2.3.4.deb
sudo vim /etc/elasticsearch/elasticsearch.yml
|
https://github.com/medcl/elasticsearch-analysis-ik
1
2
3
4
5
6
7
8
9
10
11
| sudo apt-get install git
git clone https://github.com/medcl/elasticsearch-analysis-ik
cd elasticsearch-analysis-ik
sudo apt-get install maven
mvn compile
mvn package
su root
cp target/releases/elasticsearch-analysis-ik-1.5.0.zip /usr/share/elasticsearch/plugins/ik/
cd /usr/share/elasticsearch/plugins/ik/
unzip elasticsearch-analysis-ik-1.5.0.zip
|
elasticearch的配置文件在 /etc/elasticsearch下
拷贝dict files
1
2
3
| cd /home/guowei/elasticsearch-analysis-ik/config
cp ik /etc/elasticsearch/ -r
service elasticsearch restart
|
http://mobz.github.io/elasticsearch-head/
1
2
3
| cd /user/share/
elasticsearch/bin/plugin install mobz/elasticsearch-head
|
访问路径 http://localhost:9200/_plugin/head/
1
2
3
| cd /user/share/
elasticsearch/bin/plugin install lmenezes/elasticsearch-kopf
|
访问路径 http://localhost:9200/_plugin/ kopf/
安装nginx
1
2
| sudo apt-get update
sudo apt-get install nginx
|
安装kibana
es2.0 用这个包https://www.elastic.co/downloads/past-releases/kibana-4-2.2
步骤见
https://www.unixmen.com/install-kibana-ubuntu-14-04/
https://www.elastic.co/guide/en/marvel/2.0/installing-marvel.html#installing-marvel