Created
June 12, 2013 09:10
-
-
Save roodkcab/5763899 to your computer and use it in GitHub Desktop.
dagger_alarm_install.sh
This file contains hidden or 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
| #/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
还需要安装mysql , memcached