1. The user initiates the request through http protocol, and the request will first arrive at Nginx in LNMP architecture
2.Nginx will match the Location rule according to the user's request
3.Location if the matching request is static, it will be read by Nginx and returned directly locally
4.Location if ...
Posted by Toonster on Fri, 17 Jan 2020 14:16:52 +0100
Object oriented features
Understanding object-oriented concept
Classes and objects
Create classes, properties, and actions
Use class properties
Call class action
Using private and public keywords to ...
Posted by himnbandit on Wed, 15 Jan 2020 10:27:27 +0100
swoole has built-in websocket server function since version 1.7.9. We only need a few lines of simple PHP code to create an asynchronous non blocking multi process websocket server.
First of all, we create a new project named swoole in the apache workspace, and then create a new ws-server.php file in the workspace. The PHP file mainly creates ...
Posted by trent2800 on Tue, 07 Jan 2020 09:06:03 +0100
Previous link When reading, it is better to refer to the source code of easysoole 2.1.2
The actual call here is the start method servermanager:: getinstance() - > start();
This method is mainly used to start the swoole service
//Create master service
In this code, the core ...
Posted by Serberus on Mon, 06 Jan 2020 18:09:39 +0100
This blog mainly records how to locate the mobile phone to a certain city. At present, the third-party map parsing API of Baidu map is used here.
Baidu map open platform address: http://lbsyun.baidu.com/index.php?title=androidsdk/guide/key
The steps are as follows:
1. Use the positioning function of Android to get the longit ...
Posted by argh2xxx on Thu, 02 Jan 2020 21:50:03 +0100
LNMP environment building
LNMP dynamic website deployment architecture is a dynamic website system solution composed of Linux+Nginx+Mysql+PHP components, which is free, efficient, extensible and low resource consumption
LNMP dynamic website architecture
yum install -y apr* autoconf automake bison bzip2 bzip2* compat* ...
Posted by fris on Wed, 01 Jan 2020 18:38:35 +0100
In this chapter, we officially launch our crawler project. First of all, we need to know which website can get free agent IP. At present, there are popular websites such as Xisi agent and fast agent. Here we take Xisi agent as an example.
Official website of West stab agent: http://www.xicidaili.com
Here are free IP addresses and port ...
Posted by tomhilton on Mon, 30 Dec 2019 16:18:04 +0100
1. Install docker and docker compose
centos7 installs docker and docker compose
2. Docker compose common commands
# Build the container under the folder containing docker-compose.yml
# If you use the Dockerfile to modify the Dockerfile, execute the following again to apply the modification
docker-compose up -d
# Stop all ...
Posted by goosez22 on Sun, 29 Dec 2019 18:57:17 +0100
1, Update Linux Mint 19 system
Make sure that you are running the latest version of Linux Mint. If there are important programs running and you do not want to upgrade them, you can only update the package list and run the following command:
sudo apt update
sudo apt upgrade
If a newer version of Kernel is installed, it is recommended to rest ...
Posted by mrdance on Fri, 27 Dec 2019 09:07:42 +0100
Significance of testing
For a specific problem, through analysis and design, people finally write a program in programming language. If it passes the check of language interpreter (compiler) and can run, the next step is to try to make sure that it meets our requirements. This article is about how to confirm whether the program meets the requir ...
Posted by Tagette on Wed, 25 Dec 2019 23:18:45 +0100