摘要:
在ubuntu下进入 /usr/lib/cgi-bin目录 新建文件 ruby.cgi内容如下#!/usr/bin/ruby print "Content-type: text/html\r\n\r\n" print "Hello World! It's #{Time.now}\r\n" 为文件加可执行权限 sudo chmod a+x ruby.cgi重启apache2 sudo apache2 restart打开火狐浏览器地址:localhost/cgi-bin/ruby.cgi在windows下只需更改ruby的安装路径,比如我的是C:/R 阅读全文
posted @ 2013-09-07 13:05
飞凡123
阅读(383)
评论(0)
推荐(0)

浙公网安备 33010602011771号