centos RPM安装couchdb2.2.0版本
作者:互联网
1、下载couchdb rpm包指定版本
[root@localhost blockchain]# cd /usr/local/src/ [root@localhost blockchain]# wget http://apache.bintray.com/couchdb-rpm/el7/x86_64/couchdb-2.2.0-1.el7.x86_64.rpm
2、安装
[root@redis-01 src]# rpm -ivh couchdb-2.2.0-1.el7.x86_64.rpm --nodeps
默认安装到/opt/couchdb/下
3、配置CouchDB
[root@redis-01 blockchain]# cd /opt/couchdb/ [root@redis-01 couchdb]# vim etc/local.ini
1、修改监听地址和端口
查找[chttpd]部分
[chttpd] ;port = 5984 ;bind_address = 127.0.0.1 bind_address=0.0.0.0
监听地址改为:0.0.0.0
2、设置数据目录
查找[couchdb]部分
[couchdb] ;max_document_size = 4294967296 ; bytes ;os_process_timeout = 5000 uuid = 0446409388bdbdc5436c7fa4f6491afe database_dir=/home/couchdb
添加database_dir项
3、设置管理员登录密码
查找[admins]部分
[admins] ;admin = mysecretpassword admin=xxxxxxx
4、启动CouchDB
必须带全路径/opt/couchdb/bin/couchdb执行,否则启动不成功
[root@redis-01 couchdb]# cd /opt/couchdb/bin/ [root@redis-01 bin]# ./couchdb & [1] 49127
5、测试
[root@redis-01 bin]# curl http://127.0.0.1:5984 {"couchdb":"Welcome","version":"2.2.0","git_sha":"2a16ec4","features":["pluggable-storage-engines","scheduler"],"vendor":{"name":"The Apache Software Foundation"}} [root@redis-01 bin]#
浏览器打开 http://xx.xxx.xxx.xxx:5984/utils
显示版本为2.2.0
标签:bin,01,centos,RPM,couchdb,redis,rpm,root,couchdb2.2 来源: https://www.cnblogs.com/sky-cheng/p/13367371.html