In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the example analysis of the rescue mode experiment in CentOS, which has a certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article.
Experimental Notes of centos Rescue Model
1. It is also possible to set the boot option to DVD drive boot or USB boot in BIOS.
2. Select "Rescue installed system" from the options that appear after booting the CD, and then press enter to confirm it. The figure is as follows:
3. Language selection. Here we can choose the default. Because it is not graphical, there is no way to support Chinese. The keyboard also chooses default and press enter, as shown below:
4. In SetupNetworking, we confirm whether to enable the network according to our own needs. Here, I choose not to enable it, as shown in the figure:
5. Continue allows the virtual system (that is, Rescue environment) to find the installed Linux system and mount it to / mnt/sysimage in read-write mode. This is the most commonly used method. Read-Only is mounted read-only without any modification. When the partition cannot be mounted with Continue and Read-Only, we use Skip method to find the partition ourselves, without system help, which is not suitable for beginners. Advanced is used to configure storage-related features, as shown in the figure:
6. The hint in the following figure is that the Linux system has been hung in the / mnt/sysimage directory. If we want to get the root environment, we need to execute "chroot/mnt/sysimage".
Press enter twice in a row to enter the following mode:
The meanings of these three models are:
Shell: directly enter the command line, and you can edit files, change users' passwords, etc.
Fakd: diagnostic mode
Reboot: reboot directly
7. Select shell and enter the root environment, as shown in the figure below in the root environment.
8. When you enter the root environment, you cannot manipulate the files in the Linux system on the hard disk. You have to enter the chroot/mnt/sysimage command before you can manipulate the files on the hard disk, as shown in the figure:
Enter chroot / mnt/sysimage and press enter to find that the original bash-4.1 will become sh-4.1. At this time, you can manipulate the files on the hard drive.
Reboot restart is not supported in sh-4.1. You must exit to bash-4.1 before you can restart the system using reboot. After rebooting the system, select "Bootfrom local drive" to enter the system normally.
Thank you for reading this article carefully. I hope the article "sample Analysis of Rescue Mode experiment in CentOS" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.