[Project] Full-stack development of medical applets Chapter 1 Course introduction 1.3 Installing virtual machines and Linux systems

[Project] Full-stack development of medical applets

insert image description here

Chapter 1 Course Introduction

1.3 Install virtual machine and Linux system

1.3.1 Why use a virtual machine

Because the database of this course uses HBase+Phoenⅸ, the Linux environment must be used, so we can only build the Linux system on the local computer.

If you use the Docker environment, you can easily build these environments. By the way, we can install both Redis and RabbitMQ into
Docker. Although both Windows and MacOS systems can directly install Docker, this kind of Docker is a castrated version, and it cannot play
all the real functions of Docker. For example, virtual IP is not supported, and HBase also has running problems, so it is strongly recommended that you install Docker on the virtual machine.

Here I suggest that you install the VirtualBox virtual machine, which is free to use and has very few bugs. Unlike VMware virtual machines, which are full of bugs, for example, SSH
connection upload files will be disconnected and packet loss and so on. [Good guy, another saying I haven't heard before]

You can go to the VirtualBox official website (https://www.virtualbox.org/wiki//Downloads) to download the installation file of this virtual machine.

The author will not change here, just use

insert image description here

Students who use Apple computers with M1 chips, because HBase±Phoenix does not support the ARM version of Linux environment, so even if you successfully install a Linux system on M1, you cannot run HBase and Phoenixⅸ. The teacher suggested using the cloud host directly.

1.3.2 Necessary conditions for installing a virtual machine

If you are installing a virtual machine on a Windows: system, you must first enable the CPU virtualization function on the motherboard BIOS screen. If you do not enable this function, you will not be able to
install the Docker program in the future. The desktop BIOS setting is relatively simple, such as Intel CPU, in the CPU virtualization settings, select
Enabled, and then save the BIOS settings.

If it's a laptop, it's complicated. For example, Xiaomi notebooks have CPU virtualization enabled by default, and there is no
setting in the BIOS that can switch CPU virtualization, which is quite good. The BIS0 interfaces of laptops such as Dell, HP, Samsung, Lenovo, etc. are all different, so you can only use Baidu
to see how to enable CPU virtualization for your laptop. The MacOS system does not need to enable CPU virtualization, because it is already enabled by default,
so the MacOS computer with Intel CPU can directly install the virtual machine software. ,

Coincidentally, I am Redmi Notebook.

insert image description here

1.3.3 Using a virtual machine to install a Linux system

The installation of the VirtualBox virtual machine is relatively simple, basically just select the default option. During the process of installing VirtualBox on the Windows system, a pop-up window will pop up to install the virtual network card driver, and you can choose to agree.

Here I use VMware

The Linux system I choose is CentoS7, which is the most suitable for use on servers among many open source and free Linux distributions. It is safe and stable. The installation
file is included in the git project of this course. Let's find the 1OS image file of CentoS7.

The author will not post here, but attach a previous blog:

https://dingjiaxiong.blog.csdn.net/article/details/129284368

insert image description here

I will quickly start a new virtual machine

The teacher gave the virtual machine 6 G... , then I will give 5, I can't help it, the teacher recommends no less than 4

insert image description here

insert image description here

about 5

insert image description here

After the installation is complete, set a static address

You can also refer to the blog given by the author above to configure static IP, here I will post a picture of the result

insert image description here

Of course, the author directly used the previous virtual machine here, but changed the size and memory

insert image description here

2 Use NAT network

It is enough to check that during installation, mainly for the convenience of accessing the Internet.

ping Baidu

insert image description here

OK if you can pass

insert image description here

The native Windows can also ping the virtual machine.

insert image description here

The virtual machine can ping the V8 NIC.

Guess you like

Origin blog.csdn.net/weixin_44226181/article/details/130480204