current location:Home > Technical Articles > PHP Framework > Swoole
- 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:
-
- Why can't swoole replace nginx?
- Swoole cannot replace common HTTP servers such as Apache and Nginx. Management still requires nginx, which cannot replace nginx. If your service is large enough to require HTTP/WebSocket reverse proxy, of course Nginx's reverse proxy is more professional.
- Swoole 2946 2019-12-09 10:44:15
-
- How to shut down the swoole daemon
- How to shut down the swoole daemon: First step, change the daemon in the code to 0; Step two: Find the pid of this port number (the port my code listens to is 9503) and get the PID; Step three: Kill To kill this process, command: kill -9 186691.
- Swoole 5385 2019-12-09 10:28:27
-
- Is swoole asynchronous?
- swoole is asynchronous. Swoole is PHP's asynchronous, parallel, high-performance network communication engine. It is written in pure C language and provides PHP language's asynchronous multi-threaded server, asynchronous TCP/UDP network client, asynchronous MySQL and other functions.
- Swoole 1872 2019-12-09 10:17:37
-
- How to turn off the daemon process after swoole is enabled?
- When swoole is enabled, the daemon process will always run in the background. Method to turn off the swoole daemon: 1. Change the daemon in the code to 0. 2. Find the pid of this port number. 3. Use the kill command to kill this process.
- Swoole 2808 2019-12-09 10:15:19
-
- Is swoole an extension or a framework?
- swoole is an extension and a framework. Swoole has two parts. One is a PHP extension, developed in C, which is the core. The other is a framework, like Yii, TP, and Laravel, which is written in PHP code.
- Swoole 2635 2019-12-09 10:09:10
-
- Is swoole a service or a framework?
- swoole is the framework. The swoole has two parts. One is a PHP extension, developed in C, which is the core. The other is a framework, like Yii, TP, and Laravel, which is written in PHP code.
- Swoole 2115 2019-12-09 10:02:41
-
- How to enable swoole service
- The startup of the swoole service depends on the process. It is created using swoole_server in the process. The alias function in the source code is swoole_server_create, and then used swoole_server->start to start.
- Swoole 2670 2019-12-09 10:00:05
-
- Is swoole an extension of php?
- Yes. Swoole is written in C language and runs as a PHP extension. Swoole's network IO part is based on the epoll/kqueue event loop and is fully asynchronous and non-blocking. The business logic part uses multi-process synchronous blocking mode to run.
- Swoole 2512 2019-12-09 09:55:13
-
- Why is swoole efficient?
- The reasons why swoole is efficient: 1. Resident in memory, avoiding performance losses caused by repeated loading and improving massive performance. 2. Coroutine asynchronously improves the concurrent processing capabilities of I/O-intensive scenarios. 3. Conveniently develop Http, WebSocket, TCP, UDP and other applications, which can communicate with hardware.
- Swoole 2490 2019-12-09 09:49:18
-
- Is swoole written in C language?
- Yes, swoole is an asynchronous, parallel, high-performance network communication engine for PHP. It is written in pure C language and provides an asynchronous multi-threaded server in PHP language, asynchronous TCP/UDP network client, asynchronous MySQL, asynchronous Redis, and database connection. Pool, AsyncTask, message queue, millisecond timer and other functions.
- Swoole 2505 2019-12-09 09:49:01
-
- When did swoole appear?
- The Swoole open source project started releasing its first version in 2012 and has a history of nearly 7 years now. The goal is to make the Swoole project become an industrial-level technology such as Node.js and Go, and become the cornerstone of the PHP programming language in asynchronous IO and network communication.
- Swoole 2677 2019-12-09 09:42:14
-
- How to run swoole in php-fpm mode
- Most of the modules in swoole can only be used in the CLI command line environment. Only the synchronous blocking swoole_client can be used in the php-fpm or apache environment.
- Swoole 3534 2019-12-09 09:35:46
-
- How to make a long connection with swoole
- swoole uses SWOOLE_KEEP to establish a long TCP connection. After enabling the SWOOLE_KEEP option, the socket will not be closed at the end of a request. The last connection created will be automatically reused the next time you connect.
- Swoole 3991 2019-12-09 09:34:36
-
- How to do message notification in swoole
- A message notification push function can be completed based on swoole and redis queue. Use swoole to start the resident process. How many are needed depends on your own situation. The number of swoole processes is best equal to the number of server CPU cores. Use swoole to start the resident process. The process continuously detects the values in the redis queue.
- Swoole 2746 2019-12-09 09:29:14
-
- The difference between traditional fpm synchronization mode and swoole coroutine
- The difference between the traditional fpm synchronization mode and the swoole coroutine is: 1. swoole can only run in the command line (Cli) mode, and we all use the command line for development and debugging; 2. the swoole coroutine is suitable for [I/O] intensive applications , under the same hardware configuration environment, swoole will carry more visits than the traditional synchronization mode.
- Swoole 2621 2019-12-09 09:28:45