我按照这些说明安装并运行了本机应用程序:
http://docs.couchdb.org/en/2.0.0/install/mac.html#installation-using-the-apache-couchdb-native-application
如何关闭/终止/停止CouchDB?
答案 0 :(得分:5)
我发现了这个
https://www.gregoryvarghese.com/how-to-stop-couchdb-on-mac-os/
在终端中,运行
launchctl list | grep couchdb
然后在像
这样的返回值上99093 0 org.apache.couchdb.288008
DO
launchctl stop "org.apache.couchdb.288008"
虽然肯定会成为Futon的更高级别的GUI!
答案 1 :(得分:1)
它不起作用。 ps aux | grep couchdb
显示couchdb仍在运行:(
$ launchctl list | grep couchdb
- 0 org.apache.couchdb.79668
$ launchctl stop "org.apache.couchdb.79668"
答案 2 :(得分:1)
Mac OS X上的CouchDB应用程序似乎使用一个观察程序,如果进程停止,它将重新启动数据库。因此,首先运行此命令以列出Couch App启动的所有正在运行的进程:
ps -ef | grep -i couch
这是我得到的输出:
501 4330 1 0 Tue12pm ?? 0:06.17 /Applications/Development/Apache CouchDB.app/Contents/MacOS/Apache CouchDB -psn_0_659617
501 23991 4330 0 6:31pm ?? 0:01.82 /Applications/Development/Apache CouchDB.app/Contents/Resources/couchdbx-core/bin/../erts-8.3/bin/beam.smp -K true -A 16 -Bd -- -root /Applications/Development/Apache CouchDB.app/Contents/Resources/couchdbx-core/bin/.. -progname couchdb -- -home /Users/eric -- -boot /Applications/Development/Apache CouchDB.app/Contents/Resources/couchdbx-core/bin/../releases/2.1.1/couchdb -name couchdb@localhost -setcookie monster -kernel error_logger silent -sasl sasl_error_logger false -noshell -noinput -config /Applications/Development/Apache CouchDB.app/Contents/Resources/couchdbx-core/bin/../releases/2.1.1/sys.config -couch_ini /Applications/Development/Apache CouchDB.app/Contents/Resources/couchdbx-core/etc/default.ini /Users/eric/Library/Preferences/couchdb2-local.ini
501 23999 1 0 6:31pm ?? 0:00.00 /Applications/Development/Apache CouchDB.app/Contents/Resources/couchdbx-core/bin/../erts-8.3/bin/epmd -daemon
501 24003 24000 0 6:31pm ?? 0:00.01 /Applications/Development/Apache CouchDB.app/Contents/Resources/couchdbx-core/bin/../lib/os_mon-2.4.2/priv/bin/cpu_sup
501 24015 18419 0 6:32pm ttys000 0:00.01 grep Couch
第一个似乎是一个观察者,如果它注意到其他命令已被停止,它将重新启动Couch。
首先杀死第一个Apache CouchDB
(在我的情况下是PID 4330),然后是第二个(在我的情况下是PID 23991),而Couch应该不再运行了。通过重新运行ps命令确认:
ps -ef | grep -i couch