Skip to content

Instantly share code, notes, and snippets.

@roodkcab
Created June 12, 2013 09:10
Show Gist options
  • Select an option

  • Save roodkcab/5763899 to your computer and use it in GitHub Desktop.

Select an option

Save roodkcab/5763899 to your computer and use it in GitHub Desktop.
dagger_alarm_install.sh
#/bin/bash
if ! which git >/dev/null; then
sudo yum install git
fi
htname="alarm"
git clone https://github.com/wxkingstar/dagger.git $htname
cd $htname
rm -rf ./InstallDaggerEnvironment.sh ./app ./js ./css ./images ./system ./model ./install ./index.php ./config
git ls-files --deleted -z | git update-index --assume-unchanged -z --stdin
git submodule add https://github.com/shuoshi/dagger_alarm.git ./alarm
cd alarm
ln -s ../libs ./
yum install libuuid-devel.x86_64
wget http://redis.googlecode.com/files/redis-2.6.13.tar.gz
tar -xvf redis-2.6.13.tar.gz
cd redis-2.6.13
./configure --prefix=/usr/local
make -j4 && make install
cd ../
rm -rf redis-2.6.13*
wget http://download.zeromq.org/zeromq-2.2.0.tar.gz
tar -xvf zeromq-2.2.0.tar.gz
cd zeromq-2.2.0
./configure --prefix=/usr/local
make -j4 && make install
cd ../
rm -rf zeromq-2.2.0*
wget http://nodejs.org/dist/v0.10.10/node-v0.10.10.tar.gz
tar -xvf node-v0.10.10.tar.gz
cd node-v0.10.10
./configure --prefix=/usr/local
make -j4 && make install
cd ../
rm -rf node-v0.10.10*
easy_install pyzmq
easy_install redis
cd native/zmq
npm install zmq
npm install socket.io
npm install redis
/usr/local/bin/redis-server
@wxkingstar
Copy link

还需要安装mysql , memcached

@wxkingstar
Copy link

还需要安装mysql , memcached

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment