Generate compiled configuration file
In Swoolethe root directory, execute the command phpize, the compiler can generate configuration files configure
In Swoolethe root directory, execute the command phpize, the compiler can generate configuration files configure
Compile the configuration and detect the environment and compile and install
After generating a compiled file configuration above, and then enter a command ./configure && make && make install, and waits for that compiler installation Swoolecomplete
After generating a compiled file configuration above, and then enter a command ./configure && make && make install, and waits for that compiler installation Swoolecomplete
> Check whether the Swoole installation is successful and see if the Swoole extension is enabled
After installation is complete, we enter the command php --ini, you can find php.inithe directory location of the configuration file can be found in the directory configuration file /etc/php.ini, and then through the viEdit View command vi /etc/php.ini, and into the last line of the file, and then found that his party has been extension=swoole.dllextended configuration This is because this module has already been compiled in when it is compiled and installed php.
After installation is complete, we enter the command php --ini, you can find php.inithe directory location of the configuration file can be found in the directory configuration file /etc/php.ini, and then through the viEdit View command vi /etc/php.ini, and into the last line of the file, and then found that his party has been extension=swoole.dllextended configuration This is because this module has already been compiled in when it is compiled and installed php.
Then we command php -mto see whether you really have this extension of it can be found from the figure has indeed been swooleextended
Test the Swoole environment selection and enter the test directory
We downloaded Swoolethe source code, there are many examples, we can run tests directly, go to examplesthe directory, which are all sample code, we chose http/server.phpto test, then cd http/enter the httpdirectory
We downloaded Swoolethe source code, there are many examples, we can run tests directly, go to examplesthe directory, which are all sample code, we chose http/server.phpto test, then cd http/enter the httpdirectory
Execute php program
The above has entered into the httpdirectory, and found that there is a current directory server.phpof the file, we can command php server.phpexecution
The above has entered into the httpdirectory, and found that there is a current directory server.phpof the file, we can command php server.phpexecution
Browser running test
We open the server.phpfile, there is a line of code $http = new swoole_http_server("0.0.0.0", 9501);to open the swooleservice port 9501, then we can directly in the browser address bar 127.0.0.1:9501or localhost:9501and access, display Hello Swoole., then the Swooleinstallation was successful!
We open the server.phpfile, there is a line of code $http = new swoole_http_server("0.0.0.0", 9501);to open the swooleservice port 9501, then we can directly in the browser address bar 127.0.0.1:9501or localhost:9501and access, display Hello Swoole., then the Swooleinstallation was successful!
Full Graphic tutorial to install Cygwin on Windows system to build Swoole test environment > A small detailed example by undercode
Forwarded from Backup Legal Mega
π¦Linux Foundation Certified Engineer (2019) β3.24 GB
https://linuxacademy.com/course/linux-foundation-certified-engineer/
>Download<
https://linuxacademy.com/course/linux-foundation-certified-engineer/
>Download<
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦Hack nEWS :
1) The Indian government has open sourced its contact tracking application Aarogya Setu under the Apache v2 license , and the source code is hosted on GitHub. The Indian government released Aarogya Setu in early April, and its installation exceeded 114 million in less than two months.
2) The Indian government first disclosed the source code of the Android version. The source code of the iOS and KaiOS (based on Firefox OS) versions will be released in the next few weeks.
3) Indian Minister of Electronics and Information Technology Ajay Prakash Sawhney said that open source code allows others to inspect and find vulnerabilities, and the government will provide up to $ 1,325 in rewards to those who discover and report vulnerabilities. Other countries have also released the source code of the official contact tracking application on GitHub, such as Australia .
@UndercodeNews
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦Hack nEWS :
1) The Indian government has open sourced its contact tracking application Aarogya Setu under the Apache v2 license , and the source code is hosted on GitHub. The Indian government released Aarogya Setu in early April, and its installation exceeded 114 million in less than two months.
2) The Indian government first disclosed the source code of the Android version. The source code of the iOS and KaiOS (based on Firefox OS) versions will be released in the next few weeks.
3) Indian Minister of Electronics and Information Technology Ajay Prakash Sawhney said that open source code allows others to inspect and find vulnerabilities, and the government will provide up to $ 1,325 in rewards to those who discover and report vulnerabilities. Other countries have also released the source code of the official contact tracking application on GitHub, such as Australia .
@UndercodeNews
β β β ο½ππ»βΊπ«Δπ¬πβ β β β