CentOS7安装CouchDB2.3

编程

1.安装 Erlang OTP (>=R16B03, =<19.x)

CentOS 7 系统安装 Erlang/OTP 22.0

注意Erlang OTP版本 >=R16B03, =<19.x

2.安装CouchDB依赖关系

sudo yum install autoconf

sudo yum install autoconf-archive

sudo yum install automake

sudo yum install curl-devel

sudo yum install help2man

sudo yum install js-devel

sudo yum install libicu-devel

sudo yum install libtool

sudo yum install perl-Test-Harness

sudo yum install patch

3.下载CouchDB

mkdir CouchDB

cd CouchDB/

wget https://github.com/apache/couchdb/releases/download/2.3.0/apache-couchdb-2.3.0.tar.gz

4.将其解压缩

tar zxvf apache-couchdb-2.3.0.tar.gz

5.加载CouchDB的配置

cd apache-couchdb-2.3.0

./configure

[root@SummerGao apache-couchdb-2.3.0]# ./configure
==> configuring couchdb in rel/couchdb.config
You have configured Apache CouchDB, time to relax. Relax.

6.构建CouchDB

make release

[root@SummerGao apache-couchdb-2.3.0]# make release
==> config (compile)
==> b64url (compile)
==> ets_lru (compile)
==> khash (compile)
==> snappy (compile)
==> ioq (compile)
==> bear (compile)
==> meck (compile)
==> folsom (compile)
==> triq (compile)
==> hyper (compile)
==> ibrowse (compile)
==> jiffy (compile)
==> mochiweb (compile)
==> couch_epi (compile)
==> couch_log (compile)
==> chttpd (compile)
==> couch (compile)
==> couch_index (compile)
==> couch_mrview (compile)
==> couch_replicator (compile)
==> couch_plugins (compile)
==> couch_pse_tests (compile)
==> couch_event (compile)
==> couch_stats (compile)
==> couch_peruser (compile)
==> couch_tests (compile)
==> ddoc_cache (compile)
==> fabric (compile)
==> global_changes (compile)
==> mango (compile)
==> mem3 (compile)
==> rexi (compile)
==> setup (compile)
==> rel (compile)
==> apache-couchdb-2.3.0 (compile)
Installing CouchDB into rel/couchdb/ ...
==> rel (generate)
WARN:  "generate" command does not apply to directory /home/summergao/CouchDB/apache-couchdb-2.3.0
... done

    You can now copy the rel/couchdb directory anywhere on your system.
    Start CouchDB with ./bin/couchdb from within that directory.

7.启动

./rel/couchdb/bin/couchdb

8.验证是否安装成功

http://127.0.0.1:5984/

参考:http://docs.couchdb.org/en/stable/install/unix.html#installing

参考:https://www.w3cschool.cn/couchdb/couchdb_installation.html

以上是 CentOS7安装CouchDB2.3 的全部内容, 来源链接: utcz.com/z/510489.html

回到顶部