デフォルトで設定されている8080は他で使うことが多いので変えたいです。
--http-port
オプションを使います。
$ rethinkdb --http-port 18080
私の場合は Mac に Homebrew からインストールして、そのまま用意されてる LaunchAgent ファイルを使ってログイン時に起動させていたので、一度 unload
したあとに homebrew.mxcl.rethinkdb.plist
も以下のように修正しました。
homebrew.mxcl.rethinkdb.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>homebrew.mxcl.rethinkdb</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/opt/rethinkdb/bin/rethinkdb</string>
<string>-d</string>
<string>/usr/local/var/rethinkdb</string>
<string>--http-port</string>
<string>18080</string>
</array>
<key>WorkingDirectory</key>
<string>/usr/local</string>
<key>StandardOutPath</key>
<string>/usr/local/var/log/rethinkdb/rethinkdb.log</string>
<key>StandardErrorPath</key>
<string>/usr/local/var/log/rethinkdb/rethinkdb.log</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
</dict>
</plist>