- create a new redis .conf file
$ cp /etc/redis.conf /etc/redis-xxx.conf
- edit /etc/redis-xxx.conf, illustrated as below
...
#!/bin/bash | |
### USAGE | |
### | |
### ./ElasticSearch.sh 1.7 will install Elasticsearch 1.7 | |
### ./ElasticSearch.sh will fail because no version was specified (exit code 1) | |
### | |
### CLI options Contributed by @janpieper | |
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch |
$ cp /etc/redis.conf /etc/redis-xxx.conf
...
Install ElasticSearch and Java
1 wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.1.deb
2 sudo dpkg -i elasticsearch-1.0.1.deb
3 sudo update-rc.d elasticsearch defaults 95 10
4 sudo add-apt-repository ppa:webupd8team/java
5 sudo apt-get update
6 sudo apt-get install oracle-java7-installer
7 java -version
# coding: utf-8 | |
# copyright 2014 tshirtman | |
# distributed under the GPL licence | |
from __future__ import division | |
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.properties import ListProperty, NumericProperty, StringProperty | |
from kivy.clock import Clock |