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

How to enter single user mode in CentOS 7.4

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

Share

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

How to enter single-user mode in CentOS 7.4.This article gives a detailed introduction to the corresponding analysis and solutions, hoping to help more partners who want to solve this problem to find a more simple and feasible way.

1.13 single user mode

1. When you forget your virtual machine login password, enter single-user mode and restart the virtual machine. The way to restart.

4. Enter command line mode, type a few commands, use the "chroot / sysroot/" command, and first restore to the original system.

3. Shut down and view the virtual machine settings. Iso image is also known as the optical drive, whether it is selected or not, and the device status.

3. The process of cloning. Just click on the next step.

4. The IP address of the clone needs to be changed, otherwise, it conflicts with the cloned system. Delete the UUID during editing, and then restart the network service. Use the command "systemctl restart network.service" to restart the network service and use the ifconfig command to view the network IP.

six. Clone the IP address of the machine, on the xshell, copy the original system IP. Change the IP address.

1.16 Linux machines log in to each other

1. Use the command "ssh 192.168.74.129" to connect to the system with the IP address 192.168.74.129, the IP address is the IP address of your system.

How to connect between 4.linux, key authentication, system 1 has a private key, system 2 has a public key, how do they connect? Use the command "ssh-keygen". Generate key pair

5. Copy the public key content from system 1 to system 2, and use the # key to annotate the data from the clone system.

6. Turn off selinux on the cloned system. Then use "ssh-p 22 root@192.168.74.100" to connect to the cloned system. On top of centos 7. At this time, connect the system IP address on the centos7, and you don't need a password.

This is the answer to the question about how to enter single-user mode in CentOS 7.4. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.

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