
What should I do if workerman fails to start?
Workerman fails to start because the port is occupied. The solution is: first use the command "netstat -anp | grep port number" to find out which program occupies the port; then stop the corresponding program to release the port.
Dec 12, 2019 pm 01:31 PM
How does worker open the port?
How to open the port in workererman: First, request a security policy file on port 843 of the corresponding server; then add the code "<?php use Workerman\Worker;require_once __DIR__ . ''" in workererman to open the port.
Dec 12, 2019 pm 01:23 PM
What can workerman do in the project?
Workerman can develop tcp proxy, ladder proxy, game server, mail server, ftp server, and even develop a php version of redis, php version of database, php version of nginx, php version of php-fpm, etc. in the project.
Dec 12, 2019 am 11:11 AM
How to develop worker cluster
GatewayWorker is based on a project framework developed by Workerman; GatewayWorker uses the Register service to establish divided clusters. The same cluster uses the same Register service IP and port.
Dec 12, 2019 am 10:20 AM
Can workerman be executed in multiple processes?
Workerman can be executed by multiple processes. In order to give full play to the performance of the server's multi-CPU, WorkerMan supports multi-process and multi-tasking by default. WorkerMan starts a main process and multiple sub-processes to provide services to the outside world. The main process is responsible for monitoring the sub-processes, and the sub-processes independently monitor network connections and receive, send and process data.
Dec 12, 2019 am 10:10 AM
What to do if workerman connection error occurs
If the port is occupied, it cannot be started. You can use the command netstat -anp | grep port number to find out which program occupies the port, and then stop the corresponding program to release the port to solve the problem. If the program corresponding to the port cannot be stopped, you can solve the problem by changing the worker port.
Dec 12, 2019 am 10:00 AM
How to multi-thread workerman
Workerman has a multi-threaded version of MT that relies on the pthreads extension. workerman\mqtt is an asynchronous mqtt client library based on workerman, which can be used to receive or send mqtt protocol messages.
Dec 12, 2019 am 09:58 AM
What are the steps to use workerman?
Create a websocket Worker to maintain a long client connection; create a text Worker inside the websocket Worker; open an internal port to facilitate the internal system to push data; push data to the uid page through the workererman; and return the push results.
Dec 12, 2019 am 09:49 AM
Does worker charge?
There is no charge for Workerman. Workerman is open source and free software, and the license agreement is MIT. The MIT License is one of the most widely used software licensing terms. Compared with other common software licensing terms, MIT is a relatively loose software licensing term.
Dec 12, 2019 am 09:40 AM
Is worker efficient?
The worker is efficient. Workerman is completely developed using PHP. Applications developed using Workerman can run independently without relying on containers such as php-fpm, apache, and nginx. This makes it very convenient for PHP developers to develop, deploy, and debug applications.
Dec 12, 2019 am 09:32 AM
How does workerman implement group chat?
First, establish a websocket connection between the web page and GatewayWorker. After the web page accepts the client_id, it triggers an ajax request and sends the client_id to the mvc backend. Then call Gateway to implement id binding, post/get page requests to the mvc framework for unified processing, and so on.
Dec 12, 2019 am 09:31 AM
How does workerman work?
The command line operation uses php start.php start to start workererman. First download workerman, https://www.workerman.net/download; after downloading, create a new file start.php in the workerman file.
Dec 12, 2019 am 09:23 AM
Prevent workererman from exiting due to terminal shutdown under Linux system
The solution to prevent Workerman from exiting due to terminal shutdown under Linux system: First, Workerman has two startup modes under Linux system: 1. Debug mode; 2. Daemon mode. Since closing the terminal in daemon mode does not affect workererman, it can be started in daemon mode.
Dec 11, 2019 pm 01:42 PM
Workerman cannot be started under Linux system
The reason why Workerman cannot be started under the Linux system is: the [event] extension is not installed and the [so] file does not exist. If there are few online users (a few hundred users), you do not need to install this extension. The solution is: comment out this extension in the [php.ini] configuration file to solve the problem.
Dec 11, 2019 pm 01:18 PM
Hot tools Tags

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

vc9-vc14 (32+64 bit) runtime library collection (link below)
Download the collection of runtime libraries required for phpStudy installation

VC9 32-bit
VC9 32-bit phpstudy integrated installation environment runtime library

PHP programmer toolbox full version
Programmer Toolbox v1.0 PHP Integrated Environment

VC11 32-bit
VC11 32-bit phpstudy integrated installation environment runtime library

SublimeText3 Chinese version
Chinese version, very easy to use
