dapper 安装_在Ubuntu Dapper或Edgy上安装Ruby on Rails

dapper 安装

dapper 安装

Ruby on Rails is a popular new framework for developing web applications. Since Ruby on Rails includes a built-in web server for development purposes, there is no need to install a separate web server.

Ruby on Rails是用于开发Web应用程序的流行新框架。 由于Ruby on Rails包含用于开发目的的内置Web服务器,因此无需安装单独的Web服务器。

First you will want to make sure that you’ve enabled the universe repository.

首先,您将要确保已启用Universe资源库。

Open up a terminal window, and type in the following commands:

打开一个终端窗口,然后输入以下命令:

sudo apt-get install ruby ri rdoc sudo wget http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz tar -xvzf rubygems-0.9.0.tgz cd rubygems-0.9.0 sudo ruby setup.rb sudo gem install rails –include-dependencies

sudo apt-get install ruby​​ ri rdoc sudo wget http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz tar -xvzf ruby​​gems-0.9.0.tgz cd ruby​​gems-0.9.0 sudo ruby setup.rb sudo gem安装导轨–include-dependencies

To test out the installation, you can create a test rails project:

要测试安装,可以创建一个测试轨道项目:

$ rails testapp

$ rails testapp

This will create a test application. Change directory into that directory and launch the Ruby on Rails development server (WEBrick)

这将创建一个测试应用程序。 将目录更改为该目录,然后启动Ruby on Rails开发服务器(WEBrick)

$ ./script/server

$ ./脚本/服务器

Example:

例:

/testapp$ ./script/server=> Booting WEBrick…=> Rails application started on http://0.0.0.0:3000=> Ctrl-C to shutdown server; call with –help for options[2006-12-07 05:28:37] INFO WEBrick 1.3.1[2006-12-07 05:28:37] INFO ruby 1.8.4 (2005-12-24) [i486-linux][2006-12-07 05:28:37] INFO WEBrick::HTTPServer#start: pid=6687 port=3000

/ testapp $ ./script/server=>正在启动WEBrick…=> Rails应用程序从http://0.0.0.0:3000 => Ctrl-C启动以关闭服务器; 使用–help进行选项调用[2006-12-07 05:28:37] INFO WEBrick 1.3.1 [2006-12-07 05:28:37] INFO ruby​​ 1.8.4(2005-12-24)[i486- linux] [2006-12-07 05:28:37]信息WEBrick :: HTTPServer#start:pid = 6687 port = 3000

You’ll notice that the server is listening on port 3000. Open up a browser, and go to http://localhost:3000

您会注意到服务器正在侦听端口3000。打开浏览器,然后转到http:// localhost:3000。

翻译自: https://www.howtogeek.com/howto/ubuntu/installing-ruby-on-rails-on-ubuntu-dapper-or-edgy/

dapper 安装

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值