Skip to content

Commit

Permalink
fix run command
Browse files Browse the repository at this point in the history
  • Loading branch information
0nlyoung7 committed Dec 20, 2016
1 parent 859395c commit 0130a67
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,25 +77,25 @@ If you have already been installed, please skip these preparation steps.
### Install zookeeper
Install and run zookeeper with reference [Zookeeper installation](http://zookeeper.apache.org/doc/trunk/zookeeperStarted.html).

The following is the code to install and run the zookeeper3.4.6.
The following is the code to install and run the zookeeper3.4.9.

cd $HOME/xpush
wget http://apache.mirror.cdnetworks.com/zookeeper/stable/zookeeper-3.4.6.tar.gz
tar xvf zookeeper-3.4.6.tar.gz
cp zookeeper-3.4.6/conf/zoo_sample.cfg zookeeper-3.4.6/conf/zoo.cfg
cd zookeeper-3.4.6/bin
wget http://apache.mirror.cdnetworks.com/zookeeper/stable/zookeeper-3.4.9.tar.gz
tar xvf zookeeper-3.4.9.tar.gz
cp zookeeper-3.4.9/conf/zoo_sample.cfg zookeeper-3.4.9/conf/zoo.cfg
cd zookeeper-3.4.9/bin
./zkServer.sh start


### Install redis
Install and run redis with reference [Redis installation](http://zookeeper.apache.org/doc/trunk/zookeeperStarted.html).

The follow is the code to install and run redis 3.0.3.
The follow is the code to install and run redis 3.2.6.

cd $HOME/xpush
wget http://download.redis.io/releases/redis-3.2.3.tar.gz
tar xzf redis-3.2.3.tar.gz
cd redis-3.2.3
wget http://download.redis.io/releases/redis-3.2.6.tar.gz
tar xzf redis-3.2.6.tar.gz
cd redis-3.2.6
make
src/redis-server
(daemon : $ nohup src/redis-server & )
Expand Down
4 changes: 2 additions & 2 deletions bin/start
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ if(argv.channel) options['type'] = 'channel';
// start server
console.log('\n ##### Options #####\n',options,'\n\n');

var checkPort = function (callback) {
var port = options['port'];
var checkPort = function (callback, port) {
var port = port || options['port'];

var tester = net.createServer()
.once('error', function (err) {
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "xpush",
"description": "Web based Realtime Communication Platform",
"version": "0.1.4",
"version": "0.1.5",
"keywords": [
"push",
"websocket",
Expand Down Expand Up @@ -36,7 +36,8 @@
"restify": "^4.1.1",
"shortid": "^2.2.6",
"socket.io": "^1.5.1",
"winston": "^2.2.0"
"winston": "^2.2.0",
"optimist": "^0.6.1",
},
"devDependencies": {
"faker": "^3.0.1",
Expand Down

0 comments on commit 0130a67

Please sign in to comment.