Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dan Lecocq
committed
Feb 16, 2014
1 parent
c8589c1
commit abd025d
Showing
2 changed files
with
22 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#! /usr/bin/env bash | ||
|
||
# Download and install the NSQ binaries | ||
export NSQ_DIST="nsq-${NSQ_VERSION}.linux-$(go env GOARCH).go1.2" | ||
wget "https://s3.amazonaws.com/bitly-downloads/nsq/${NSQ_DIST}.tar.gz" | ||
tar xf "${NSQ_DIST}.tar.gz" | ||
( | ||
cd "${NSQ_DIST}" | ||
sudo cp bin/* /usr/local/bin/ | ||
) | ||
|
||
# Start nsqlookupd and disown it | ||
nsqlookupd > /dev/null 2> /dev/null & | ||
disown | ||
|
||
# And an instance of nsqd | ||
nsqd --lookupd-tcp-address=127.0.0.1:4160 > /dev/null 2> /dev/null & | ||
disown |