search
HomePHP FrameworkSwooleHow to keep swoole on

How to keep swoole on

Dec 13, 2019 pm 04:45 PM
swoole

How to keep swoole on

#swoole can be always enabled by starting the daemon process.

A daemon is a long-term survival process that is not controlled by the terminal and can run in the background.

Swoole officially also provides us with the configuration option daemonize. The daemon process is not enabled by default. If you want to enable the daemon process, just set daemonize to true.

Daemonization. When daemonize => 1 is set, the program will go to the background and run as a daemon process. This must be enabled for long-running server-side programs.

If the daemon process is not enabled, the program will be terminated when the ssh terminal exits.

The daemon process has advantages and disadvantages. After we enable the daemon process, all standard output in the server will be discarded. In this way, we will not be able to track error messages such as whether the process is abnormal during operation.

For convenience, swoole provides us with another configuration option log_file. We can specify the log path, so that swoole will record all standard output into the file when running.

Recommended learning: swoole video tutorial

The above is the detailed content of How to keep swoole on. 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 Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools