THIN(1)

πŸ“¦
version 1.8.2+git20250216.de6b618 Β· 6 versions
, in ubuntu resolute, ubuntu stonking

hey bestie πŸ’– welcome to the thin page β€” yes, section 1, user commands, the whole vibe. thin is that girl: a web server for Ruby that is fast and extremely not complicated. Let's get into it 🫢


🌸 NAME 🌸

thin β€” fast and very simple Ruby web server ✨


πŸŽ€ SYNOPSIS πŸŽ€

thin [options] start|stop|restart|config|install

like… you pick your options, then you tell it what to do. iconic behavior honestly πŸ’…


✨ DESCRIPTION ✨

okay so here's the whole menu of options, grouped by vibe. every single one, no skips, we're not doing that here πŸ“

πŸ–₯️ Server options

  • -a, --address HOST β€” bind to the HOST address (default: 0.0.0.0)
  • -p, --port PORT β€” use PORT (default: 3000)
  • -S, --socket FILE β€” bind to a unix domain socket
  • -y, --swiftiply [KEY] β€” run using swiftiply
  • -A, --adapter NAME β€” which Rack adapter to use (default: autodetect) β€” your choices are rack, rails, ramaze, merb, file
  • -R, --rackup FILE β€” load a Rack config file instead of a Rack adapter
  • -c, --chdir DIR β€” change to dir before starting
  • --stats PATH β€” mount the Stats adapter under PATH

πŸ”’ SSL options

  • --ssl β€” enables SSL
  • --ssl-key-file PATH β€” path to private key
  • --ssl-cert-file PATH β€” path to certificate
  • --ssl-disable-verify β€” disables (optional) client cert requests
  • --ssl-version VERSION β€” TLSv1, TLSv1_1, TLSv1_2
  • --ssl-cipher-list STRING β€” example: HIGH:!ADH:!RC4:-MEDIUM:-LOW:-EXP:-CAMELLIA

🧩 Adapter options

  • -e, --environment ENV β€” framework environment (default: development)
  • --prefix PATH β€” mount the app under PATH (start with /)

πŸŒ™ Daemon options

  • -d, --daemonize β€” run daemonized in the background
  • -l, --log FILE β€” file to redirect output (default: /build/thin-1XBQn3/thin-1.8.2+git20250216.de6b618/log/thin.log)
  • -P, --pid FILE β€” file to store PID (default: tmp/pids/thin.pid)
  • -u, --user NAME β€” user to run daemon as (use with -g)
  • -g, --group NAME β€” group to run daemon as (use with -u)
  • --tag NAME β€” additional text to display in process listing

πŸ‘― Cluster options

  • -s, --servers NUM β€” number of servers to start
  • -o, --only NUM β€” send command to only one server of the cluster
  • -C, --config FILE β€” load options from config file
  • --all [DIR] β€” send command to each config files in DIR
  • -O, --onebyone β€” restart the cluster one by one (only works with the restart command)
  • -w, --wait NUM β€” maximum wait time for server to be started in seconds (use with -O)

⚑ Tuning options

  • -b, --backend CLASS β€” backend to use, full classname
  • -t, --timeout SEC β€” request or command timeout in sec (default: 30)
  • -f, --force β€” force the execution of the command
  • --max-conns NUM β€” maximum number of open file descriptors (default: 1024). might require sudo to set higher than 1024 πŸ‘€
  • --max-persistent-conns NUM β€” maximum number of persistent connections (default: 100)
  • --threaded β€” call the Rack application in threads [experimental]
  • --threadpool-size NUM β€” sets the size of the EventMachine threadpool. (default: 20)
  • --no-epoll β€” disable the use of epoll

🌈 Common options

  • -r, --require FILE β€” require the library
  • -q, --quiet β€” silence all logging
  • -D, --debug β€” enable debug logging
  • -V, --trace β€” set tracing on (log raw request/response)
  • -h, --help β€” show this message
  • -v, --version β€” show version
bestie the --threaded flag is experimental, ok? treat it with respect πŸ™ˆ

πŸ‘€ SEE ALSO πŸ‘€

the full documentation for thin is maintained as a Texinfo manual πŸ“š so if the info and thin programs are properly installed at your site, this command:

info thin

should give you access to the complete manual. literally the whole thing, no cap ✨


and that's the whole page!! πŸ’œ this is thin version 1.8.2, codename Ruby Razor, dated February 2026. go off, run your little Ruby server, you're the main character now πŸ‘‘πŸŒˆ πŸ¦‹

πŸ“¦ where this page comes from