1. Create a service

Configure the hard disk size and type

Select System Centos7

Then wait for the configuration timing to finish

Select a language and slide to the bottom to find Chinese. If you can’t slide, hold down the left Ctrl key on the keyboard to exit to Windows and swipe again

After completing the configuration, click Start installation

After the operation is complete, you need to configure the default password of the root user. You can choose whether to add or not to the password

Configuration play restart the server is installed, boot when you need to enter the account password



2. Configure the IFCFG link

CD /etc/sysconfig/network-scripts/ # edit file vi ifcfg-enp0s3 # File content TYPE=Ethernet PROXY_METHOD= None BROWSER_ONLY=no BOOTPROTO=static # Modify DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no IPV6_ADDR_GEN_MODE=stable-privacy NAME=enp0s3 UUID=aa6d8333-e86e-49a7-87c3-4e3a3b79fdb2 DEVICE=enp0s3 ONBOOT=yes # IPADDR=192.168.99.59 # Local address GATEWAY=192.168.99.1 # GATEWAY NETMASK=255.255.255.0 # Service # Save :wq Service network restartCopy the code

Vi /etc/resolv.conf edit DNS server, nameserver 114.114.114.114 (this is domestic DNS server system, or more easy to use. Google can use 8.8.8.8)Copy the code

Restart the success

Run commands to check if your IP address has changed. Some are ifconfig. The following commands for our service may not be applicable to all

# Query IP addrCopy the code

The configuration is successful, and then we link the IP in Windows

Ping 192.168.99.59Copy the code

The request has run out. That must be something we have a problem with

Let’s take a look at how the service links to the web

Right click to view services click Settings and select Network

Found a problem, we did not choose the bridge network card so can not connect

Confirm the test again, the link is successful

3. Configure Chinese

# to check if you have any Chinese package locale -a | grep "zh_CN" echo $LANG # # check what are the current language editing language vi/etc/locale. The conf # written content, Locale.conf ="zh_CN"Copy the code

\