Birmingham mumbai


Dealing with misbehaving processes



Download 15,21 Mb.
Pdf ko'rish
bet234/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   230   231   232   233   234   235   236   237   ...   482
Bog'liq
Mastering Ubuntu Server Gain expertise in the art of deploying, configuring, managing, and troubleshooting Ubuntu Server by Jay LaCroix (z-lib.org)

Dealing with misbehaving processes
Regarding the 
ps
 command, by this point you know how to display processes 
running on your server, as well as how to narrow down the output by string or 
resource usage. But what can you actually do with that knowledge? As much as we 
hate to admit it, sometimes the processes our server runs fail or misbehave and you 
need to restart them. If a process refuses to close normally, you may need to kill that 
process. In this section, we introduce the 
kill
 and 
killall
 commands to serve that 
purpose.
The 
kill
 command accepts a PID as an argument and attempts to close a process 
gracefully. In a typical workflow where you need to terminate a process that won't 
do so on its own, you will first use the 
ps
 command to find the PID of the culprit. 
Then, knowing the PID, you can attempt to 
kill
 the process. For example, if PID 
31258
 needed to be killed, you could execute the following:
sudo kill 31258 
If all goes well, the process will end. You can restart it or investigate why it failed by 
perusing its logs.


Chapter 7

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   230   231   232   233   234   235   236   237   ...   482




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish