nginx for load balancing

nginx for load balancing &&A server failover automatically forwards requests to another server in the upstream load balancing pool. Add a health check-up address to determine if the service is working Uptream for nginx currently supports four ways of allocation Polling (default) Each request is assigned to a different back-end serv ...

Posted by jcombs_31 on Sat, 18 Apr 2020 17:59:29 -0700

UML class diagrams that design patterns have to know

Preface It's not easy to code. I hope you can give me more valuable opinions. When we want to explain a problem to others, the most intuitive way is to explain it in a graphic way, rather than in boring words. After all, when we were children, we were more touched by pictures, while we were influenced by words because of some cognitive problems ...

Posted by co.ador on Sat, 18 Apr 2020 00:43:44 -0700

Background -- tp SMS verification (configuration and use)

Alicloud SMS verification code Today, we have a verification code for SMS, which is based on Alibaba cloud platform, https://cn.aliyun.com/ss/?k=%E7%9F%AD%E4%BF%A1api , free verification code test, no charge. There are many free testing interfaces for alicloud's api (in fact, if you pay one yuan, it means you use it, he will judge t ...

Posted by steve012345 on Fri, 17 Apr 2020 21:55:03 -0700

JS-SDK + PHP developed by WeChat to realize recording, uploading and speech recognition

First look at the effect picture: first record, after the recording is successful, add the recording to the list, click the list to play; after the recording is completed, upload the recording, and then voice recognition.   Official wechat documents https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html Implementation process ...

Posted by tolputt-craig on Fri, 17 Apr 2020 08:34:00 -0700

Recurring by Title CVE-2018-12613

File contains Kongji, I first came into contact with this buuoj web check-in questions ofEnter the target and check the source code <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" ...

Posted by NoMansLand on Thu, 16 Apr 2020 05:20:39 -0700

shell programming alarm system

shell programming alarm system 1. Requirements: use shell to customize various personalized alarm tools, but unified management and standardized management are needed 2. Idea: specify a script package, including main program, subprogram, configuration file, mail engine, output log, etc Main program: as the entrance of the whole script, it is ...

Posted by mandred on Wed, 15 Apr 2020 12:02:31 -0700

wx.request(Object object) HTTPS network request encapsulation

Wechat applet wx.request RequestTask wx.request(Object object) initiates an HTTPS network request. Sample code wx.request({ url: 'test.php', //Example only, not real interface address data: { x: '', y: '' }, header: { 'content-type': 'application/json' // Default value }, success (res) { console.log(res.data) } }) ...

Posted by Ab on Tue, 14 Apr 2020 07:52:30 -0700

How to read large files in PHP

As PHP developers, we don't need to worry about memory management. The PHP engine has done a good job of cleaning up behind us. The web server model of short execution context means that even the most sloppy code has no lasting impact.   In rare cases, we may need to get out of the comfort zone - for example, when we try to run Composer for a l ...

Posted by jbrave on Tue, 14 Apr 2020 01:02:15 -0700

Redis sentinel mode to realize master-slave failover

Redis Sentinel is a distributed system. You can run multiple Sentinel processes in one architecture. These processes use the gossip protocols to receive information about whether the primary server is offline, and use the agreement protocols to decide whether to perform automatic failover, And which slave server to choose as the new master serv ...

Posted by adnan1983 on Tue, 14 Apr 2020 00:10:15 -0700

linux builds php performance analysis tool

First on the renderings: Installation environment Centos,php7,MongoDB3,nginx php extension mongodb: http://pecl.php.net/package/mongodbtideways_xhprof: https://github.com/tideways/php-xhprof-extension Install MongoDB3 By default, MongoDB2 is installed in my environment yum. xhgui requires version 3 or above. Create a yum source for MongoDB3 vi ...

Posted by dkjariwala on Sat, 11 Apr 2020 08:17:19 -0700