我參考 "不一樣的 Node.js (第二版)" 這本書的 7.3.1 節以下列指令進行安裝 :
sudo apt-get install mongodb
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Dec 31 08:22:50 2018 from 192.168.2.109
pi@raspberrypi:~ $ sudo apt-get install mongodb
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libboost-dev libboost1.55-dev libpcap0.8 mongodb-clients mongodb-dev
mongodb-server
Suggested packages:
libboost-doc libboost1.55-doc libboost-atomic1.55-dev
libboost-chrono1.55-dev libboost-context1.55-dev libboost-coroutine1.55-dev
libboost-date-time1.55-dev libboost-exception1.55-dev
libboost-filesystem1.55-dev libboost-graph1.55-dev
libboost-graph-parallel1.55-dev libboost-iostreams1.55-dev
libboost-locale1.55-dev libboost-log1.55-dev libboost-math1.55-dev
libboost-mpi1.55-dev libboost-mpi-python1.55-dev
libboost-program-options1.55-dev libboost-python1.55-dev
libboost-random1.55-dev libboost-regex1.55-dev
libboost-serialization1.55-dev libboost-signals1.55-dev
libboost-system1.55-dev libboost-test1.55-dev libboost-thread1.55-dev
libboost-timer1.55-dev libboost-wave1.55-dev libboost1.55-tools-dev
libmpfrc++-dev libntl-dev
The following NEW packages will be installed:
libboost-dev libboost1.55-dev libpcap0.8 mongodb mongodb-clients mongodb-dev
mongodb-server
0 upgraded, 7 newly installed, 0 to remove and 214 not upgraded.
Need to get 20.4 MB of archives.
After this operation, 207 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main libpcap0.8 armhf 1.6.2-2 [121 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main libboost1.55-dev armhf 1.55.0+dfsg-3 [5,809 kB]
Get:3 http://mirrordirector.raspbian.org/raspbian/ jessie/main libboost-dev armhf 1.55.0.2 [3,378 B]
Get:4 http://mirrordirector.raspbian.org/raspbian/ jessie/main mongodb-dev armhf 1:2.4.10-5+deb8u1 [1,073 kB]
Get:5 http://mirrordirector.raspbian.org/raspbian/ jessie/main mongodb-clients armhf 1:2.4.10-5+deb8u1 [10.1 MB]
Get:6 http://mirrordirector.raspbian.org/raspbian/ jessie/main mongodb-server armhf 1:2.4.10-5+deb8u1 [3,245 kB]
Get:7 http://mirrordirector.raspbian.org/raspbian/ jessie/main mongodb armhf 1:2.4.10-5+deb8u1 [12.2 kB]
Fetched 20.4 MB in 54s (374 kB/s)
Selecting previously unselected package libpcap0.8:armhf.
(Reading database ... 123977 files and directories currently installed.)
Preparing to unpack .../libpcap0.8_1.6.2-2_armhf.deb ...
Unpacking libpcap0.8:armhf (1.6.2-2) ...
Selecting previously unselected package libboost1.55-dev:armhf.
Preparing to unpack .../libboost1.55-dev_1.55.0+dfsg-3_armhf.deb ...
Unpacking libboost1.55-dev:armhf (1.55.0+dfsg-3) ...
Selecting previously unselected package libboost-dev:armhf.
Preparing to unpack .../libboost-dev_1.55.0.2_armhf.deb ...
Unpacking libboost-dev:armhf (1.55.0.2) ...
Selecting previously unselected package mongodb-dev.
Preparing to unpack .../mongodb-dev_1%3a2.4.10-5+deb8u1_armhf.deb ...
Unpacking mongodb-dev (1:2.4.10-5+deb8u1) ...
Selecting previously unselected package mongodb-clients.
Preparing to unpack .../mongodb-clients_1%3a2.4.10-5+deb8u1_armhf.deb ...
Unpacking mongodb-clients (1:2.4.10-5+deb8u1) ...
Selecting previously unselected package mongodb-server.
Preparing to unpack .../mongodb-server_1%3a2.4.10-5+deb8u1_armhf.deb ...
Unpacking mongodb-server (1:2.4.10-5+deb8u1) ...
Selecting previously unselected package mongodb.
Preparing to unpack .../mongodb_1%3a2.4.10-5+deb8u1_armhf.deb ...
Unpacking mongodb (1:2.4.10-5+deb8u1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for systemd (215-17+deb8u6) ...
Setting up libpcap0.8:armhf (1.6.2-2) ...
Setting up libboost1.55-dev:armhf (1.55.0+dfsg-3) ...
Setting up libboost-dev:armhf (1.55.0.2) ...
Setting up mongodb-dev (1:2.4.10-5+deb8u1) ...
Setting up mongodb-clients (1:2.4.10-5+deb8u1) ...
Setting up mongodb-server (1:2.4.10-5+deb8u1) ...
Adding system user `mongodb' (UID 113) ...
Adding new user `mongodb' (UID 113) with group `nogroup' ...
Not creating home directory `/home/mongodb'.
Adding group `mongodb' (GID 121) ...
Done.
Adding user `mongodb' to group `mongodb' ...
Adding user mongodb to group mongodb
Done.
Setting up mongodb (1:2.4.10-5+deb8u1) ...
Processing triggers for libc-bin (2.19-18+deb8u7) ...
Processing triggers for systemd (215-17+deb8u6) ...
查詢是否已有 mongodb 使用者 :
pi@raspberrypi:~ $ grep mongodb /etc/passwd
mongodb:x:113:65534::/home/mongodb:/bin/false
# 樹莓派 Raspberry Pi 安裝 Node.js 與 MongoDB 資料庫
# Web Development With Node And Express
沒有留言 :
張貼留言