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 Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- The timer in workerman does not take effect
- The reason why the timer in workerman does not take effect is that the timer cannot run before the [runAll] method is executed. All the code run before this method is executed belongs to the main process. The main process cannot have business code, and the business code of the main process will be inherited by the child process. . The solution is: just run the timer in [onWorkerStart].
- Workerman 2992 2019-12-13 09:51:14
-
- What should I do if the workerman client cannot connect?
- When the workerman client fails to connect, two errors will appear: "connection refuse" and "connection timeout". This is because the port the client connects to is wrong or the server firewall blocks the connection. The solution is to change the correct port number or temporarily close the firewall. That’s it.
- Workerman 4381 2019-12-12 14:19:15
-
- How workerman implements chat system
- Workerman can cooperate with the thinkphp framework to implement a chat system. Use $worker->connections to obtain all user connections, bind the data to an attribute of the $connection connection, and push messages to implement chat.
- Workerman 3646 2019-12-12 14:03:12
-
- Solution to workerman being unable to connect
- If the iptable.service is not closed and the workerman cannot connect, it can be solved by setting the port range of the workerman, or turning off the firewalld firewall and modifying the /etc/sysconfig/iptables rules.
- Workerman 3690 2019-12-12 13:43:22
-
- 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 3565 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 3874 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 2867 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 3661 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 5714 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 2951 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 4299 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 3660 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 2260 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 2465 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 7194 2019-12-12 09:32:14