Analysis of easyswoole source code (startup service)

Previous link When reading, it is better to refer to the source code of easysoole 2.1.2 $inst->run();//Startup service The actual call here is the start method servermanager:: getinstance() - > start(); This method is mainly used to start the swoole service //Create master service $this->createMainServer(); In this code, the core ...

Posted by Serberus on Mon, 06 Jan 2020 18:09:39 +0100

Mobile location in Android Development (record)

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

Linux basic learning LNMP environment construction

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

Write your own PHP crawling agent IP project step by step (2)

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

Using docker compose to quickly build php7+nginx+mysql5.7+redis environment in centos7

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

Linux Mint 19 installs PHP7.3 and configures with nginx

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

Analysis of Python unit test

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

js encrypted Sina Weibo login

1. url:  https://weibo.com/ 2. target: Login   3. Analysis. Due to the need to fill in the verification code, this article only analyzes the part of cracking the user name and password encryption, without verification code identification. 3.1 according to the old rule, F12, enter an account password and click login to see what requests have be ...

Posted by phpnewbie112 on Wed, 25 Dec 2019 11:21:21 +0100

WordPress 5.3.2 manual upgrade

Shortly after WordPress 5.3.1 was released, we received some relatively serious problem feedback, so WordPress officially released WordPress 5.3.2 in a short time, mainly to fix the following five problems: Date / time: make sure get feed build date() correctly processes revision article objects with invalid dates. Upload: fixed the problem o ...

Posted by ariliquin on Tue, 24 Dec 2019 13:12:08 +0100

How to use PHP to calculate the difference between two dates?

I have two date formats: Start Date: 2007-03-24 End Date: 2009-06-26 Now, I need to find the difference between the two in the following form: 2 years, 3 months and 2 days How to do this in PHP? #1st floor Some time ago, I wrote the format ﹣ date function because it gives you many options on how to choose a date: function f ...

Posted by mattsinclair on Mon, 23 Dec 2019 13:11:46 +0100