← 返回命令列表

Linux command

couchdb 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Start CouchDB

couchdb

Start in the background

couchdb -b

Start with a specific configuration

couchdb -c [/path/to/local.ini]

Check if CouchDB is running

curl http://127.0.0.1:5984/

Stop CouchDB

couchdb -d

Restart with a delay

couchdb -b -r [5]

说明

Apache CouchDB is a document-oriented NoSQL database that uses JSON for documents, JavaScript for MapReduce queries, and HTTP for its API. The couchdb command starts the database server. CouchDB is designed for reliability with Multi-Version Concurrency Control (MVCC), ensuring data integrity without locking. It features built-in replication for distributed deployments, making it suitable for offline-first applications that sync when connectivity is available. The database provides a RESTful HTTP API for all operations, from creating databases and documents to running queries. The built-in web interface, Fauxton, allows administration and querying through a browser at http://localhost:5984/_utils/.

参数

-b
Start in background (detached mode).
-d
Shutdown a running CouchDB instance.
-c _FILE_
Use additional configuration file.
-i
Start an interactive Erlang shell.
-o _FILE_
Redirect stdout to the specified file.
-e _FILE_
Redirect stderr to the specified file.
-p _FILE_
Create PID file at the specified path.
-r _SECONDS_
Respawn CouchDB after crash with delay.
-s
Display the status of a background CouchDB process.
-k
Kill a background CouchDB process (will respawn if -r is set).
-V
Display version information and exit.

FAQ

What is the couchdb command used for?

Apache CouchDB is a document-oriented NoSQL database that uses JSON for documents, JavaScript for MapReduce queries, and HTTP for its API. The couchdb command starts the database server. CouchDB is designed for reliability with Multi-Version Concurrency Control (MVCC), ensuring data integrity without locking. It features built-in replication for distributed deployments, making it suitable for offline-first applications that sync when connectivity is available. The database provides a RESTful HTTP API for all operations, from creating databases and documents to running queries. The built-in web interface, Fauxton, allows administration and querying through a browser at http://localhost:5984/_utils/.

How do I run a basic couchdb example?

Run `couchdb` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -b do in couchdb?

Start in background (detached mode).