2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Apache CouchDBをWindowsでポータブルに動かす

Posted at

CouchDBのWindows版のバイナリはそもそもポータブルにできている。

バッチファイルによる起動

Windows版のCouchDBをインストールすると起動用のバッチファイルもインストールされるので、それをダブルクリックするだけ。

インストーラを実行

http://couchdb.apache.org/ からインストーラをダウンロードして実行する。インストール先はパスに空白を含まない場所ならどこでもよい。ここではP:\CouchDBにインストールした。

サービスを停止

「コンピュータの管理」からサービスの一覧を開き、「Apache CouchDB」を停止する。さらにスタートアップの種類を「無効」にする。
image.png

couchdb.cmdを実行

CouchDBのインストール先ディレクトリのbinの下にcouchdb.cmdがある。これはバッチファイルなのでダブルクリックで起動できる。

Fauxtonを開いて確認

インストーラはスタートメニューにFauxton http://localhost:5984/_utils/index.html へのショートカットを作るので開いて確認する。

image.png

やっておくと便利なこと

ショートカット作成

ポータブルに使うために、バッチファイルを起動するショートカットと、Fauxtonを起動するショートカットを作っておくと便利である。

ログを標準エラー出力に出す

インストール先の etc ディレクトリの下に設定ファイルがある。etc/local.d/log.ini に次の設定を書いておくと、ばッ地ファイルで開いたコマンドプロンプトにログが出力されて良いかもしれない。

image.png

image.png

2
2
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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?