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

Use the init command of linux to switch the system run level

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

Share

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

In this article, let's take a look at switching system runlevels using linux's init command. There is a certain reference value, friends in need can refer to, hope to help you.

The init command is a process initialization tool under Linux. The init process is the parent process of all Linux processes, and its process number is 1. The init command is one of the indispensable programs in the Linux operating system. The init process is guided by the Linux kernel and is the first process in the system.

Syntax format: init [parameters]

Commonly used parameters: coach

Shutdown 1 single user 2 multi-user 3 full multi-user mode 5 graphical interface 6 restart

Reference example

Shut down the server:

[root@linuxcool ~] # init 0

Toggle single user mode:

[root@linuxcool ~] # init 1

Toggle multiuser mode:

[root@linuxcool ~] # init 2

Toggle full multiuser mode:

[root@linuxcool ~] # init 3

Restart the server:

[root@linuxcool ~] # init 6 or above is a brief introduction to switching the running level of the system using linux's init command. Of course, you have to use the above differences in detail before you understand it. If you want to know more, welcome to follow the industry information channel!

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