sudo pacman -S mongodb mongodb-tools
[sudo] password for pi:
resolving dependencies...
looking for conflicting packages...
Packages (9) gperftools-2.6.2-1 libstemmer-0+337-2 libunwind-1.2.1-1
lsb-release-1.4-14 snappy-1.1.7-1 wiredtiger-2.9.3.20171205-2
yaml-cpp-0.5.3-3 mongodb-3.6.1-2 mongodb-tools-3.6.1-1
Total Download Size: 52.21 MiB
Total Installed Size: 223.88 MiB
:: Proceed with installation? [Y/n] y
:: Retrieving packages...
snappy-1.1.7-1-aarch64 22.5 KiB 281K/s 00:00 [######################] 100%
libunwind-1.2.1-1-a... 100.2 KiB 556K/s 00:00 [######################] 100%
gperftools-2.6.2-1-... 556.7 KiB 1136K/s 00:00 [######################] 100%
libstemmer-0+337-2-... 52.1 KiB 868K/s 00:00 [######################] 100%
yaml-cpp-0.5.3-3-aa... 150.0 KiB 882K/s 00:00 [######################] 100%
lsb-release-1.4-14-any 6.7 KiB 0.00B/s 00:00 [######################] 100%
wiredtiger-2.9.3.20... 641.6 KiB 1126K/s 00:01 [######################] 100%
mongodb-3.6.1-2-aarch64 34.8 MiB 4.56M/s 00:08 [######################] 100%
mongodb-tools-3.6.1... 15.9 MiB 1917K/s 00:09 [######################] 100%
(9/9) checking keys in keyring [######################] 100%
(9/9) checking package integrity [######################] 100%
(9/9) loading package files [######################] 100%
(9/9) checking for file conflicts [######################] 100%
(9/9) checking available disk space [######################] 100%
:: Processing package changes...
(1/9) installing snappy [######################] 100%
(2/9) installing yaml-cpp [######################] 100%
(3/9) installing lsb-release [######################] 100%
(4/9) installing libunwind [######################] 100%
(5/9) installing gperftools [######################] 100%
Optional dependencies for gperftools
graphviz: pprof graph generation
gv: pprof postscript generation
(6/9) installing wiredtiger [######################] 100%
(7/9) installing libstemmer [######################] 100%
(8/9) installing mongodb [######################] 100%
==> Warning: the 32 bit version of MongoDB is limited to about 2GB of data.
==> See http://blog.mongodb.org/post/137788967/32-bit-limitations
Optional dependencies for mongodb
libpcap: needed for mongosniff [installed]
mongodb-tools: mongoimport, mongodump, mongotop, etc [pending]
(9/9) installing mongodb-tools [######################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
sudo systemctl enable mongodb.service
Created symlink /etc/systemd/system/multi-user.target.wants/mongodb.service -> /usr/lib/systemd/system/mongodb.service.
sudo systemctl start mongodb.service
mongo
MongoDB shell version v3.6.1
connecting to: mongodb://127.0.0.1:27017
MongoDB server version: 3.6.1
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
http://docs.mongodb.org/
Questions? Try the support group
http://groups.google.com/group/mongodb-user
Server has startup warnings:
2018-01-10T09:55:46.469+0900 I STORAGE [initandlisten]
2018-01-10T09:55:46.469+0900 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
2018-01-10T09:55:46.469+0900 I STORAGE [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem
2018-01-10T09:55:46.919+0900 I CONTROL [initandlisten]
2018-01-10T09:55:46.919+0900 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
2018-01-10T09:55:46.919+0900 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
2018-01-10T09:55:46.919+0900 I CONTROL [initandlisten]
2018-01-10T09:55:51.134+0900 E - [main] Error loading history file: FileOpenFailed: Unable to fopen() file /home/pi/.dbshell: No such file or directory
> help
db.help() help on db methods
db.mycoll.help() help on collection methods
sh.help() sharding helpers
rs.help() replica set helpers
help admin administrative help
help connect connecting to a db help
help keys key shortcuts
help misc misc things to know
help mr mapreduce
show dbs show database names
show collections show collections in current database
show users show users in current database
show profile show most recent system.profile entries with time >= 1ms
show logs show the accessible logger names
show log [name] prints out the last segment of log in memory, 'global' is default
use <db_name> set current database
db.foo.find() list objects in collection foo
db.foo.find( { a : 1 } ) list objects in foo where a == 1
it result of the last line evaluated; use to further iterate
DBQuery.shellBatchSize = x set default number of items to display on shell
exit quit the mongo shell
> exit
bye
0 件のコメント:
コメントを投稿