首页
文章
活动
博客
图书
招聘
Search
登录
注册
WEBrick纯ruby的web服务器
2011-12-27
王少平
正确安装Ruby on Rails即可
创建文档run.rb,内容如下:
require 'webrick'
httpd=WEBrick::HTTPServer.new(
:DocumentRoot=>Dir::pwd+"/ruby",
:Port=>80
)
trap(:INT){httpd.shutdown}
httpd.start
运行run.rb,打开浏览器,输入地址:http://localhost,自己看一下吧。
0
该文章对我有帮助
522°
/
5222 人阅读
/
0 条评论
发表评论
请
登录
后发表评论
王少平
访客 31401
王少平
的其他博文
更多
利用ruby httpclient去监控web site是否正常工作
Solaris系统上启动Oracle
解决在putty中无法使用backspace问题
安装和使用selenium 2.0
多台机器用一套键鼠
selenium IE截图问题
修改cmd显示
配置几种数据库的连接
【转】windows下安装DevKit
netbean中文输出