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:
-
- 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?
- 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
- 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?
- 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?
- 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?
- 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?
- 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
- 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
- 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
- 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?
- 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: 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?
- 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?
- 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?
- 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