Skip to content

Commit

Permalink
Add ElasticSearch install script (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Apr 8, 2016
1 parent f7c1aec commit 99dc376
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,10 @@ curl -sSL https://raw.githubusercontent.com/huacnlee/init.d/master/install_mongo
```bash
curl -sSL https://raw.githubusercontent.com/huacnlee/init.d/master/install_redis | bash
```

### Install ElasticSearch

```bash
curl -sSL https://raw.githubusercontent.com/huacnlee/init.d/master/elasticsearch | bash
sudo service elasticsearch status
```
8 changes: 8 additions & 0 deletions elasticsearch
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
echo "-------------------- ElasticSearch Install ... -------------------"
wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb http://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list
sudo apt-get update
sudo apt-get install -y elasticsearch openjdk-7-jre-headless
sudo service elasticsearch start
sudo service elasticsearch status
echo "--------------- ElasticSearch Install Successed -----------------"
3 changes: 3 additions & 0 deletions wercker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ build:
- script:
name: Nginx
code: ./install_nginx
- script:
name: ElasticSearch
code: ./elasticsearch

0 comments on commit 99dc376

Please sign in to comment.