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