CentOS7 forgotten password reset method

Five years ago, Zhiju wrote about how to reset a forgotten password in Linux (centos). At that time, it was still a centos6. Yes, record it here so that you can find it easier next time you encounter it.
To be honest, I forgot to take screenshots, but the early startup is similar to centos6. You can refer to: https://www.zrblog.net/12719.html
First, restart the server, and then press esc key until the system selection interface appears, press e (this step is similar to centos6)

[5.1 Discount] 50% off on 80VPS, starting from 30 yuan in the United States / starting from 75 yuan in Hong Kong

May Day is coming soon, and various IDCs are also launching special Labor Day discounts. There may be more Chinese IDC May Day promotion information recently, so please pay attention. 80VPS is a well-established Chinese VPS service provider. It provides more than ten computer room products including self-operated and agent products at home and abroad.

OneProvider: Free 10 days VPS-512MB/1GB/50GB/1TB

OneProvider is a foreign host provider that provides VPS hosts in North America and Europe. Currently, the host provider has released a free discount code for the first month. The original price is as low as $18/month for a VPS. It is currently available for a 10-day free trial. , no hidden consumption, no need to bind a credit card, awesome!

Subscribe to VPS Offers