C:\Documents and Settings\Administrator>mongrel_rails service::install -N wblong
-c d:\Ruby\wblong -p 3000 –e production
!!! The path you specified isn't a valid Rails application.
service::install reported an error. Use mongrel_rails service::install -h to get
help.
-------------------
出现以上错误原因是:d:\Ruby\wblong不是有效的Rails应用程序目录
解决办法是:要先用rails命令创建这目录.注意:这个路径不能象创建普通路径一样建立,要用rails命令。
做法:
D:\ruby\bin\gemhelp.bat 这是你的RubyGems目录中的文件
在DOS中输入:rails wblong
做完以上部分后,再做下一步:
C:\Documents and Settings\Administrator>mongrel_rails service::install -N wblong
-c d:\Ruby\wblong -p 3000 –e production
** Copying native mongrel_service executable...
Mongrel service 'wblong' installed as 'wblong'.
----------------
看到安装成功了吧。哈哈