Redmine局域网访问缓慢问题解决
By admin
- One minute read - 127 words笔者查阅网上意见,发现是由于Redmine自带的WebrickWeb发布的问题,需要使用Mongrel组件来替换Webrick。在此放在这里方便大家,形成一套完整的Redmine搭建方案。
1. 替换其自带的服务器webrick 为mongrel,方法:
gem install mongrel
如果提示类似“
http11.c: In function ‘header_done’:
http11.c:172:13: error: ‘struct RString’ has no member named ‘ptr’
http11.c:172:13: error: ‘struct RString’ has no member named ‘ptr’
http11.c:172:13: error: ‘struct RString’ has no member named ‘ptr’
http11.c:174:89: error: ‘struct RString’ has no member named ‘ptr’
http11.c:176:52: error: ‘struct RString’ has no member named ‘ptr’
http11.c:177:26: error: ‘struct RString’ has no member named ‘len’
http11.c: In function ‘HttpParser_execute’:
http11.c:298:23: error: ‘struct RString’ has no member named ‘ptr’
http11.c:299:23: error: ‘struct RString’ has no member named ‘len’
http11.c:307:5: warning: format not a string literal and no format arguments [-Wformat-security]
make: *** [http11.o] Error 1
之类的错误的话,需要先执行一下
sudo gem install mongrel --pre
- 运行
ruby script/rails server -e production
浏览器中输入http://localhost:3000进入系统主页面,是不是感觉快了很多.
如果要安装成系统服务的话,只需要在后面加上 -d 参数就可以了。
ruby script/rails server -e production -d