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 difference between service and systemctl

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

Share

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

This document introduces the difference between RHEL6's service and RHEL7's systemctl run-level concepts the distinction between System V init run-level systemd target name function 0 runlevel0.target, poweroff.target shutdown 1 runlevel1.target, rescue.target single-user mode 2 runlevel2.target, multi-user.target equivalent to level 33 runlevel3.target, multi-user.target multi-user text interface 4 runlevel4.target Multi-user.target is 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 viewing status distinguish between System V init commands (RHEL 6) systemctl commands (RHEL 7) 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 the startup status of services at all levels and other common commands such as System V init commands (RHEL 6) systemctl commands (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 chkconfig-- list systemctl list-unit-files-- type=service view Startup and disablement of services at all levels

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