首页 \ 问答 \ 获得使用MongoDB(Getting Use to MongoDB)

获得使用MongoDB(Getting Use to MongoDB)

我刚刚熟悉MongoDB及其第一次使用它。 我正在使用Ubuntu环境进行开发。 我按照MongoDb网站上提供的教程中提到的说明安装了MongoDB。 他们说数据将存储在/ data / db中,现在我有两个问题

1)我需要在哪里制作这个文件夹? 意味着哪个目录? 2)我在根目录中创建了一个目录/然后我运行了mongo服务器。 我创建了一个带有use movies命令的movies名称的数据库,然后将一些集合放入其中,如action and comedy ,然后每个集合我用db.action.insertdb.comedy.insert命令保存了一些文档,当我试图在/ data / db文件夹中找到它我找到了三个文件和一个文件夹,但是没有带有电影名称的文件,所以我的问题是我的数据库保存了什么名称。

请指导我这方面。

谢谢


I am just getting familiar with MongoDB and its my first time to use it. I am using Ubuntu enviornment for the development. I installed the MongoDB as per the instructions mentioned in the tutorial available on the MongoDb website. They said that the data will be stored in the /data/db, now i have two question about this

1) Where do i need to make this folder? means which directory? 2) I made one directory in the root directory / and then i ran the mongo server. I made one database with the name of movies with use movies command and then put some collection in it like action and comedy and then each collection i saved some documents with db.action.insert and db.comedy.insert command and when i tried to find it in /data/db folder i found three files and one folder but there is no file with the name of movies so my question is with what name my database is saved.

Please guide me in this aspect.

Thanks


原文:https://stackoverflow.com/questions/19440645
更新时间:2022-03-07 18:03

最满意答案

您可以使用<svg> ,这是一个“可缩放的矢量图形”

这几乎是你所描述的一个确切的例子

在此处输入图像描述

https://codepen.io/dudleystorey/pen/ltpmv


You can use an <svg> , which is a "scalable vector graphic"

Here is almost an exact example of what you described

enter image description here

https://codepen.io/dudleystorey/pen/ltpmv

相关问答

更多
  • 你可以看看https://github.com/faye/faye-redis-node 。 这个插件为Faye消息服务器提供了一个基于Redis的后端。 它允许通过Redis数据库服务器存储状态和路由消息,从而将单个Faye服务分布在许多前端Web服务器上 You can take a look at https://github.com/faye/faye-redis-node. This plugin provides a Redis-based backend for the Faye messag ...
  • 这是您想要实现的一个简短示例。 $(".box").removeClass('animate'); 它首先删除每个.animate上的所有类.box , $(this).addClass('animate'); 之后,它仅在单击的元素上设置该类。 .animate类可以是任何东西,只要它只包含对元素正常状态的更改即可。 转换可以很容易地改变。 过渡非常方便: transition CSS属性是transition-property , transition-duration , transition-t ...
  • 不是你。 jQuery本身不支持背景位置动画。 但是,有一个很棒的插件: http : //www.protofunc.com/scripts/jquery/backgroundPosition/ 这是你要求的功能: $(function() { $('ul.nav a').each(function(i, elem) { $(elem).bind('click', function(event) { event.preventDefault(); ...
  • 您必须使用v0.6.x群集自定义代码解决方案。 它最近刚出现,除了非常基本,还没有时间进入任何图书馆。 我建议你看看http://learnboost.github.com/cluster/就我所知,它不适用于v0.6.x,但根据这个问题https://github.com/ LearnBoost / cluster / issues / 168 Tj是“on it”。 You will have to custom code a solution using the v0.6.x clustering. ...
  • 你不能。 Nodejs是服务器端的javascript,而不是客户端。 you can't. Nodejs is javascript on the server side, not client side.
  • 您可以使用 ,这是一个“可缩放的矢量图形” 这几乎是你所描述的一个确切的例子 https://codepen.io/dudleystorey/pen/ltpmv You can use an , which is a "scalable vector graphic" Here is almost an exact example of what you described https://codepen.io/dudleystorey/pen/ltpmv
  • 我认为SignalR将是更好的选择,如果不是因为如果您使用SignalR.WebSockets ,它将自动升级到Web套接字的连接,如果用户的浏览器支持它。 这样,随着时间的推移,当用户开始升级浏览器并远离长轮询方案时,聊天应用程序的可伸缩性实际上会变得更好。 此外,有一个很棒的代码示例叫做JabbR,由创建SignalR的人创建。 (他也恰好是ASP .NET团队的开发人员) http://jabbr.net/ - SignalR的一个例子。 https://github.com/davidfowl/Ja ...
  • 使用像jQuery这样的标准库来做到这一点,不要自己动手,因为它肯定不会跨浏览器。 有了jQuery,你可以做这样的事情: $("#div-id").animate({"height": 300}, 1000); 这将在1000 ms = 1秒内将div高度更改为300 px。 Use a standard library like jQuery to do this, don't do it yourself as it won't be cross-browser for sure. With jQu ...
  • 据我了解,你可以把每个组件的mvc放在一个单独的服务器上来传播负载 我从来没有听说过我自己 - 但我来自.Net世界,你可以在同一台服务器上运行所有的托管代码(不像在Java世界中,你经常有一个单独的“App”服务器和“网络服务器)。 您可能转向MVC的主要原因(就像您提到的一样)是为了管理代码带来的好处:关注点分离,重用等; 不是表演。 从理论上讲,你可以用基于对象/组件的技术来完成这些工作,例如Java或.Net,其中组件之间可以相互通信 - 但是在程序代码中? 我不这么认为! 那么,考虑到所有这些事情 ...
  • 元素创建似乎区分大小写 在这里工作小提琴 看看这一行 var animation = document.createElementNS(svg.namespaceURI, 'animateMotion'); 用animateMotion替换animatemotion 码 function f(x, y) { var svg = document.getElementById('svg'); var circle = document.createElementNS(svg.namespaceU ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。