- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在尝试在我的 Redhat 6.2 服务器上安装 redmine我打算使用薄 ruby gem 与 Nginx 一起运行。我在关注 http://www.redmine.org/projects/redmine/wiki/HowTo_configure_Nginx_to_run_Redmine我做了以下事情
gem 安装瘦
精简安装
这给了我 /etc/rc.d/thin
下的初始化脚本 YML 文件配置如下:
---
chdir: /app/redmine-root/
environment: development
address: 0.0.0.0
port: 5000
timeout: 30
log: log/thin.log
pid: tmp/pids/thin.pid
max_conns: 1024
max_persistent_conns: 100
require: []
wait: 30
servers: 4
daemonize: true
现在,当我执行 /etc/rc.d/thin start
时,它会显示
Starting server on 0.0.0.0:5000 ...
Starting server on 0.0.0.0:5001 ...
Starting server on 0.0.0.0:5002 ...
Starting server on 0.0.0.0:5003 ...
但是当我在 /app/redmine-root/tmp/pids
下看到 pids 时,没有 Pids。
因此,我看不到任何服务正在运行。这是第 1 期
我想问的第二件事是,在上面链接建议的 Nginx conf 中,上游 block 如下所示:
upstream thin_cluster {
server unix:/tmp/thin.0.sock;
server unix:/tmp/thin.1.sock;
server unix:/tmp/thin.2.sock;
server unix:/tmp/thin.3.sock;
}
但是 pid 文件在 /app/redmine-root/tmp/pids
中,这应该有效吗?
第三,在安装时我将环境标记为production
RAILS_ENV=production rake db:migrate
但每当我执行 thin config -C/etc/thin/redmine.yml
时,它都会更改为开发。
请注意,我也有 RVM。/app/redmine-root/的用户和所有者是 apache
。我的 nginx 与 apache 一起运行,我也试图以 apache 的形式运行。
我没有 Ruby 背景。非常感谢任何帮助。
编辑
根据建议,我在日志中找到了这个。
/usr/local/lib/ruby/gems/2.0.0/gems/thin-1.5.1/lib/thin/backends/tcp_server.rb:16:in `connect': cannot load such file -- thin/connection (LoadError)
from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.5.1/lib/thin/backends/base.rb:55:in `block in start'
from /usr/local/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `call'
from /usr/local/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run_machine'
from /usr/local/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run'
from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.5.1/lib/thin/backends/base.rb:63:in `start'
from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.5.1/lib/thin/server.rb:159:in `start'
from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.5.1/lib/thin/controllers/controller.rb:86:in `start'
from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.5.1/lib/thin/runner.rb:187:in `run_command'
from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.5.1/lib/thin/runner.rb:152:in `run!'
from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.5.1/bin/thin:6:in `<top (required)>'
from /usr/local/bin/thin:23:in `load'
from /usr/local/bin/thin:23:in `<main>'
是不是因为,我正在尝试在 UNIX 套接字或其他东西上进行配置??
最佳答案
你应该添加 gem thin
到你的 Gemfile
关于ruby - 无法启动瘦服务器 Ruby Gem,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18778544/
我正在接触 javafx。这就是我正在做的。 FXML Views DI Controllers Weld-SE Managed Services and Models Trying to confi
今天,我了解到使用胖模型和瘦 Controller 被认为是很好的做法。到目前为止,我的想法恰恰相反,所以我认为自己理解的有关 MVC 的一切现在都被证明是错误的。 大多数文章都表明胖模型/瘦 Con
我在 ear 中打包的瘦 war 中遇到了类加载问题。这里还封装了其他的ejb模块。有些可以通过 spring 加载,有些则不能。 想象一下以下场景: someApp.ear |- someEJBs1
我有一个项目,其中 3 个 war-modules 被打包在一个 ear-module 中。我的问题是每个库 jar 都包含在每个 war 模块以及 ear 模块中,这使得生成的 ear 文件非常大(
问题是如何使用 Oracle JDBC 瘦驱动程序并通过仅在 URL 中指定来强制加密? 据了解,我们需要将Oracle Net参数oracle.net.encryption_client设置为req
我尝试根据 RVM and thin, root vs. local user 设置精简服务和 http://wiki.rubyonrails.org/deployment/nginx-thin?re
关闭。这个问题是opinion-based .它目前不接受答案。 想改进这个问题?更新问题,以便 editing this post 可以用事实和引用来回答它. 8年前关闭。 Improve this
我在使用 NetBeans V6.7.1 的 Oracle 11g 中遇到 JDBC Thin 问题。我不知道如何配置它。我已经设置了ojdbc6.jar和orai18n.jar的类路径。但我仍然无法
我有一个新的 tomcat 应用服务器运行在 tomcat 6、java 6 (openjdk)、centos 6.2 上。服务器是在centos 6.2主机上运行在qemu-kvm下的虚拟机。主机和
我的代码有效,但我知道最好有胖模型和瘦 Controller 。 但是,我使用了 3 种不同的型号,不幸的是我的 Controller 变胖了。组织此代码的最佳方式是什么(使用胖模型/瘦 Contro
很抱歉提出这样一个愚蠢的问题,但在文档中找不到它: filename.slim filename.html.slim 这似乎是一种非常适合使用的语言。我以前使用过 HAML,所以我认为这将是一个相当不
我已经从这个链接http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-10201-088211.html 下载了驱动程序
如何减少fontawesome fa-bars的粗细,增加垂直线之间的距离并延长水平线? .fa { margin: 40px; font-size: 14px; } 最佳答案 为什么不试
我有一个在 IE 和 Excel(用于报告)中呈现的 html 表格 如果我将 border-width 设置为 thin,它在 IE 中显示 2px 边框,在 Excel 中显示 1px 边框。 但
我有一个 Controller 操作,用于执行产品列表、分页和一些过滤器,例如类别(来自下拉列表)、标题(来自文本字段)、库存(来自复选框)这是我的 Controller : class Prod
通过 this question 上的慷慨帮助,我把下面的 MVVM 结构放在一起,它在 XAML(当前日期/时间)中实时显示模型的变化,非常好。 A cool advantage of this s
我刚刚读了一篇blog post这可以用银行类比来解释 MVC。我有几个月使用 MVC 框架(CakePHP)开发 Web 应用程序的经验,所以我掌握了基础知识,但我开始看到一个主题,让我认为我在放置
我最近向我的 Rails 路由文件添加了子域约束 constraints(:subdomain => 'new') do devise_for :customers do get "/cu
最干净的方法是什么?一些 Rack 中间件?我尝试修改 env['SERVER_SOFTWARE'] 但我仍然得到响应: Server: thin 1.3.1 codename Triple Espr
目前我正在使用 ojdbc14.jar Oracle 10g 瘦驱动程序来访问 Oracle 10g 数据库。 我想将驱动程序升级到瘦 ojdbc6.jar Oracle 11g 驱动程序提前数据库服
我是一名优秀的程序员,十分优秀!