How to stop php script in linux

藏色散人
藏色散人Original
2020-07-21 11:10:054665browse

How to stop php in Linux: First execute the command "sudo ps -ef|grep php" in the background; then execute the command "sudo kill -9 pid" or "sudo kill -15 pid" to close the executing command php script.

How to stop php script in linux

linux close the executing php script

1. If it is not executed in the background, just ctrl c to terminate the execution

2. If it is executed in the background

First execute: sudo ps -ef|grep php

Execute again: sudo kill -9 pid or sudo kill -15 pid

pid is the process number detected by the ps command.

Recommended: "linux tutorial"

The above is the detailed content of How to stop php script in linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn