Raspberry Pi. Mounting System +NODE.JS+MONGODB Series Environment

Source: Internet
Author: User
Tags install node raspbian jessie

1. Download the latest ROM on the Raspberry Pi website first

https://www.raspberrypi.org/downloads/raspbian/

Here's the choice: RASPBIAN JESSIE with DESKTOP

Date is 2017.7.5

Get files after download: 2017-07-05-raspbian-jessie.zip

After decompression: 2017-07-05-raspbian-jessie

2. Prepare the software Win32 Disk Imager

Select the newly extracted img file, specify the target USB flash drive (recommended to prepare a 16GB TF card)

Click [Write] and wait for completion

3. Basic settings for the new system

Plug the burned TF card into the Raspberry Pi and start the power on.

First boot discovery is not the same as the old version, SSH service is not started by default, need to be connected to the keyboard manually started:

Sudo/etc/init.d/ssh start

To prevent the SSH service from being lost after a reboot, add it to the self-starter command

sudo vi/etc//etc/init.d/ssh start

After successful execution of the update command:

sudo apt-get  updatesudo apt-get -y upgrade

4. Install node. js

On the official website https://nodejs.org/en/download/

Find the corresponding compiled version, here the Raspberry Pi 3, need to download ARMv7

wget https://nodejs.org/dist/v6.11.1/node-v6.11.1-linux-armv7l.tar.xz-D node-v6. 11.1-linux--xvf node-v6. 11.1-linux-armv7l.tar

The extracted directory moves to the specified location:

sudo mv Node-v6. 11.1-linux-armv7l/usr/local/nodejs?

To make a command connection:

Ln-s-f/usr/local/nodejs/bin/node/usr/local/-s-f/usr/local/nodejs/bin/npm/usr/local/bin?

Test version number:

Node-v

Installation Complete

5. Installing MongoDB

Parameters Blog < database. MongoDB. Installing MongoDB Database >

Raspberry Pi. Mounting System +NODE.JS+MONGODB Series Environment

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.