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:
-
- How to access workererman in php
- How to connect PHP to Workerman: Create a new file start.php, create a Worker in this file to listen to port 2346, use the websocket protocol to communicate to connect Workerman in PHP, and then run this file to start Workerman in PHP.
- Workerman 3634 2019-12-23 16:25:14
-
- How to use workerman?
- Usage steps: Create a websocket Worker to maintain a long client connection; create a text Worker internally; open an internal port to facilitate the internal system to push data; push data to the page of uid through workererman; return the push result.
- Workerman 2952 2019-12-23 12:13:55
-
- Solution to Chinese garbled code when running workerman using cmd
- The Chinese garbled characters when cmd runs Workerman can be solved by changing the cmd window encoding format to utf-8. You can use the command "chcp 65001" to temporarily modify it before running, or you can modify it permanently in the registry.
- Workerman 2794 2019-12-23 11:02:24
-
- What to do if workerman introduces db error
- Workerman introduces a solution to db errors: add try catch to capture the error when accessing the database. When the error captured is 2006 or 2013, it means that the connection is invalid. At this time, you can reconnect to the database.
- Workerman 2747 2019-12-23 10:47:37
-
- 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 4269 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 3865 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 3381 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 2279 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 2147 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 2109 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 2898 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 2768 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 3592 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 2348 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 3210 2019-12-13 11:10:24