Windows node. JS Development Environment Configuration

Source: Internet
Author: User
Tags install mongodb yum install mongodb administrator password install node install redis

First step: Install VirtualBox (Install as Administrator)

1. After the installation is complete, open VirtualBox, click "New" button, enter the information, "Next" (name can be arbitrary)

2. Set memory to 1024MB, "next", "create", "Next", "Next", "create"

Step Two: Install CentOS (select DVD ISO, first link)

1. Configuring CentOS in VirtualBox

2. Click "Start", select "Install CentOS" with the upper and lower keys, select the language-"Chinese", "done"

3. Select "Software SELECTION", left select "Basic Web Server", right Select "Development Tools", "Done"

4. Select "Installation DESTINATION", click "ATA VBOX harddisk" two times, "done"

5. Click "Begin Installation" to install, click "ROOT PASSWORD", set the administrator password, "done", wait for the installation to complete (five minutes or so)

6. After the installation is complete, click "Reboot", select default, enter "root", enter the administrator password you set before

7. NIC configuration: Input VI/ETC/SYSCONFIG/NETWORK-SCRIPTS/IFCFG-ENP0S3, enter

8. Modify the start of the network card: Enter the capital letter "G", the cursor moves to the last line, use the left and right keys, enter the lowercase letter "I", "no" to "yes", press "ESC" Exit Edit, enter: Wq return to save

9. Restart the virtual machine: input systemctl restart Network, enter

10. Check to see if the NIC is assigned to an IP address, and if the IP address is 10, the configuration is successful and the network is restarted (systemctl restart networks)

Step three: Install Xshell and XFTP 5

Fourth Step: Install node. js, MongoDB, Redis, NPM

1. Open Xshell, enter SSH [email protected] 22

2. Enter yum install Epel-release,y, y

3. Enter yum install Nodejs,y, y, enter node--version, the version number indicates that node has successfully installed

4. Enter the Yum install Mongodb-server,y

5. Enter the Yum install Mongodb,y

6. Enter Yum install Redis,y, enter REDIS-CLI--version to check if the installation is successful

6. Enter the Yum install Npm,y

7. Enter NPM Config set Registry https://registry.npm.taobao.org

Windows node. JS Development Environment Configuration

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.