之前版本:
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
当前版本:
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