首页
文章
活动
博客
图书
招聘
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
该文章对我有帮助
491°
/
4919 人阅读
/
0 条评论
发表评论
请
登录
后发表评论
王少平
访客 31109
王少平
的其他博文
更多
Watir入门
中国十大丑陋建筑
selenium-webdriver for android
【转】数据库范式
rails环境部署
centos 内核升级(2.6.18-194.el5升2.6.30)
【转】SCSS、SASS介绍 css
修改CentOS的root密码
Centos install Flash control
Aptana汉化