https://iojs.org/dist/v1.6.3/iojs-v1.6.3-linux-x64.tar.xz
tar xf archive.tar.xz
tar xf archive.tar.gz
tar xf archive.tar
mv iojs-v1.6.3-linux-x64 iojs
1 当前session
EXPORT IO_JS=<PATH to iojs>
EXPORT PATH=$PATH:$IO_JS/bin
2 在profile中设置PATH
sudo vim /etc/profile
EXPORT IO_JS=<PATH to iojs>
EXPORT PATH=$PATH:$IO_JS/bin
3 在当前用户的profile中设置PATH
vim ~/.bash_profile
4 刷新bash
source ~/.bash_profile
or
. ~/.bash_profile
sudo adduser <username> sudo
sudo usermod -a -G sudo <username>
su <username>