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

Several runtime levels of linux

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

Share

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

0: system shutdown (shutdown) mode, the default running level of the system cannot be set to 0, otherwise it cannot be started normally, and it will shut down automatically as soon as it is turned on.

1: single-user mode, root permission, for system maintenance, prohibit remote login, just like the secure mode login under Windows.

2: multi-user mode, no NFS network support.

3: complete multi-user text mode, with NFS, log in to the console command line mode.

4: the system is not in use, it is generally not used, and it can be used to do something in some special cases. For example, when the laptop battery runs out, you can switch to this mode to make some settings.

5: graphical mode, enter graphical GUI mode or GNOME, KDE graphical interface after login, such as X Window system.

6: restart mode, the default running level cannot be set to 6, otherwise it cannot be started normally, it will always boot and restart.

In centos6, which mode is entered automatically by the / etc/inittab file

The situation is different on centos7.

Toggle the default run level to switch the run level

Unlike centos6 in centos7, its service is in

/ usr/lib/systemd/system

/ run/systemd/system

/ etc/systemd/system

And the priority three directories are etc > run > usr

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