2012-01-25 14:49:26 -05:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
rm -r -f example2
|
|
|
|
rm -r -f example3
|
|
|
|
rm -r -f example4
|
|
|
|
rm -r -f example5
|
|
|
|
rm -r -f example6
|
|
|
|
|
|
|
|
rm -r -f dist
|
|
|
|
rm -r -f build
|
|
|
|
rm -r -f example/solr/zoo_data
|
2012-02-11 18:14:55 -05:00
|
|
|
rm -r -f example/solr/data
|
2012-01-25 14:49:26 -05:00
|
|
|
rm -f example/example.log
|
|
|
|
|
|
|
|
ant example dist
|
|
|
|
|
|
|
|
cp -r -f example example2
|
|
|
|
cp -r -f example example3
|
|
|
|
cp -r -f example example4
|
|
|
|
cp -r -f example example5
|
|
|
|
cp -r -f example example6
|
|
|
|
|
2012-02-16 17:02:39 -05:00
|
|
|
java -classpath lib/*:dist/*:build/lucene-libs/* org.apache.solr.cloud.ZkController 127.0.0.1:9983 8983 example/solr/conf conf1 example/solr
|
2012-01-25 14:49:26 -05:00
|
|
|
|
|
|
|
cd example
|
|
|
|
java -DzkRun -DnumShards=2 -DSTOP.PORT=7983 -DSTOP.KEY=key -jar start.jar 1>example.log 2>&1 &
|
|
|
|
|
|
|
|
cd ../example2
|
2012-02-09 22:40:31 -05:00
|
|
|
java -Djetty.port=7574 -DzkHost=localhost:9983 -DSTOP.PORT=6574 -DSTOP.KEY=key -jar start.jar 1>example2.log 2>&1 &
|
2012-01-25 14:49:26 -05:00
|
|
|
|
|
|
|
cd ../example3
|
2012-02-09 22:40:31 -05:00
|
|
|
java -Djetty.port=7575 -DzkHost=localhost:9983 -DSTOP.PORT=6575 -DSTOP.KEY=key -jar start.jar 1>example3.log 2>&1 &
|
2012-01-25 14:49:26 -05:00
|
|
|
|
|
|
|
cd ../example4
|
2012-02-09 22:40:31 -05:00
|
|
|
java -Djetty.port=7576 -DzkHost=localhost:9983 -DSTOP.PORT=6576 -DSTOP.KEY=key -jar start.jar 1>example4.log 2>&1 &
|
2012-01-25 14:49:26 -05:00
|
|
|
|
|
|
|
cd ../example5
|
2012-02-09 22:40:31 -05:00
|
|
|
java -Djetty.port=7577 -DzkHost=localhost:9983 -DSTOP.PORT=6577 -DSTOP.KEY=key -jar start.jar 1>example5.log 2>&1 &
|
2012-01-25 14:49:26 -05:00
|
|
|
|
|
|
|
cd ../example6
|
2012-02-09 22:40:31 -05:00
|
|
|
java -Djetty.port=7578 -DzkHost=localhost:9983 -DSTOP.PORT=6578 -DSTOP.KEY=key -jar start.jar 1>example6.log 2>&1 &
|