
How to shut down the daemon process with swoole
How to shut down the process with swoole: first change the daemon process in the code to 0; then use the command "netstat -apn | grep 9503" to find the pid of this port number; then use the command "kill -9 18669" to kill the process; finally Just restart the monitoring program.
Apr 10, 2020 am 09:52 AM
What should I do if the swoole client cannot connect?
The solution to the problem that the swoole client cannot connect: first modify the server code and comment out the "$serv->close($fd);" part; then install "telnet" through the command "yum install telnet -y"; finally, pass "telnet" will restore the connection.
Apr 10, 2020 am 09:47 AM
What should I do if the swoole service cannot be started?
The swoole service cannot be started because after the inbound rules are turned on, the client and server cannot interact yet. The outbound rules must also be fully configured so that the ports can communicate with each other. The solution is to reconfigure the outbound rules and ports. .
Apr 10, 2020 am 09:28 AM
What should I do if I get an error when accessing swoole?
Solution to swoole access error: first use the command "php -v" to check the version of php in the server; then execute the command "make && make install" to install; finally modify the code to "extension=swoole.so" to return to normal .
Apr 10, 2020 am 09:23 AM
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.
Apr 10, 2020 am 09:17 AM
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.
Apr 10, 2020 am 09:12 AM
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.
Apr 10, 2020 am 09:06 AM
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.
Apr 09, 2020 am 10:50 AM
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".
Apr 09, 2020 am 10:41 AM
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.
Apr 09, 2020 am 10:37 AM
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 .
Apr 09, 2020 am 10:28 AM
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.
Apr 09, 2020 am 10:20 AM
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.
Apr 09, 2020 am 10:16 AM
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.
Apr 09, 2020 am 10:12 AM
Hot tools Tags

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

vc9-vc14 (32+64 bit) runtime library collection (link below)
Download the collection of runtime libraries required for phpStudy installation

VC9 32-bit
VC9 32-bit phpstudy integrated installation environment runtime library

PHP programmer toolbox full version
Programmer Toolbox v1.0 PHP Integrated Environment

VC11 32-bit
VC11 32-bit phpstudy integrated installation environment runtime library

SublimeText3 Chinese version
Chinese version, very easy to use

Hot Topics









