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

  • How to close the swoole process
    How to close the swoole process
    How to close the swoole process: First use the command "netstat -tunlp|grep 9400" to view the process corresponding to the port; then use the command "php artisan swoole:action stop" to close the swoole process.
    Swoole 4468 2020-04-06 09:29:24
  • What should I do if I get an error when running swoole?
    What should I do if I get an error when running swoole?
    The solution to the error when running swoole: first add the "swoole" extension to the "php.ini" file through the command "extension=swoole"; then use the command "php -m" to check whether the swoole extension is added; finally execute the php swoole file. Found to be running normally.
    Swoole 3463 2020-04-06 09:25:38
  • Why use swoole
    Why use swoole
    Reasons for using swoole: 1. The swoole open source project was born to make up for the shortcomings of PHP in some aspects; 2. swoole is actually an engine for network communication and asynchronous IO, a basic library; 3. The swoole framework mainly saves the PHP framework And the performance loss caused by the creation and destruction of global objects every time they are requested.
    Swoole 2963 2020-04-06 09:20:52
  • What should I do if I can't use swoole?
    What should I do if I can't use swoole?
    The solution to the inability to use swoole: first use the command "php -i | grep ini" to find the configuration file; then check the ini configuration file address; then check whether "extension=swoole.so" is configured; and finally reconfigure swoole.
    Swoole 2605 2020-04-06 09:16:48
  • What is the most essential difference between swoole and php?
    What is the most essential difference between swoole and php?
    The most essential difference between swoole and php is: 1. swoole is an extension of PHP; 2. PHPer can use swoole to implement functions that PHP could not achieve in the past; 3. Swoole is written in pure C language and provides an asynchronous multi-threaded server in PHP language. , asynchronous MySQL, etc.
    Swoole 3183 2020-04-06 09:11:37
  • How to deploy swoole
    How to deploy swoole
    How to deploy swoole: first download and install "oneinstack"; then select the "swoole" extension and copy the installation command "wget ​​-c..."; then enter the command in xshell for one-click installation; finally start the "Server" server and "Client" client.
    Swoole 2760 2020-04-06 09:08:02
  • How to use swoole and mysql
    How to use swoole and mysql
    Swoole is better for asynchronously operating MySQL because it can prevent code blocking and improve code efficiency. Applicable scenarios are: 1. No shared resources are involved; 2. There is no strict timing relationship; 3. No atomic operations are required; 4. Often used for time-consuming operations; 5. Does not affect the main thread logic.
    Swoole 2805 2020-03-14 10:28:06
  • What to use to debug swoole program
    What to use to debug swoole program
    You can use gdb to debug swoole programs. gdb is the abbreviation of GNU debugger and is a programming debugging tool. Gdb can debug running programs as desired according to user-defined requirements. To start debugging a swoole program, you can enter: gdb php test.php.
    Swoole 3513 2020-02-12 14:01:08
  • How to kill the swoole process
    How to kill the swoole process
    How to kill the swoole process: first change the daemon process to 0 in the code; then enter the command "netstat -apn|grep port number", fill in the port number used by the swoole program; finally use "kill -9 swoole process pid" command.
    Swoole 3984 2020-02-12 13:44:35
  • What to do if the swoole extension installation fails
    What to do if the swoole extension installation fails
    Solution to the failure of swoole extension installation: first delete the "mysqlnd.ini" file in the "/etc/php.d/" directory; then add "extension=mysqlnd.so" to "extension=swoole.so".
    Swoole 4054 2020-02-04 15:06:34
  • How to use task process in swoole to handle time-consuming tasks?
    How to use task process in swoole to handle time-consuming tasks?
    There are two major processes in swoole, namely the master process and the manager management process. There will be a main reactor thread and multiple reactor threads in the master main process. The main function is to maintain TCP connections, process network IO, and send and receive data.
    Swoole 2363 2020-01-27 21:49:59
  • Summary of common problems with PHP Swoole long connections
    Summary of common problems with PHP Swoole long connections
    Among them, the common errors reported by Redis are: Redis can configure how many seconds have elapsed if the client does not send data to the Redis server, then the connection will be closed; the common errors reported by MySQL: Like the Redis server, MySQL will also clean it up regularly. Remove useless connections.
    Swoole 3019 2020-01-26 13:48:34
  • php Swoole implements millisecond-level scheduled tasks
    php Swoole implements millisecond-level scheduled tasks
    During project development, if there are business requirements for scheduled tasks, we will use Linux's crontab to solve them, but its minimum granularity is minute level. If the required granularity is second level, or even millisecond level, crontab cannot meet it, which is fortunate. The most powerful millisecond timer provided by swoole.
    Swoole 4279 2020-01-25 19:14:16
  • How to exit swoole
    How to exit swoole
    How to exit swoole: Use the "Server->stop" method to exit, where the $waitEvent parameter can control the exit strategy. The default is false to exit immediately, and setting it to true means waiting for the event loop to be empty before exiting.
    Swoole 2978 2020-01-13 14:42:35
  • How to compile and install swoole
    How to compile and install swoole
    Method to compile and install swoole: 1. Use the "phpize" command to generate a compilation detection script. 2. Use the "./configure" command to do compilation configuration detection. 3. Use the "make" command to compile. 4. Use the "make install" command to install.
    Swoole 2422 2020-01-13 14:11:39

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