Вы находитесь на странице: 1из 2

(/)

Courses (/courses) Help (/help) About (/about) Blog (http://ed-blog.mongodb.com/) DMAKETAS (/DASHBOARD)

M101J: MongoDB for Java Developers


Courseware (/courses/10gen/M101J/2013_October/courseware) Discussion (/courses/10gen/M101J/2013_October/discussion/forum) Progress (/courses/10gen/M101J/2013_October/progress) Course Info (/courses/10gen/M101J/2013_October/info) Wiki (/courses/10gen/M101J/2013_October/course_wiki)

SEARCH

Homework: Homework 1.1


Install MongoDB on your computer and run it on the standard port. Download the HW1 tarball (mac) (/static/m101j-october-2013/handouts/hw1-1.957cdceb1c1e.tar) or zipfile (windows) (/static/m101joctober-2013/handouts/hw1-1.184820ec29b6.zip), expand it as follows: Mac Users
t a rx v fh w 1 . t a r

Windows Users
Y o up r o b a b l yd o n ' th a v et a ri n s t a l l e ds or i g h tc l i c ko nt h eh w 1 . z i pf i l ea n dc h o o s e" e x t r a c ta l l "

Use mongorestore to restore the dump into your running mongod. Do this by opening a terminal window (mac) or cmd window (windows) and navigating to the directory so that the dump directory is directly beneath you. Now type
m o n g o r e s t o r ed u m p

Note you will need to have your path setup correctly to find mongorestore. Now, using the Mongo shell, perform a findone on the collection called hw1 in the database m101. That will return one document. Please provide the value corresponding to the "answer" key from the document returned.

42

HIDE ANSWER

You have used 0 of 3 submissions

Products & Services (http://www.mongodb.com/products/mongodb) Events (http://www.mongodb.com/events) Partners (http://www.mongodb.com/partners) Customers (http://www.mongodb.com/customers) About MongoDB (http://www.mongodb.com/about) Contact Us (/contact) Careers (http://www.mongodb.com/careers)

(https://twitter.com/mongodbinc)

(http://www.facebook.com/mongodb)

(http://www.linkedin.com/company/783611)

(https://plus.google.com/101024085748034940765/posts) (http://edx.org) (http://www.mongodb.com)


2013 MongoDB, Inc. MongoDB, Mongo, and the leaf logo are registered trademarks of MongoDB Inc.

Вам также может понравиться