The following column workerman Getting Started Tutorial will introduce you to the installation of Workerman and the solutions to the problems encountered. I hope it will be helpful to friends in need!
1. Workerman installation
workerman is a socket framework of PHP, which simplifies socket programming and has been used by many enterprises. Today I installed workererman under ngix php in centos. The process is recorded as follows.
Tutorial given on the official website:
But I have already installed the php environment, so I skip the steps 1, 2, 3, and 4 above and go directly Download the workerman zip package and install it in step 5.
Enter the workerman directory to install as follows. Prompt error
[root@localhost server]# ls mysql nginx-1.4.4 phpredis workerman mysql-5.6.21 php redis-2.8.19 nginx php-5.5.7 redis-2.8.19.tar.gz [root@localhost server]# cd workerman/ [root@localhost workerman]# cd workerman/ [root@localhost workerman]# ls bin Common conf Core logs [root@localhost workerman]# cd bin [root@localhost bin]# ls workermand [root@localhost bin]# ./workermand start Workerman is starting ... ----------------------- EXTENSION ------------------------------ * pcntl [NOT SUPORT BUT REQUIRED] You have to enable pcntl Workerman start fail
The extension pcntl is missing. This extension is required by Workerman. This extension is included in the php package, but I did not have --enable-pcntl when compiling php. As expected, it is in the php source code package. Found this extension source code package, the following is to add this extension.
After adding this extension, restart php-fpm, nginx, and open workererman again
[root@localhost bin]# ./workermand start Workerman is starting ... ----------------------- EXTENSION ------------------------------ * sysvshm [NOT SUPORT] * sysvmsg [NOT SUPORT] * libevent [NOT SUPORT] ------------------------ WORKERS ------------------------------- user worker listen processes status root BusinessWorker none 32 [OK] root Gateway tcp://0.0.0.0:8480 4 [OK] root StatisticProvider tcp://0.0.0.0:55858 1 [OK] root StatisticWeb tcp://0.0.0.0:55757 1 [OK] root StatisticWorker udp://0.0.0.0:55656 1 [OK] ---------------------------------------------------------------- Workerman start success ...
workerman is installed successfully.
For more workerman knowledge, please pay attention to the workerman tutorial column.
The above is the detailed content of Workerman installation and problem solving. For more information, please follow other related articles on the PHP Chinese website!

Workerman's WebSocket client enhances real-time communication with features like asynchronous communication, high performance, scalability, and security, easily integrating with existing systems.

The article discusses using Workerman, a high-performance PHP server, to build real-time collaboration tools. It covers installation, server setup, real-time feature implementation, and integration with existing systems, emphasizing Workerman's key f

The article discusses optimizing Workerman for low-latency applications, focusing on asynchronous programming, network configuration, resource management, data transfer minimization, load balancing, and regular updates.

The article discusses implementing real-time data synchronization using Workerman and MySQL, focusing on setup, best practices, ensuring data consistency, and addressing common challenges.

The article discusses integrating Workerman into serverless architectures, focusing on scalability, statelessness, cold starts, resource management, and integration complexity. Workerman enhances performance through high concurrency, reduced cold sta

The article discusses building a high-performance e-commerce platform using Workerman, focusing on its features like WebSocket support and scalability to enhance real-time interactions and efficiency.

Workerman's WebSocket server enhances real-time communication with features like scalability, low latency, and security measures against common threats.

The article discusses using Workerman, a high-performance PHP server, to build real-time analytics dashboards. It covers installation, server setup, data processing, and frontend integration with frameworks like React, Vue.js, and Angular. Key featur


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

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Atom editor mac version download
The most popular open source editor

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Dreamweaver Mac version
Visual web development tools

Notepad++7.3.1
Easy-to-use and free code editor