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 linux restarts the process

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

Share

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

This article mainly introduces how to restart the process of linux, the article is very detailed, has a certain reference value, interested friends must read it!

How does linux restart a process?

Method steps for linux to restart the process:

1. First use ps-ef to find the execution statement of the process and keep it; the purpose of this is to keep the parameters of the process execution unchanged

For example, the process of restarting a single mongodb:

Find:

Ps-ef | grep mongod

Obtain:

Root 2928 2903 0 14:51 pts/0 00:00:00 grep / usr/local/mongodb/bin/mongod-- config / etc/mongodb.cnf

2. Use kill-9 PID to kill the process

Kill-9 2928

3. Restart the process using the reserved process statement

Execute:

/ usr/local/mongodb/bin/mongod-- config / etc/mongodb.cnf

That's it.

This is all about how linux restarts the process. Thank you for reading! Hope to share the content to help you, more related knowledge, 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