Ruby On Rails学习笔记(1)——安装Instant Rails

来源:互联网 发布:java开发知识体系 编辑:程序博客网 时间:2024/05/16 11:04

       Instans Rails是一个ROR的一个一站式解决方案,其中包含了Ruby、Rails、Apache和MySQL,并且所有都已经配置完成,可以直接运行。下面是在Windows XP安装和启动Instant Rails的过程。
       1、下载Instant Rails,下载地址为:http://rubyforge.org/frs/?group_id=904,当前最新的Release版本为1.7,即InstantRails-1.7-win.zip
       2、将Instant Rails下载后,解压到本地目录,例如C盘,因此Instant Rails的安装目录就是:C:/InstantRails;
             注意:Instant Rails的安装路径中不能包含空格。
       至此,Instant Rails安装完毕,相当简单。
       3、Instant Rails的运行文件为InstantRails.exe,双击运行,出现如下界面证明安装成功:
       Instant Rails运行界面
      
      下面启动Instant Rails自带的cookbook程序。
       1、点击主界面上的“I”按钮,会出现Instant Rails的主菜单;
       2、“Rails Applications”——〉“Manage Rails Applications...”,打开Rails应用程序管理器,如下图所示:
       Rails Applicationgs Manager
       3、在Rails Applications的列表中,选中“cookbook”前面的复选框,点击“Start with Mongerl”按钮,启动Mongerl服务器。这时出现一个命令行窗口,如下图:
     
      4、使用上图中的端口号访问程序:http://localhost:3001,可以得到以下的结果:
      cookbook首页

      到现在,Instant Rails已经安装完毕,并且证明可以运行,下面的工作就是在上面开发自己的ROR程序了。

原创粉丝点击