草庐IT

mongodb-cluster

全部标签

windows - 无法在 Windows 上将持久文件夹添加到 bitnami/mongodb

我认为这可能与文件系统不兼容(nfts/ext*)有关如何在不退出容器的情况下组合我的容器并保留数据库?我正在使用bitnami-mongodb-image错误:Errorexecuting'postInstallation':EACCES:permissiondenied,mkdir'/bitnami/mongodb'mongodb_1exitedwithcode1完整输出:Recreatingmongodb_1...doneStartingnode_1...doneAttachingtonode_1,mongodb_1mongodb_1|mongodb_1|Welcometothe

windows - Mongodb Windows 安装失败

我正在尝试在我的本地计算机上安装mongodb。我有Windows7和64位。我正在按照mongo网站上提供的这些说明进行操作:64-bitbinaries:Downloadandextractthe64-bit.zip.Unzipthedownloadedbinarypackagetothelocationofyourchoice.Youmaywanttorenamemongo-xxxxxxxtojust"mongo"forconvenience.Createadatadirectory:BydefaultMongoDBwillstoredatain\data\db,butitwon

windows - 将 mongodb 作为 Windows 服务运行

我已经在win32上安装了mongodb,我正在尝试将其作为服务运行。我已按照此处发布的说明进行操作:http://www.deltasdevelopers.com/post/Running-MongoDB-as-a-Windows-Service.aspx但是当Windows尝试“加载”/“运行”服务时出现问题。我看到服务控制横幅下的服务一直处于“正在启动”状态。结果:服务没有启动,windows不断尝试启动,但没有成功。我遵循的说明是:在命令行中C:\mongodb\mongod-安装然后C:\mongodb\mongod-服务然后我通过将ImagePath键设置为C:\mongo

windows - 无法在 Windows 上作为服务启动 Mongodb 2.6.3

尝试在widnows7x64上安装并启动mongodb服务mongod.cfg:systemLog:destination:filepath:"c:\\mongo\\logs\\mongo.log"quiet:truelogAppend:truestorage:dbPath:"C:\\mongo\\data"directoryPerDB:true这工作正常(mongodb启动,写入logs/mongo.log):bin\mongod.exe--configmongod.cfg我安装服务:bin\mongod.exe--configmongod.cfg--install但是在服务启动时我

windows - windows 上的 MongoDB 无法绑定(bind)到 28017

我在Windows上使用MongoDB2.6.1。我已将其安装为服务。我能够启动该服务,进程成功监听27017,我能够连接到它、插入数据和运行查询。问题是我无法连接到Web界面:http://localhost:28017当我回收服务时,我看到它无法绑定(bind)到28017端口,因为它看起来正在使用中:[websvr]ERROR:listen():bind()failederrno:10048通常只允许每个套接字地址(协议(protocol)/网络地址/端口)使用一次。对于套接字:0.0.0.0:28017但是,当我运行netstat-anbo时,它没有报告任何对28017的使用。

windows - 在 Windows Server 2008 上安装 javascript 驱动程序 Mongodb-native

我有运行mongodb数据库的nodejs,我正在尝试安装javascript驱动程序mongodb-native。当我尝试“npminstall-gmongodb--mongodb:native”时我尝试在Windows7机器上安装相同的配置,它工作得很好。知道为什么它不能与WindowsServer2008一起使用吗?这是我从npminstall命令得到的输出:npmhttpGEThttps://registry.npmjs.org/mongodbnpmhttpGEThttps://registry.npmjs.org/mongodbnpmhttpGEThttps://regist

删除集合中随机选择的n个文档(mongodb)

有人可以告诉我,您将在MongoDB数据库中的集合中删除n个随机选择的文档的优雅方式(理想情况下是通过Python)是什么?我想使用这样的简洁db.users.remove({$sample:{size:N}})但是,这没有解析,我在其他任何地方都找不到有效的替代方案。非常感谢!看答案使用聚合将您的样本并将_id值存储到列表:list_of_ids=list(db.users.aggregate([{'$sample':{'size':10}},{'$project':{'_id':1}}]))使用delete_many删除示例文档results=db.users.delete_many({'

windows - Openshift3 中的 "User "系统 "cannot get securitycontextconstraints at the cluster scope"

如果我尝试向在Windows10Pro和Hyper-V中运行的本地OpenShift一体化集群添加安全约束,openshift客户端会收到以下消息:c:\openshift\oc.exeadmpolicyadd-scc-to-useranyuid-zdefaultErrorfromserver(Forbidden):User"system"cannotgetsecuritycontextconstraintsattheclusterscope"Openshift实例是由docker机器使用以下步骤创建的:1)docker-machinecreate-d"hyperv"--engine-

MongoDB实验——数据库基本操作(头歌)

第1关:创建数据库命令行mongousemydbdb.mydb.insert({_id:1,name:"李小红"})第2关:创建集合命令行输入:mongo useTestdb2db.t_stu.insert([{_id:1,name:"小明",sex:"男",hobbies:["乒乓球","羽毛球"]},{_id:2,name:"小红",sex:"女",hobbies:["画画","唱歌"]}])第3关:文档操作一命令行输入:mongouseTestdb3 document=([{_id:1,name:"张小华",sex:"男",phone:"12356986594",hobbies:["打篮

windows - 将 Microsoft HPC-Cluster 日期设置为 ISO 格式

当我查询作业属性时https://hpc-cluster/WindowsHPC/cluster_name/Job/573374?Properties=CreateTime响应使用语言环境日期格式:ChangeTime28.11.201608:24:06但过滤作业需要ISO格式2016-11-28T10:06:37Z:https://hpc-cluster/WindowsHPC/cluster_name/Jobs?%24filter=ChangeTimeFrom%20eq%202016-11-28T15%3A06%3A37Z&Render=RestPropRender如何将响应配置为始终