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

  • What should I do if the swoole server cannot connect?
    What should I do if the swoole server cannot connect?
    The solution to the problem that the swoole server cannot be connected: first check the swoole extension through the command "php -m"; then use the command "firewall-cmd --state" to check whether the firewall is closed; then use the command "telnet" to test the connection.
    Swoole 3426 2020-04-10 09:17:24
  • What should I do if swoole cannot be accessed?
    What should I do if swoole cannot be accessed?
    The solution to the problem that swoole cannot be accessed: first use the command "yum install -y openssl" to install openssl; then install swoole; then use the command "php-config --enable-openssl" to compile and then you can access it normally.
    Swoole 2642 2020-04-10 09:12:39
  • What to do if swoole compilation fails
    What to do if swoole compilation fails
    Solution to swoole compilation failure: first add the content "export LANGUAGE="en_US.UTF-8"" to the "~/.bashrc" file; then execute the command "source /root/.bashrc"; finally install the relevant dependent libraries That’s it.
    Swoole 3107 2020-04-10 09:06:37
  • Can swoole use port 80?
    Can swoole use port 80?
    Swoole can use port 80. How to bind Swoole to port 80 of a domain name: first start Swoole's "http server"; then use the command "vim swotp.liuguofeng.com.conf" to create an Nginx virtual domain name; and finally restart Nginx.
    Swoole 3182 2020-04-09 10:50:00
  • What does swoole fatal error mean?
    What does swoole fatal error mean?
    The swoole fatal error means that once a fatal error occurs during the server runtime, the client connection will not be able to receive a response. In PHP, fatal errors can be captured through the two functions "register_shutdown_function" and "error_get_last".
    Swoole 3235 2020-04-09 10:41:32
  • What should I do if swoole cannot run?
    What should I do if swoole cannot run?
    swoole cannot run because "swoole" was not installed successfully. The solution: first find the location of "swoole.so"; then use the command "sudo vi /etc/php/7.2/cli/php.ini" to add swoole to the configuration Just in the file.
    Swoole 2687 2020-04-09 10:37:23
  • What should I do if swoole cannot be installed under win?
    What should I do if swoole cannot be installed under win?
    The solution to the problem that swoole cannot be installed under win: first download "pcre2-10.22" and "pcre-8" and extract them to "cygwin/etc"; then run "cygwin"; finally use the command "pecl install swoole" to install swoole .
    Swoole 2790 2020-04-09 10:28:16
  • What to do if swoole mac compilation error occurs
    What to do if swoole mac compilation error occurs
    Solution to swoole mac compilation error: first download swoole through the command "sudo pecl download swoole"; then modify the "php-config" file; finally use the command "./configure --enable..." to recompile.
    Swoole 2256 2020-04-09 10:20:44
  • What to do if swoole json is incomplete
    What to do if swoole json is incomplete
    The solution to the incomplete swoole json: first start the swoole client, send data to the server, and receive the return; then set the code on the server to "'package_eof' => "\r\n\r\n""; finally Just use the EOF protocol processing method to solve the problem of incomplete json.
    Swoole 2514 2020-04-09 10:16:49
  • How to call swoole asynchronously
    How to call swoole asynchronously
    The swoole asynchronous calling method: first rewrite the "ws_server.php" file; then establish the connection "onOpen()"; then the client "ws_client.html" connects and sends data through the js code; finally the client passes "console.log "Just print the data to the page.
    Swoole 2906 2020-04-09 10:12:25
  • What should I do if redis swoole cannot be read?
    What should I do if redis swoole cannot be read?
    Redis swoole cannot be read because the hiredis path is wrong. The solution is: first enter the installation package directory; then execute the command "mkdir /usr/lib/hiredis cp libhiredis.so /usr/lib/hiredis...".
    Swoole 2837 2020-04-09 10:08:08
  • How to use swoole in php
    How to use swoole in php
    How to use swoole in PHP: first install dependencies through the command "sudo make install"; then add extensions in "php.ini"; finally use swoole on the server, with code such as "swoole_server("0.0.0.0", 9501) ;".
    Swoole 4894 2020-04-09 10:04:28
  • What should I do if oppo cannot connect to swoole?
    What should I do if oppo cannot connect to swoole?
    The solution to the inability to connect to swoole: first select to support "openssl" when compiling and installing swoole; then manually add the "php-config" path; finally add the certificate information to the swoole code as "$serv = new swoole_websocket...".
    Swoole 2280 2020-04-09 09:53:07
  • What should I do if nginx cannot connect to swoole?
    What should I do if nginx cannot connect to swoole?
    The solution to the problem that nginx cannot connect to swoole: first understand Nginx based on epoll; then monitor the event changes of a socket handle through Reactor; then use reactor to handle countless connection requests; and finally use swoole to handle high concurrency.
    Swoole 2272 2020-04-09 09:49:24
  • What should I do if laradock fails to install swoole?
    What should I do if laradock fails to install swoole?
    The solution to the unsuccessful installation of swoole in laradock: first rebuild the virtual machine; then check whether the installation is successful through the command "php -m | grep swoole"; then modify the nginx configuration file; finally enter laravel to install laravel-swoole.
    Swoole 3055 2020-04-09 09:42:52

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