current location:Home > Technical Articles > PHP Framework > Workerman
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Daily Programming WeChat Applet Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- 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.
- Workerman 3374 2019-12-12 13:31:06
-
- 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.
- Workerman 3791 2019-12-12 13:23:56
-
- 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.
- Workerman 2774 2019-12-12 11:11:22
-
- 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.
- Workerman 3576 2019-12-12 10:20:10
-
- 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.
- Workerman 5610 2019-12-12 10:10:41
-
- 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.
- Workerman 2853 2019-12-12 10:01:39
-
- 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.
- Workerman 4194 2019-12-12 09:58:53
-
- 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.
- Workerman 3566 2019-12-12 09:49:06
-
- 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.
- Workerman 2137 2019-12-12 09:40:46
-
- 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.
- Workerman 2389 2019-12-12 09:32:37
-
- 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.
- Workerman 6854 2019-12-12 09:32:14
-
- 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.
- Workerman 2949 2019-12-12 09:23:18
-
- 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.
- Workerman 2914 2019-12-11 13:42:17
-
- 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.
- Workerman 2530 2019-12-11 13:18:46
-
- Cannot connect to workererman under CentOS7
- The solution to the problem of being unable to connect to the Workerman framework under CentOS7 is: 1. First, you need to confirm whether the corresponding port is open, for example, whether the [Alibaba ecs] security group port is open; 2. If the port is open, it may be because the firewall has not been closed, execute the corresponding Just command to temporarily turn off the firewall.
- Workerman 2404 2019-12-11 11:37:48