20160109 the use of common development tools for node. js

Source: Internet
Author: User
Tags sublime text oracle vm virtualbox vm virtualbox

Http://www.jikexueyuan.com/course/997.html

Use of development tools

Network settings for Oracle VM VirtualBox virtual machines

Fix the problem: using virtual machines in different places, the IP address of the virtual machine will change constantly, and do not want to modify the virtual machine's host file.

Instead of using a bridge, find the "network" and use NAT mode so that VirtualBox generates a virtual router that communicates with the network where the physical machine resides.

Connection mode---Network address translation NAT---port forwarding

Dot + number

Forward Port 22nd of the host (not normally used) to port 22nd of the virtual machine

Log in to Linux with a terminal to view the current network

See address with 10. Start, if not, restart the network

Then connect to the Xshell and see the successful connection.

This makes it possible to communicate with 127.0.0.1 and virtual machines under any circumstances.

Sublime text

Edit multiple lines at the same time

Select multiple rows (press CTRL), select to edit multiple lines at the same time

Edit a keyword in the full text

Select the keyword, double-click, ALT+F3, enter modify

Package Management Tools Control Packages

Installation

After copying, return to sublime text, press ctrl+~

After pasting the command, enter

Restart Sublime text. can see:

Click on it to appear:

Installing the extended SFTP

Select the install package and enter the extension "SFTP" that we need to install

Save files directly to a Linux server via the SFTP extension

After the installation is complete, add a project directory locally. In sublime text, Project---add Folder to Project

Select this item, right-click, create a new file, enter the code:

Save As, saving the file.

Select the project, choose SFTP/FTP---map to remote directory

This opens the configuration file

Modify the server, user name and password to save it.

Xshell Log on to the remote server, create the directory

Modify remote server location, press Ctrl+s to save

Go to the remote server and verify that the file does exist

Execute the file

With SFTP extensions, files can be saved directly to a Linux server without the need for file transfer between servers.

Quickly locate and open files

Use the go to menu, or press Ctrl+p

Get:

Enter its path or key character, sublime text can be positioned, and will provide a preview, convenient choice.

Integrated development Environment Webstorm

Create a project and select the node. JS Express App Project

Depending on the source code package for node. js, you can use the address provided by it, or you can choose what you have already downloaded.

Some source code and packages have been created automatically

Run

You can see the prompt, which is already running on the local port 3000.

Open the browser and enter the address

?

?

20160109 the use of common development tools for node. js

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.