惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
D
DataBreaches.Net
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
D
Docker
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
Check Point Blog
腾讯CDC
Stack Overflow Blog
Stack Overflow Blog
V
Visual Studio Blog
IT之家
IT之家
月光博客
月光博客
U
Unit 42
K
Kaspersky official blog
T
Threatpost
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
GbyAI
GbyAI
P
Proofpoint News Feed
Last Week in AI
Last Week in AI
云风的 BLOG
云风的 BLOG
酷 壳 – CoolShell
酷 壳 – CoolShell
I
InfoQ
Engineering at Meta
Engineering at Meta
Recorded Future
Recorded Future
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Security @ Cisco Blogs
MyScale Blog
MyScale Blog
大猫的无限游戏
大猫的无限游戏
Security Archives - TechRepublic
Security Archives - TechRepublic
Webroot Blog
Webroot Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Hacker News - Newest:
Hacker News - Newest: "LLM"
S
Schneier on Security
S
Secure Thoughts
The Register - Security
The Register - Security
B
Blog RSS Feed
The Last Watchdog
The Last Watchdog
P
Palo Alto Networks Blog
爱范儿
爱范儿
B
Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
N
News and Events Feed by Topic
阮一峰的网络日志
阮一峰的网络日志
L
LINUX DO - 热门话题
C
Cisco Blogs
Spread Privacy
Spread Privacy
F
Full Disclosure
博客园 - 聂微东
T
The Blog of Author Tim Ferriss

博客园 - sayo.net

website the breakpoint will not currently be hit. no symbols have been loaded for this document How to add MS Test to post build 在WCF中使用REST时,如何去掉URL中的.svc后缀 Resolve Error: The service cannot be activated because it does not support ASP.NET compatibility. Resolve Error: Service has zero application (non-infrastructure) endpoints. WCF Could not establish trust relationship for the SSL/TLS secure channel with authority Could not find a base address that matches scheme http for the endpoint with binding MetadataExchangeHttpBinding. Resolve error: Could Not Load Type ‘System.ServiceModel.Activation.HttpModule’ 在IIS7.5上运行Message Security with UserName的WCF Service WCF部署问题两则 SQL Server Mangement Studio无法创建Database Dagrams的简单解决办法 一些有用的WCF相关链接 [Android开发]如何自定义ArrayAdapter 让Android的emulator支持web camera 如何旋转Android Emulator HTC Hero Android 2.1 真机调试 HTC Hero Android 2.1 真机调试 Test from Windows Live Writer Silverlight Toolkit初探
CouchDB系列 - 安装CouchDB
sayo.net · 2010-12-15 · via 博客园 - sayo.net

在Windows上安装CouchDB

从源代码编译安装十分繁琐,还是使用binary的方式比较好一些。可以从下面的链接获取安装包。

http://wiki.apache.org/couchdb/Windows_binary_installer

安装后可以使用Futon来运行Test Suite检验安装的正确性。

注意,一定要使用127.0.0.1而不要使用localhost,否则会有很多错误。

创建admin用户可以通过一下命令:

curl –X PUT http://127.0.0.1:5984/_config/admins/admin -d ‘”111”’

(注意字符串的方式:单引号包双引号,以符合Json的格式)

然后测试之:

> curl -X PUT http://127.0.0.1:5984/foo

{"error":"unauthorized","reason":"You are not a server admin."}

> curl -X PUT http://admin:111@127.0.0.1:5984/foo

{"ok":true}

这时候也可以到etc\couchdb\local.ini下面看看,[admins]下面多了一个值对,其中password是被hash过的密码。

admin = -hashed-757057f47716c1ff51ecbd97f96805d66646e487,ffd8aba3b82e4e00f420602cc0f9381b

在Ubuntu上安装CouchDB

1. 参照一下链接进行安装

http://wiki.apache.org/couchdb/Installing_on_Ubuntu

sudo aptitude install couchdb

2. 安装curl,以便命令行控制

sudo aptitude install curl

3. 打开本地端口以便从外部访问

sudo vi /etc/couchdb/default.ini

将其中bind_address设置成本机对外IP,如192.168.1.100.

4. 添加admin帐号

curl –X PUT http://127.0.0.1:5984/_config/admins/admin -d ‘”111”’