The most common cause of Workerman startup failure at work is that the startup script cannot find the main process pid file. The main process pid file of Workerman versions before 3.2.2 is stored by default in Under /tmp/, some systems will clean the /tmp/ directory regularly, causing the system to fail to start.
Solution:
Method 1: Upgrade workererman to version 3.2.2 or above. The workererman3.2.2 version no longer stores the pid file under /tmp/, and also provides php xxx.php The kill command is convenient for forcibly killing the worker process.
Method 2: You can run ps aux | grep start.php | awk '{print $2}' | xargs kill -9 to forcibly kill the process. Then refer to the manual pidFile to store the pid file in a safe place.
Recommended: workerman tutorial
The above is the detailed content of Reasons and solutions for workerman failure to start. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

Dreamweaver CS6
Visual web development tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

Atom editor mac version download
The most popular open source editor

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.
