Skip to content

Instantly share code, notes, and snippets.

@sagish
Last active December 26, 2015 02:39
Show Gist options
  • Save sagish/7080450 to your computer and use it in GitHub Desktop.
Save sagish/7080450 to your computer and use it in GitHub Desktop.
Node & MySQL Linux installation
# general
yum update
# mysql
yum install mysql mysql-server mysql-libs mysql-server
mysql_secure_installation
# git and node
yum install gcc-c++ make
yum install openssl-devel
yum install git
# github
git config --global user.name "username"
git config --global user.email "githubemail"
cd ~/.ssh
ssh-keygen -t rsa -C "githubemail"
cat id_rsa.pub # copy to github SSH keys (\n after EOF)
# node
git clone git://github.com/joyent/node.git
cd node
./configure
make
make install
# append :/usr/local/bin to "Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin" in /etc/sudoers
# npm
git clone https://github.com/isaacs/npm.git
cd npm
make install
# node version manager
git install -g n
n 0.10.21 # or later
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment