Node project deployed to Linux server (2): virtual machine system network card configuration

Time:2021-3-29

The following is a description of the steps of system network configuration. For the creation of centos-7 virtual machine, please refer to the previous article.

Enter the user interface after entering the user name and password for the first time
1. Enter ifconfig (if it does not exist) orip addrThe red box is our network card name eth0
Node project deployed to Linux server (2): virtual machine system network card configuration

2. By orderll /etc/sysconfig/network-scripts/View all network cards in the target folder.If it doesn’t exist, create or copy a corresponding file through the command, and change the name to ifcfg-eth0; the reason why I have enp0s10f0 is that I saw this name when I was executing IP addr.
Node project deployed to Linux server (2): virtual machine system network card configuration

3. Inputvi /etc/sysconfig/network-scripts/ifcfg-eth0, please refer to the following screenshot for editing,:wqsign out!
Node project deployed to Linux server (2): virtual machine system network card configuration

4. Implementationservice network restartRestart the network
PS: I have a problem at this step. How to solve this problem
Node project deployed to Linux server (2): virtual machine system network card configuration
The solution is to click herelink
Node project deployed to Linux server (2): virtual machine system network card configuration

5. If there is no problem above

ping  www.baidu.com   #Test whether the network is normal
IP addr # view IP address

Node project deployed to Linux server (2): virtual machine system network card configuration

This is the end of network configuration. Next, we will start to build the necessary environment, download and install node.js , download and install mogodb, and finally deploy the project successfully.

Deploy node project to Linux server (3): install node and mongodb and start the project successfully

Recommended Today

Flutter learning notes “plug ins”: routing plug-in fluro

Flutter itself providesNavigatorWidget to implement the routing function of the application. But the use of some routing plug-ins can help us more easily and quickly realize the functions of jump and value transfer between the pages of the flutter application. In this note, we’ll mainly learn about the fluro plug-in. 1. The project introduces fluro […]