Install virtual machine (VMware) nanny-level tutorial and configure the virtual network editor and install Windows Server as well as the host computer to access the virtual machine and configure the server environment

Table of contents

1. Operating system

1.1.What is an operating system?

1.2. Common operating systems

1.3. The difference between personal version and server version

1.4. Various versions of Linux

2. Installation of VMware Wworkstation Pro virtual machine

1. Download and installation

Note: VMWare virtual network card

2. Configure the virtual network editor

3. Install and configure Windows Server

1. Create a virtual machine

2. Configure windows image

3.Install Windows Server 

3. Local machine access to virtual machine

1. Terminal access

2. Remote connection access

Solution 1: Unable to connect:

Solution 2 for unable to connect:

4. Configure the server environment 

1.java environment variables

2.Tomcat 


1. Operating system

1.1.What is an operating system?

Operating System (OS for short) is a type of system software that is the bridge between computer hardware and application software. It manages the computer's hardware and software resources, provides interfaces and services to applications, and coordinates the running of applications. The operating system is one of the most basic software in a computer system. It controls all activities of the computer, including input and output, processing data, managing storage, coordinating processes and network communications, etc. Common operating systems include Windows, macOS, Linux, Unix, etc.

1.2. Common operating systems

  • windows operating system

The Microsoft Windows series operating systems are graphical operating systems designed based on MS-DOS designed by Microsoft for IBM machines. From the earliest DOS version, win 95, win 97, win 98, win 2000, win 2003 (server operating system), win xp, win vista, win 7, win serve 2008 (server operating system), win 8, win server 2012 (server operating system), win 10, win server 2016 (server operating system), win 11.

  • UNIX operating system

UNIX is basically installed on the server. It has no user interface and is basically a command operation. So when you enter the system, there is a dark interface, and then a cursor flashes. There is no entertainment software, I can't view pictures or listen to music.

  • Linux operating system

lLinux is considered the successor of Unix. Linux inherits many features of Unix and adds some new functions. Linux follows the open source route. It is free and anyone can make modifications and then develop their own operating system. For example, the well-known ones include debian, Ubuntu, centos, and Hongqi. Similarly, Linux is mainly used on servers and is rarely used by ordinary users.

  • mac operating system

macos is an operating system that runs on Apple's Macintosh series of computers, and is basically familiar to Apple users. macos has a good user experience and gorgeous user interface. In fact, what few people know is that macos is a product of the Unix system family.

  • embedded operating system

Embedded systems use a very wide range of systems (such as VxWorks, eCos, Symbian OS and Palm OS) as well as some reduced-function versions of Linux or other operating systems. In some cases, OS refers to a huge general-purpose program with built-in fixed application software. In many of the simplest embedded systems, the so-called OS refers to the only application program on it.

1.3. The difference between personal version and server version

  • Client operating systems are operating systems that run on desktop computers and other portable devices. In contrast, a server operating system is an operating system developed for installation and use on servers.

  • The client operating system can obtain services from the server. In contrast, a server operating system can serve many client or end-user devices.

  • A user can only use one client operating system at a time. In contrast, a server operating system can serve multiple client devices simultaneously.

  • Client operating systems can run on client devices, including tablets, desktops, mobile phones, and laptops. Instead, a server operating system can run on the server.

  • Server operating systems are more advanced and have more features than client operating systems.

  • Client operating systems are less secure than server operating systems. In comparison, server operating systems are more secure than client operating systems.

  • Some examples of client operating systems are Windows, Android, Mac, etc. In comparison, some examples of server operating systems are Mac OS X, Windows Server, Red Hat Enterprise Linux, etc.

1.4. Various versions of Linux

  • Debian

The origin of Debian's name DebianGNU/Linux was launched in 1993 by a man named Ian Murdock. His name starts with Ian, and his wife's name Debra starts with Deb.

Debian is a model of community-based Linux and is the Linux system that most closely follows GNU specifications so far. Debian was first created by Ian Murdock in 1993 and is divided into three version branches:

stable (server version), testing (stable version) and unstable (beta version).

  • Ubuntu

Strictly speaking, Ubuntu cannot be considered an independent distribution. Ubuntu is based on the unstable version of Debian and is enhanced. It can be said that Ubuntu is a nearly perfect Linux desktop system that has all the advantages of Debian and its own enhanced advantages. There are three versions:

Ubuntu based on Gnome, Kubuntu based on KDE. Xubuntu based on Xfc.

  • Redhat

In March 1994, Linux version 1.0 was officially released. Marc Ewing established RedHat Software Company and became one of the most famous Linux distributors. After http://redhat.com released redhat9 (abbreviated as rh9), it turned to the development of redhat enterprise linux (abbreviated as rhel). The difference from the past is that the new rhel 3 requires users to purchase first and promise to ensure the stability of the product. safety.

  • Fedora

Fedora and Redhat are two Linux distributions that are closely related. Since Redhat 9.0, it has no longer released a desktop version. Instead, it has cooperated with the open source community on this project, so Fedora, a Linux distribution, was born. The Fedora project is sponsored by Red Hat and is a collective name for projects developed by the open source community and Red Hat engineers. Fedora's goal is to promote faster progress in free and open source software.

Features:

1. Fedora is an open, innovative, forward-looking operating system and platform based on Linux. It allows anyone to freely use, modify and redistribute it, now or in the future. Runnable architectures include x86 (i386), x86_64 and PowerPC!

2. Fedora can be said to be the continuation of the Redhat desktop version, but it only cooperates with the open source community.

3. Fedora is an independent Linux distribution operating system.

  • hundreds

http://redhat.com After releasing redhat 9, it stopped developing redhat and turned to the development of redhat enterprise linux (abbreviated as rhel). The difference from the past is that the new rhel 3 requires users to purchase lisence first, http:// redhat.com promises to ensure product stability and security. The rhel 3 binary code is no longer available for download, but as part of the redhat service, but the source code is still open.

Features:

1. The CentOS (Community Enterprise Operating System) program is one of the "Red Hat rebuilders" after Red Hat decided in 2003 to no longer provide free technical support and product certification.

2. CentOS has fixed the redhat bug that has been discovered.

2. Installation of VMware Wworkstation Pro virtual machine

1. Download and installation

Go to vmware official website to download: vmware official website jump

VMware WorkStation 15 ProYou can choose to install and according to the actual situation of your computer VMware WorkStation 16 Pro.

The blogger here installed 16 Pro

Install vmware

Registration code:

Note: VMWare virtual network card

Right-click the network icon on the taskbar -> Open Network and Sharing Center -> Select Change Adapter Settings.

If VMware Network Adapter VMnet1and do not appear VMware Network Adapter VMnet8, the installation failed.

2. Configure the virtual network editor

Select VMnet8 and click Change Settings  

Select VMnet8, click DHCP Settings, and change the default lease of DHCP to 60 days.

3. Install and configure Windows Server

1. Create a virtual machine

Select the guest operating system and select the version you want to install

Enter the virtual machine name and select the installation location (the remaining space on the installation disk must not be less than 30G)

Once created, you will see the following picture:

2. Configure windows image

After configuration, you can click to start the virtual machine for operation.

3.Install Windows Server 

Activation code:

Choose the second one for installation, otherwise the memory consumption will be greater 

set password 

Just log in

3. Local machine access to virtual machine

1. Terminal access

First turn off the firewall in the virtual machine, otherwise access will not be possible. Turn off the firewall. This method is not that safe.

Now we can access it. This approach is actually unsafe. 

2. Remote connection access

The virtual machine is first enabled to allow remote connections.

This computer-->Properties-->Advanced system settings-->Allow-->OK

Search Remote Desktop Connection-->Fill in the virtual machine IP address

Then enter the virtual machine username and password 

This will be successful 

Notice:

If the following happens to you when connecting, please don't panic and follow my steps step by step.

Remote Desktop Connection pops up "An authentication error occurred and the requested function is not supported"

Solution 1: Unable to connect:

1. Open the Local Group Policy Editor. You can press the win+r key combination and enter the gpedit.msc command to open it.

2. Select "Computer Configuration" - "Administrative Templates" - "System" - "Credential Assignment", and select "Encrypted Database Correction" in the "Credential Assignment" setting.

3. In the "Encrypted Database Remediation" dialog box, select "Started", select "Vulnerable" for the protection level, and then click Apply.

After following the above steps, return to the remote desktop function and connect again to use it normally.

Solution 2 for unable to connect:

Win + R and enter regedit to open the registry.
Then expand HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\ according to the following directories in order, and then create a two-level folder in the System directory, that is, a new item, CredSSP\Parameters .
Then right-click under Parameters -> New DWORD 32-bit, and change the name to AllowEncryptionOracle.

4. Double-click and change the value to 2, and the connection will be successful.

4. Configure the server environment 

1.java environment variables

1. First create two new folders in the virtual machine to store my software.

2.Set two folders as shared

3. Win+r enter \\192.168.37.128, then enter the account name and password. After success, the folder we shared will appear.

4. Copy the software we need. At this time, our virtual machine will also have these software.

5. Just install it directly 

6.java environment variable configuration

Copy jdk path

Add environment variables

This PC-->Properties-->Advanced system settings-->Advanced

Edit in path, move the cursor to the end and enter %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin; 

 

cmd to check if the installation is successful 

2.Tomcat 

 Unzip and start directly

Use the virtual machine IP to access the test. If it appears, it means success.

Guess you like

Origin blog.csdn.net/weixin_74268571/article/details/134064258