Last active
December 31, 2015 12:08
-
-
Save JohnKim/7983803 to your computer and use it in GitHub Desktop.
init setting for Ubuntu (nPush Project)
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
# Login by root !!!!!! | |
# change root password | |
> passwd | |
# create npush user account | |
> adduser npush | |
> visudo | |
npush ALL=(ALL:ALL) ALL # add root privileges for npush user | |
# Exit and re-login !!!!!! | |
# install basic packages (tmux, nginx, git, JDK) | |
> sudo apt-get update | |
> sudo apt-get install tmux | |
> sudo apt-get install nginx | |
> sudo apt-get install git | |
> sudo apt-get install openjdk-7-jdk | |
# install node.js | |
> curl https://raw.github.com/creationix/nvm/master/install.sh | sh | |
> . ~/.profile | |
> nvm install 0.10.22 | |
> n=$(which node);n=${n%/bin/node}; chmod -R 755 $n/bin/*; sudo cp -r $n/{bin,lib,share} /usr/local | |
# install zookeeper (stable : 3.4.5) | |
> cd ~ | |
> wget http://apache.mirror.cdnetworks.com/zookeeper/zookeeper-3.4.5/zookeeper-3.4.5.tar.gz | |
> tar -xvzf ./zookeeper-3.4.5.tar.gz | |
> mv zookeeper-3.4.5 zookeeper | |
> cd zookeeper/conf | |
> cp zoo_sample.cfg zoo.cfg | |
> cd ../bin | |
> ./zkServer.sh start | |
# clone npush project from git repository | |
> git config --global user.name "John Kim" | |
> git config --global user.email "yohany@gmail.com" | |
> mkdir ~/project | |
> cd ~/project | |
> git clone https://github.com/n-push/npush.git | |
# install redis | |
> wget http://download.redis.io/redis-stable.tar.gz | |
> tar xvzf redis-stable.tar.gz | |
> cd redis-stable | |
> make |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment