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

  • How to use workerman in tp5
    How to use workerman in tp5
    How to use Workerman in TP5: 1. Install Workerman. 2. Create server.php in the tp5 root directory. 3. Create the Worker controller of the push module, the path is the same as the path in line3 of server.php. Then run server.php.
    Workerman 4217 2019-12-23 10:35:02
  • How does workerman connect to the database?
    How does workerman connect to the database?
    How to connect Workerman to the database: 1. Install the Workerman/MySQL extension, install it through composer or download the source code directly, and decompress the source code into the project. 2. Obtain the db instance through global variables, and then use Workerman\MySQL\Connection to connect.
    Workerman 3630 2019-12-23 10:21:15
  • Does workerman support coroutines?
    Does workerman support coroutines?
    The worker framework itself does not support coroutines. However, the bottom layer of Workerman supports swoole as an event driver, which means that swoole's coroutine can be used directly in Workerman.
    Workerman 3284 2019-12-23 10:06:28
  • workerman writes mysql connection pool
    workerman writes mysql connection pool
    Workerman is an open source high-performance asynchronous PHP socket instant messaging framework. Supports high concurrency and ultra-high stability. This tutorial introduces how to write mysql connection pool in Workerman. I hope it will be helpful when you use the Workerman framework.
    Workerman 2207 2019-12-19 17:19:11
  • workerman cannot access normally
    workerman cannot access normally
    The solution to the problem that workererman cannot access normally is: 1. In the security group inbound direction, set the port range of workererman; 2. Close the [firewalld] firewall and modify the [/etc/sysconfig/iptables] rules.
    Workerman 2092 2019-12-18 17:44:29
  • tp cannot be started using workererman
    tp cannot be started using workererman
    The reason why tp cannot be started using Workerman is that the port cannot be started due to being occupied. Solution: First use the [netstat] command to check which program occupies the port, then stop the corresponding program and release the port. If the program for the corresponding port cannot be stopped, you can solve the problem by changing the port of [workerman].
    Workerman 2051 2019-12-18 17:10:43
  • What should I do if workerman cannot be closed?
    What should I do if workerman cannot be closed?
    The solution to the problem that Workerman cannot be closed: first find the pid of the Workerman main process; then send the SIGINT signal to the pid; finally, after the Workerman main process receives the SIGINT signal, it executes "Worker::stopAll()" to complete the service stop.
    Workerman 2814 2019-12-18 15:56:51
  • What should I do if workerman cannot be used?
    What should I do if workerman cannot be used?
    Workerman cannot be used because the "stream_socket_server" function is disabled by "php.ini". The solution: first open the "php.ini" file; then find the "disable_functions" item; then delete the "stream" disabled item.
    Workerman 2701 2019-12-18 15:17:59
  • Can workerman always run?
    Can workerman always run?
    Workerman can always run. Start workererman in daemon (daemon) mode to keep running in the background. Start in daemon mode. Workerman continues to run normally in the background after the terminal is closed.
    Workerman 3535 2019-12-16 09:16:36
  • What should I do if workerman cannot socket?
    What should I do if workerman cannot socket?
    Workerman cannot socket because the "stream_socket_server" function is disabled by "php.ini". The solution is to open the "php.ini" file and delete the "stream_socket_server" disabled item.
    Workerman 2287 2019-12-13 11:16:06
  • What should I do if workerman cannot monitor?
    What should I do if workerman cannot monitor?
    The solution to the problem that workererman cannot monitor: first delete "workerman/workerman"; then use the command "workerman/workerman-for-win"; then restart monitoring.
    Workerman 3152 2019-12-13 11:10:24
  • 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 2931 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 4310 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 3575 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 3601 2019-12-12 13:43:22

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