首页
文章
活动
博客
图书
招聘
Search
登录
注册
WEBrick纯ruby的web服务器
2011-09-23
王少平
正确安装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
该文章对我有帮助
532°
/
5329 人阅读
/
0 条评论
发表评论
请
登录
后发表评论
王少平
访客 31529
王少平
的其他博文
更多
安装和使用selenium 2.0
Cygwin下运行shell脚本
CentOS insatll VMware tools
多台机器用一套键鼠
netbean中文输出
解决webdriver用send_keys输入长字符串问题
selenium-webdriver for android
解决在putty中无法使用backspace问题
【转】用 VirtualBox 安裝 Android-x86 4.0
Watir入门