1, do not go
2 in make test swoole_server/eof_protocol.phpt
, but compile by generating swoole.so
, php.ini
also added configuration, solve
1, do not go
2 in make test swoole_server/eof_protocol.phpt
, but compile by generating swoole.so
, php.ini
also added configuration, solve
you can try to restart nginx, first, if you haven't already, share my practice, because I put my notes in my impression notes. All copies may be pasted less
attachment:
1: in / create the swoole directory
2:cd / swoole
3:tar zxvf swoole-src-2.0.10-stable.tar.gz (decompress)
4:cd swoole-src-2.0.10-stable
5:/usr/local/php/bin/phpize (phpize path depends on the actual situation)
6:. / configure-- with-php-config=/usr/local/php/bin/php-config (the result is shown below)
7: the following figure of make & & make install (is the result)
8:make test (the following figure shows the result)
as shown in the picture, error, reported an error. At this time, the translation error content is: proc_open () in the php.ini file is disabled. Find it and allow it (ini is usually under / usr/local/php/etc)
. as shown in the picture, he disabled many functions. Laozi had a bad temper
on the spot, and then restarted fpm and nginx
found that the restart did not report an error. The result of continuing to execute make test is as follows
after we found make test, there are many fail, such as big_package_memory_leak [tests/swoole_client_async/big_package_memory_leak.phpt]
, but I don't know what to do
I tried to restart php-fpm, and restart nginx,. I found that there was an error in Nginx. I executed it again and found that there was no problem. I'll see if it will be affected later
since there is no way to solve the fail, brought by make test, I decided to check directly whether the swoole is installed
executed php-m and found that there was nothing swoole, thought of at this time. Extension=swoole.so,
added extension=swoole.so
to the last line of php.ini to restart php-fpm and nginx
to execute php-m
Don't worry, take a look at phpinfo
has been installed
Note: there is also a reference below, but I haven't tried
https://www.cnblogs.com/taiko.
the following code , 2 , (workerstart,,) ...
the following is the log of the client on the server ConfigInit demo ... config server judge ConfigInit -> init get_swoole_client pms_config:9502 ConfigInit -> init end Receive: s:22:"!"; Receive: s:6:"wocao!"; Confi...
the php project is deployed on docker. The master node returns the websocket server built by Swoole at port 10028 and listens on port 9502. The client failed to connect using IP plus port 9502. How to solve this problem ...
one of the main advantages of co-programming over multithreading is that it actively gives up CPU, rather than CPU preemption. in this way, many locks can be avoided in order to avoid preemptive locks. but swoole chooses implicit co-programs, so that...
new a server code in swoole is as follows: $serv = new swoole_server( 127.0.0.1 , 9501); now I want to create a HTTP server. I need to bind two domain names (www.a.com and www.b.com). After testing, the code is as follows $serv = new swoole_server(...
set the timer when judging $worker_id = = 0 in onWorkerStart. Can guarantee that this timer will run all the time and will not quit? ...
php: 7.0.29 swoole: 2.1.3 linux: ubuntu16.04 swoole Startup Settings daemonize = > 0, worker_num = > 2 I use a Mini Program websocket.. Under normal circumstances, Mini Program shuts down can trigger onClose events. but if I disconnect wif...
now I m going to use swoole to develop the game server. I don t consider other languages for the time being, because the company is not familiar with other languages, and the project deadline is coming soon what I want to ask is, for example, when de...
such as title: Swoole is stuck in the tests swoole_server task_max_request.phpt phase when it is in make test ...
simply use the asynchronous mysql client of swoole to obtain 100000 data. After spending a long period of time in php7 in one environment, you can execute the callback method of query to output data, but in the php5.4 of another environment, you do not...
the swoole protocol can achieve the performance of asynchronous IO, but compared with asynchronous IO and multithreading, swoole protocol is implemented in Synchronize encoding rather than callback. < H2 > question: < H2 > if the current business ...
download projects during manual installation and composer installation, just choose one at random. What did docker installation and docker-compose installation do later? Please explain, thank you! ...
Development environment wsl swoole2.1.3 Interface error there is no problem when using the previous code to call the interface using swoole asynchronous http often causes the interface to report an error The proxy server received an invalid resp...
the following error occurred when using connections: foreach($serv->ports[0]->connections as $fd) { $serv->push($fd, json_encode($data)); } Undefined property: SwooleServerPort::$connections, the official document says that the pcre lib...
< H1 > Code < H1 > is to run a http server <?php $http = new swoole_http_server("127.0.0.1", 9501); $http->on( request , function ($request, $response) { $response->end("<h1>Hello Swoole. -sharp".rand(1000, ...
some features have been developed in other frameworks. If subsequent modules want to use the swoft framework, how can they not be developed repeatedly? ...
have learned about the relevant methods. Temporarily think of round trip (large request, high delay, high consumption) if there is self-detection, it will be perfect ...
var token = localStorage.getItem( userToken ); if(!token){ alert( ); return false; } var ws = new WebSocket("ws: 127.0.0.1:8081"); when ws.onopen, I intend to send token to the server for verification, but it...
I took a look, first create a swoole_server, and then bind the swoole_table to it feels more troublesome than redis ...
after the swoole server has not communicated for a long time, when the client connects again, the process needs to be kill off and then reopened. What is the reason for this? ...