Total Pageviews

Friday, 14 June 2013

一个很有意思的基于ruby的webserver app-Rwebserver

# gem install Rwebserver ( 注:请先装好ruby)
# cd /some/path/to/server (比如我的例子: /root/test-dir/)
# Rwebserver (我的ruby是编译的,路径为/usr/local/ruby/,因此Rwebserver的执行文件为
/usr/local/ruby/bin/Rwebserver.
我的运行命令分别为:
nohup /usr/local/ruby/bin/Rwebserver > /dev/null &
# nohup /usr/local/ruby/bin/Rwebserver 3344 > /dev/null & 


or specify your server port like this(port should belong bettween 1 and 65535, if not,default 8000):
Rwebserver portnumber

from https://github.com/windy/Rwebserver

示例: http://as3.brite.biz:8000/ ,http://as3.brite.biz:3344/
http://as3.brite.biz:3345/