Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of resetting root password for VMware and Centos system installation

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Today's task

The selection of 1.Linux distribution

2.vmware creates a virtual machine (centos)

3. Install and configure centos7

4.xshell configuration Connect Virtual Machine (centos)

Selectivity

Pc can choose from

-system-only Linux/windows

-dual system Windows+Linux

-Virtualization technology Windows+vmware workstation

Server

-physical machine pure system

-physical machine + vmware (vmware esxi)

-physical machine + docker

Installation

-easy installation

-Custom installation

-snapshot

Download the centos system ISO image

To install the centos system, you must have the centos system software installation program. You can visit the centos official website http://www.centos.org through the browser, then find the Downloads-> mirrors link, click and enter the download, but because this is a foreign website, the download speed must be limited.

Therefore, domestic mirror sources can be used.

Https://opsx.alibaba.com/mirror # Aliyun official mirror iso download address (this DVD image contains all the software package installers that can be installed using this software. This is the recommended image for most users. ): https://mirrors.aliyun.com/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-1810.iso

Why choose a 64-bit operating system?

What is the location and difference between 32-bit and 64-bit systems?

64-bit operating system is designed to meet the needs of mechanical design and analysis, 3D animation, video editing and creation, as well as scientific computing and high-performance computing applications. The common feature of these areas is the need for a large amount of system memory. The 32-bit operating system is designed for ordinary users.

Difference two:

64-bit operating systems can only be installed on 64-bit computers (cpu must be 64-bit) (cpu must be 64-bit), and only 64-bit software can achieve its best performance. The 32-bit operating system can be installed on either 32-bit (32-bit cpu) or 64-bit computers. Of course, 32-bit operating systems cannot perform 64-bit hardware performance.

Difference 3: operation speed

32-bit system-- > 4GB memory can only be supported by 3.5Gb64 bit system. [/ code] install VMware virtual machine [code] what is vmware? With this software, you do not need to buy another computer in order to learn linux, the virtual machine allows users to simulate the software of multiple operating systems on one machine, and the general machine configuration is adequate for the task of the virtual machine. The virtual machine can not only virtualize the hardware resources, separate the experimental environment from the real machine files to ensure data security, but also have the function of "snapshot" when you delete the core configuration of the system by hand, which immediately returns to the state before the error and saves the long time of installation. (Windows users) VMware Workstation is a powerful desktop virtual computer software that provides users with the best solution to run different operating systems on a single desktop at the same time, and to develop, test, and deploy new applications.

Download activation address: http://www.zdfans.com/html/5928.html (Mac user) VMware fusion to put it simply, virtual machine (virtual Machine) software is a set of special software, at the same time, you can use "multiple operating systems" virtual hardware + operating system = = server + OS misunderstanding: learning Linux does not need to be installed on the physical machine, time-consuming and laborious, using a virtual machine is the most appropriate way

Computer configuration is recommended for Linux learning environment:

Laptop:

1. Memory 8G2. Disk 500g SATA or 120g SSD3.i3,i5,i7 processor

Why learn Linux through the VM virtual machine?

What? Are you telling me to build a dual system again? Buddy, your bully, it takes 5 minutes to open windows. Dual system. Forget it.

Using a virtual machine to build a Linux learning environment is simple, convenient and easy to use. The most important thing is that there is almost no difference between the virtual machine simulated Linux and the real server. When you work later, ssh connects to the server instead of sitting in the 0-degree computer room to control the server. Therefore, the virtual machine to simulate the environment is the closest to the work environment to build a Linux cluster or when you need to simulate the communication of multiple servers, you can turn on several virtual machines at the same time (provided that the hardware of the machine is sufficient and the configuration of the virtual machine is low), and the virtual machine can easily meet the needs of multiple machines. Rent your own server? It is a good choice to build a Linux environment and use it for personal development and learning. But it costs money.

It is easy to modify the configuration of the virtual machine (server) without affecting your computer, and deleting the virtual machine will not affect the computer, because the virtual machine is just a program (a pile of files) running on the computer to install the virtual machine 1. Prepare vmware software, the current demonstration is the windows environment, the macos environment is not mentioned, partners in need can talk in private

two。 Vm12 is currently selected as the decompression package.

All the "next step" can be installed. There is no need to say much here.

3. After installing the vmware virtual machine, start installing Linux

Installation completed

Enter the dark interface at this time, enter the root account number and password, and successfully enter the linux system

Make sure your Linux supports virtualization

When installing RHEL 7 or CentOS 7 systems, your computer's CPU needs to support VT (Virtualization Technology, virtualization technology). The so-called VT refers to a technology that enables a single computer to divide into multiple independent resource areas and make each resource area simulate the system according to its needs. Its essence is to realize the management and redistribution of computer resources through the middle layer, so as to maximize the utilization of system resources. In fact, as long as your computer is not bought five or six years ago, the price is not less than three thousand yuan, its CPU will certainly support VT. If the error message such as "CPU does not support VT technology" is still mentioned after turning on the virtual machine, please restart the computer and enter the BIOS to turn on the VT virtualization function.

Did you forget the root password again?

For many students often forget the root password. Here to sort out how to reset the root password!

When you restart the host of the Linux system and the boot interface appears, press the e key on the keyboard to enter the kernel editing interface

Append the "rd.break" parameter to the end of the linux16 parameter line, and then press Ctrl + X to run the modified kernel program

After about 30 seconds, enter the emergency rescue mode of the system

Enter the following commands in turn, wait for the system restart operation to complete, and then log in to the Linux system with the new password

Mount-o remount,rw / sysroot chroot / sysroot passwd touch / .autorelabelexit reboot

Summary

The above is the reset root password of the VMware and Centos system installation introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support to the website!

If you think this article is helpful to you, you are welcome to reprint it, please indicate the source, thank you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report