Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
以下を使用して、Linuxサーバーでプログラムを実行しています。
$ nohup <your_script> &
思い通りに走り続けています。でもやめたい。誰もそれを行う方法を知っていますか?
psを使用してプロセスのpidを取得し、killを実行します。
Kill -9 pid
プロセスIDを見つけて、プロセスを強制終了します。
ps aux | grep <your_script>
2番目の番号はPIDです。その番号を取得して、次の宛先に渡しますkill。
kill
kill -9 <PID>
または、次を使用することもできますkillall。
killall
killall <your_script>