Ubuntu默认会在80端口启动Apache
$ sudo netstat -tlnp
停止Apache
$ sudo /etc/init.d/apache2 stop
安装ruby-rvm
$ sudo apt-get install ruby-rvm
要用rvmsudo,sudo不行
$ rvmsudo rails server -p 80