在80端口运行Rails server

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

posted @ 2012-09-09 19:21  scige  阅读(631)  评论(0编辑  收藏  举报