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

How to stop the service of linux

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article introduces the relevant knowledge of "how to stop the service of linux". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

The command for linux to stop the service is "stop". The stop command can stop the service specified under linux, and the service still does not take effect after restart, and the syntax is "[service name] stop".

The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

What is the command for linux to stop the service?

The command for linux to stop service is "stop".

The commands to start, restart and stop the service are: start, restart and stop, respectively. The command format is as follows:

[service name] start [service name] restart [service name] stop

All kinds of service scripts are stored in the / etc/init.d (or / etc/rc.d/init.d) directory. Take the network service network as an example:

Start the network service: / etc/init.d/network start

Restart the network service: / etc/init.d/network restart

Stop the network service: / etc/init.d/network stop

In addition, these service scripts generally provide a status display command status; or you can add your own commands to these scripts to achieve some enhanced functions by executing "[service name] [own command]".

Examples are as follows:

Stop the ssh service

This is the end of the content of "how to stop linux Service". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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