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:
-
- 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 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?
- 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 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
- 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
- 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?
- 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?
- 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?
- 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?
- 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?
- 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 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?
- 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
- 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
- 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