current location:Home > Technical Articles > PHP Framework > Workerman

  • The timer in workerman does not take effect
    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?
    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
    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
    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?
    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 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?
    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
    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?
    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
    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
    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?
    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?
    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?
    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?
    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

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28