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 solution to the continuous cycle of CentOS 7 login interface

2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article introduces the solution of the continuous cycle of the CentOS 7 login interface, the content is very detailed, interested friends can refer to, hope to be helpful to you.

The author installs the Gmsh software on CentOS 7 and writes the installation path of Gmsh into .bashrc according to the online blog post:

After adding the path, use the source command, and the following results appear:

Bash: sed: command not found.

one

When the author restarts the virtual machine and logs in to the root account, he encounters the problem of endless loop in the login interface, but it is normal to log in to the ordinary user account.

Log in to the user account, switch to root permissions, and find that ls, vim, yum, rpm and other commands cannot be used.

Note: the author works under the root account.

Reason

The reason why the author encountered this situation is that there was an error in configuring the system environment variables.

The system environment variable PATH can be followed by many values, but the author's practice is to assign / root/project/03-gmsh/01-gmsh-4.5.1/02-gmsh-4.5.1-Linux64/bin to PATH, so that the value of PATH is unique, then the system can not find the content / commands under other paths, and naturally cannot use these commands.

You can try:

If you enter the command PATH=, the system does not use the command properly.

If you enter the command PATH=/usr/bin/, the system can access the commands under the / usr/bin/ path.

Solution.

After logging in to the user account, you can do the following:

Main directory

Show hidden files

.bashrc

Modify the configuration content of environment variables

The modifications are as follows:

After adding $PATH:, PATH can access other paths in the .bashrc file, and the problem is solved.

Summary

Working on a root account is convenient, but it is risky and needs to be weighed for people who are not familiar with Linux.

Important data files need to be backed up. For example, zip-r project.zip project/.

So much for the solution to the continuous cycle of the CentOS 7 login interface. I hope the above content can be of some help to you and learn more. If you think the article is good, you can share it for more people to see.

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