In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Do not know how to use linux systemctl commands to manage system services? In fact, it is not difficult to solve this problem. Let the editor take you to learn how to solve it. I hope you will gain a lot after reading this article.
After that, Centos7 has completely changed from init to systemd startup mode, and the mechanism of systemd starting service is mainly handled by this system service management instruction of systemctl. Systemctl also includes most of the functions of service / chkconfig / setup / init in usage.
Syntax format: systemctl [parameters] [Service]
Common parameters:
-start startup service-stop stop service-restart restart service-enable causes a service to boot-disable shuts down a service boot self-boot-status to view service status-list-units-- type=service enumerates all started services
Reference example
Start the httpd service:
[root@linuxcool ~] # systemctl start httpd.service
Stop the httpd service:
[root@linuxcool ~] # systemctl stop httpd.service
Restart the httpd service:
[root@linuxcool ~] # systemctl restart httpd.service
View the status of the httpd service:
[root@linuxcool ~] # systemctl status httpd.service
Make the httpd boot automatically:
[root@linuxcool ~] # systemctl enable httpd.service
Cancel httpd self-boot:
[root@linuxcool ~] # systemctl disable httpd.service
List all started services (unit module):
[root@linuxcool] # systemctl list-units-- type=service Thank you for reading this article carefully. I hope it is helpful for the editor to share the service content of the systemctl command management system using linux. At the same time, I also hope that you can support us, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.