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

  • Why can't swoole replace nginx?
    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
    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?
    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?
    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?
    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?
    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
    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?
    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?
    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?
    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?
    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
    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
    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
    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 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

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