Home >Operation and Maintenance >Linux Operation and Maintenance >How to stop php script in linux
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.
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!