3?1442652661

【缺陷】 配置thin server遇到的错误 正常


谭显波添加于 2013-07-11 08:38
thin config -C /etc/thin/redmine.yml -c /usr/local/redmine -e production --server 5 cat /etc/thin/redmine.yml chdir: /opt/redmine environment: production address: 0.0.0.0 port: 13000 timeout: 30 log: log/redmine.log pid: tmp/pids/thin.pid max_conns: 1024 max_persistent_conns: 512 require: [] wait: 30 servers: 3 daemonize: true 4.开机自启动 thin & thin启动方式 启动方式:thin start -C /etc/thin/redmine.yml 设置开机启动: echo "thin start -C /etc/thin/redmine.yml" >> /etc/rc.local it has a error like this : senluo commented Wed Jul 10 05:30:33 UTC 2013: I had do with the tutorial,when" thin start -C /etc/thin/redmine.ym" it occured a waring is Insecure world writable dir /usr/local in PATH , mode 040777; and in the logs like this Writing PID to tmp/pids/thin.3000.pid No adapter found for /opt/bitnami/apps/redmine Exiting! I changed with The command: sudo chmod 775 /usr/local now success! without this error.it start in correct way it has anothor error like this : >> Writing PID to tmp/pids/thin.3000.pid >> Using rack adapter >> Thin web server (v1.4.1 codename Chromeo) >> Maximum connections set to 1024 >> Listening on 0.0.0.0:3000, CTRL+C to stop >> Exiting! /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/thin-1.4.1/lib/thin/backends/tcp_server.rb:16:in `connect': cannot load such file -- thin/connection (LoadError) from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/thin-1.4.1/lib/thin/backends/base.rb:55:in `block in start' from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/eventmachine-1.0.1/lib/eventmachine.rb:187:in `call' from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/eventmachine-1.0.1/lib/eventmachine.rb:187:in `run_machine' from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/eventmachine-1.0.1/lib/eventmachine.rb:187:in `run' from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/thin-1.4.1/lib/thin/backends/base.rb:63:in `start' from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/thin-1.4.1/lib/thin/server.rb:159:in `start' from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/thin-1.4.1/lib/thin/controllers/controller.rb:86:in `start' from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/thin-1.4.1/lib/thin/runner.rb:185:in `run_command' from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/thin-1.4.1/lib/thin/runner.rb:151:in `run!' from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/thin-1.4.1/bin/thin:6:in `' from /opt/bitnami/ruby/bin/thin:23:in `load' from /opt/bitnami/ruby/bin/thin:23:in `
' the way to solve this problem in internet: 网上解决办法: ln -s /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems add thin to Gemfie, and it works again! 把thin添加到Gemfile中 gem "thin" *但是这个gem "thin" 在执行的时候不能够执行。* Make sure your thin cluster is running! You can check this by entering "ps -ef | grep thin". If it's not running, you either didn't initially run "sudo gem install thin && sudo thin install", or You should see more than 1 line, like this: root 4004 1 2 22:08 ? 00:00:07 thin server (0.0.0.0:3000) root 4009 1 2 22:08 ? 00:00:07 thin server (0.0.0.0:3001) demo 4149 4138 0 22:13 pts/0 00:00:00 grep thin
回复(3)
  • 34?1606980457
    白羽 10年前

    描述 已更新。 (查看差别)

    状态新增 变更为 关闭

  • 3?1442652661
    谭显波 10年前

    分类 被设置为 配置

    指派给 被设置为 xianbo

    % 完成0 变更为 100

    预计工时 (H) 被设置为 5.00

    并不是说要执行gem ”thin“ 是要把 gem ”thin“ add into Gemfile which in project

  • 3?1442652661
    谭显波 11年前

    网上解决办法[[http://www.linuxso.com/linuxrumen/38273.html]]

0?1470885445
登录后可添加回复
  • 当前状态 关闭
  • 选定优先级 正常
  • 指派给 谭显波
  • 里程碑 --
  • 开始日期 2013-07-11
  • 结束日期
  • 预计工时(H) 5.00 小时
  • 完成度 100%
  • 关联Commit

© Copyright 2007~2021 国防科技大学Trustie团队 & IntelliDE 湘ICP备 17009477号

问题和建议
还能输入50个字符 提交

加入QQ群

关注微信APP


×