thin 配置

sudo thin config -C /etc/thin/<config-name>.yml -c <rails-app-root-path> --servers <number-of-threads> -e <environment>
thin config -C /etc/thin/redmine.yml -c /var/www/redmine --servers 5 -e production
thin config -C /etc/thin/myapp.yml -c /var/rails/myapp --servers 5 --socket /tmp/thin.myapp.sock -e production

当执行第一条config命令,可能得到/etc/thin/redmine.yml内容如下

address: localhost
pid: tmp/pids/thin.pid
wait: 30
port: 3000
timeout: 30
log: log/thin.log
max_conns: 1024
require: []

environment: production
max_persistent_conns: 512
servers: 5
daemonize: true
chdir: /var/www/redmine

启动应用
sevice thin start
将会启动3000~3004共5个端口。
如果你有Nginx就可以设置一个代理转发了