LoginSignup
4
4

More than 5 years have passed since last update.

RethinkDBのWeb管理ツールのポートを変更する

Posted at

デフォルトで設定されている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>
4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4