search
HomePHP FrameworkSwooleHow to shut down the swoole daemon

How to shut down the swoole daemon

Dec 09, 2019 am 10:28 AM
swoole

How to shut down the swoole daemon

1. Use SWOOLE in the project today, accidentally open the guardian process in the configuration (that is, the process is running in the background) (Recommended learning: # swoole video tutorial)

How to shut down the swoole daemon

##2. When debugging the socket code, the process ended and was restarted, and it always showed that the port was occupied

How to shut down the swoole daemon

3. Even if the terminal command running window is closed and reopened at this time, the port is still occupied and the process cannot be started again. The solution is as follows:

The first step is to change the daemon process in the code to 0

How to shut down the swoole daemon

The second step : Find the pid of this port number (the port my code listens to is 9503), and get the PID

The command is as follows:

netstat -apn | grep 9503

How to shut down the swoole daemon

Step 3: Kill the process

The command is as follows:

kill -9 186691

At this time, you can restart the listening program. No more error reports that the port is occupied

How to shut down the swoole daemon

The above is the detailed content of How to shut down the swoole daemon. 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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function