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

What's the difference between service and systemctl?

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly introduces what different related knowledge service and systemctl have, the content is detailed and easy to understand, the operation is simple and fast, and it has certain reference value. I believe you will gain something after reading this service and systemctl article. Let's take a look at it.

The service command actually goes to the / etc/init.d directory to execute the relevant programs, and systemd is the latest initialization system (init) of the Linux system, which is used to improve the startup speed of the system, start as few processes as possible, and start as many processes concurrently as possible.

Distinction between runlevel concepts System V init runlevel systemd target names function 0 runlevel0.target, poweroff.target shutdown 1 runlevel1.target, rescue.target single user mode 2 runlevel2.target, multi-user.target equals level 33 runlevel3.target, multi-user.target multi-user text interface 4 runlevel4.target, multi-user.target equivalent to level 35 runlevel5.target, graphical.target multi-user graphical interface 6 runlevel6.target Reboot.target restart emergency emergency.target emergency Shellsystemctl management service start, restart, stop, reload, Common commands such as view status distinguish between System V init commands (RHEL 6) systemctl commands (RHEL 7) action service foo start systemctl start foo.service startup service service foo restart systemctl restart foo.service restart service service foo stop systemctl stop foo.service stop service service foo reload systemctl reload foo.service reload configuration file (do not terminate service) service foo status systemctl status foo.service view service status systemctl settings service boot, do not start, Check common commands such as service startup status at all levels, such as System V init command (RHEL 6) systemctl command (RHEL 7) function chkconfig foo on systemctl enable foo.service boot auto start chkconfig foo off systemctl disable foo.service boot does not automatically start chkconfig foo systemctl is-enabled foo.service check whether a specific service is boot auto start chkconfig-- list systemctl list-unit-files-- type=service check the startup and disable of services at each level This is the end of the article entitled "what's the difference between service and systemctl"? Thank you for reading! I believe you all have a certain understanding of the knowledge of "what's the difference between service and systemctl". If you want to learn more, you are 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

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report