Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to elasticsearch 0.20.1 and memcache 2.2.7
- Loading branch information
Showing
2 changed files
with
20 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/bin/bash | ||
|
||
# Build and install PHP Memcache extension | ||
wget http://pecl.php.net/get/memcache-2.2.6.tgz | ||
tar -xzf memcache-2.2.6.tgz | ||
sh -c "cd memcache-2.2.6 && phpize && ./configure --enable-memcache && make && sudo make install" | ||
wget http://pecl.php.net/get/memcache-2.2.7.tgz | ||
tar -xzf memcache-2.2.7.tgz | ||
sh -c "cd memcache-2.2.7 && phpize && ./configure --enable-memcache && make && sudo make install" | ||
echo "extension=memcache.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,28 @@ | ||
#!/bin/bash | ||
|
||
wget http://cloud.github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.11.tar.gz | ||
tar -xzf elasticsearch-0.19.11.tar.gz | ||
sed 's/# index.number_of_shards: 1/index.number_of_shards: 2/' elasticsearch-0.19.11/config/elasticsearch.yml > elasticsearch-0.19.11/config/elasticsearch.yml | ||
sed 's/# index.number_of_replicas: 0/index.number_of_replicas: 0/' elasticsearch-0.19.11/config/elasticsearch.yml > elasticsearch-0.19.11/config/elasticsearch.yml | ||
sed 's/# discovery.zen.ping.multicast.enabled: false/discovery.zen.ping.multicast.enabled: false/' elasticsearch-0.19.11/config/elasticsearch.yml > elasticsearch-0.19.11/config/elasticsearch.yml | ||
elasticsearch-0.19.11/bin/plugin -install elasticsearch/elasticsearch-mapper-attachments/1.6.0 | ||
wget http://cloud.github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.20.1.tar.gz | ||
tar -xzf elasticsearch-0.20.1.tar.gz | ||
sed 's/# index.number_of_shards: 1/index.number_of_shards: 2/' elasticsearch-0.20.1/config/elasticsearch.yml > elasticsearch-0.20.1/config/elasticsearch.yml | ||
sed 's/# index.number_of_replicas: 0/index.number_of_replicas: 0/' elasticsearch-0.20.1/config/elasticsearch.yml > elasticsearch-0.20.1/config/elasticsearch.yml | ||
sed 's/# discovery.zen.ping.multicast.enabled: false/discovery.zen.ping.multicast.enabled: false/' elasticsearch-0.20.1/config/elasticsearch.yml > elasticsearch-0.20.1/config/elasticsearch.yml | ||
elasticsearch-0.20.1/bin/plugin -install elasticsearch/elasticsearch-mapper-attachments/1.6.0 | ||
|
||
export JAVA_OPTS="-server" | ||
elasticsearch-0.19.11/bin/elasticsearch & | ||
elasticsearch-0.20.1/bin/elasticsearch & | ||
elasticsearch-0.20.1/bin/elasticsearch & | ||
|
||
echo "Waiting until elasticsearch is ready on port 9200" | ||
echo "Waiting until elasticsearch node 1 is ready on port 9200" | ||
while [[ -z `curl -s 'http://localhost:9200' ` ]] | ||
do | ||
echo -n "." | ||
sleep 2s | ||
done | ||
|
||
echo "elasticsearch is up" | ||
echo "Waiting until elasticsearch node 2 is ready on port 9201" | ||
while [[ -z `curl -s 'http://localhost:9201' ` ]] | ||
do | ||
echo -n "." | ||
sleep 2s | ||
done | ||
|
||
echo "two elasticsearch nodes are up" |