获得使用MongoDB(Getting Use to MongoDB)
我刚刚熟悉MongoDB及其第一次使用它。 我正在使用Ubuntu环境进行开发。 我按照MongoDb网站上提供的教程中提到的说明安装了MongoDB。 他们说数据将存储在/ data / db中,现在我有两个问题
1)我需要在哪里制作这个文件夹? 意味着哪个目录? 2)我在根目录中创建了一个目录
/
然后我运行了mongo
服务器。 我创建了一个带有use movies
命令的movies
名称的数据库,然后将一些集合放入其中,如action and comedy
,然后每个集合我用db.action.insert
和db.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 themongo
server. I made one database with the name ofmovies
withuse movies
command and then put some collection in it likeaction and comedy
and then each collection i saved some documents withdb.action.insert
anddb.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
最满意答案
You can use an
<svg>
, which is a "scalable vector graphic"Here is almost an exact example of what you described
相关问答
更多-
你可以看看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 ...
-
jQuery上下动画(jQuery animate up and down)[2023-05-20]
这是您想要实现的一个简短示例。 $(".box").removeClass('animate'); 它首先删除每个.animate上的所有类.box , $(this).addClass('animate'); 之后,它仅在单击的元素上设置该类。 .animate类可以是任何东西,只要它只包含对元素正常状态的更改即可。 转换可以很容易地改变。 过渡非常方便: transition CSS属性是transition-property , transition-duration , transition-t ... -
.animate()不工作?(.animate() not working?)[2023-08-16]
不是你。 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.
-
我认为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 / oop相比,spaghetti php代码的性能和可扩展性?(Spaghetti php code performance and scalability compared to mvc/oop?)[2022-05-04]
据我了解,你可以把每个组件的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 ...