Last active
December 27, 2015 01:49
-
-
Save hagix9/7247663 to your computer and use it in GitHub Desktop.
CentOS6.4にredis node.js epressとか
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
rpm -ivh http://ftp.riken.jp/Linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
rpm -ivh http://rpms.famillecollet.com/enterprise/6/remi/x86_64/remi-release-6.4-1.el6.remi.noarch.rpm | |
yum install redis git -y | |
chkconfig redis on | |
service redis start | |
curl https://raw.github.com/creationix/nvm/master/install.sh | sh | |
source ~/.nvm/nvm.sh | |
#node.jsの最新版をインストール | |
nvm install $(nvm ls-remote | tail -1 | awk '{print $1}') | |
#expressをインストール | |
npm install -g express | |
#express監視ツールをインストール | |
npm install -g supervisor | |
express apr01 | |
cd apr01 | |
npm install | |
npm ln supervisor | |
supervisor app.js | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment