High availability load balancer under public cloud (Huawei)

High availability load balancer under public cloud (Huawei) High available load balancer option VIP+NGINX node ip node1 10.0.0.11 node2 10.0.0.12 node3 10.0.0.13 VIP 10.0.0.10 It is easy to operate on the virtual machine. For details, see Nginx and keepalived of Beijing strivers to achie ...

Added by Alffallen on Tue, 18 Feb 2020 13:33:12 +0200

Getting started with python crawler for beginners

Web crawler, it sounds mysterious, but it is also so. In short, as long as the website has open port, users can visit the website, no matter how good the anti climbing mechanism of the website is, as long as your technology is enough, there will always be a chance to crack it. In other words, it's not t ...

Added by molave on Thu, 13 Feb 2020 12:37:49 +0200

How does php use JSON-RPC to find the latest block hash hash value in Ethereum?

I developed an Ethereum block resource manager in PHP and successfully established JSON-RPC communication with my server Geth node. However, when I tried to find the last block, I was in trouble. I am here https://ethereum.gitbooks.io/frontier-guide/content/rpc.html I've read a lot in, but I don't have any way to find out which of the Ethereum ...

Added by linux_pickle on Sun, 09 Feb 2020 18:34:21 +0200

Use a cURL with a username and password?

I want to access a URL that requires a username/password.I want to try it curl Access it.Now I'm doing something similar: curl http://api.somesite.com/test/blah?something=123 I got an error.I think I need to specify a username and password as well as the above commands. How can I do this? ...

Added by amirbwb on Fri, 31 Jan 2020 05:06:12 +0200

Docker Native Arrangement Tool - compose+consul Cluster+template

Docker Native Layout Tool 1. docker-compose concept The Compose default management object is the project, which manages the life cycle of a set of containers in the project through subcommands. The Compose project is implemented by Python, which calls the API provided by the Docker service to manage containers. Configuration steps 1. Install D ...

Added by myleow on Thu, 16 Jan 2020 01:13:00 +0200

Wilcoxon's sign rank test

Wilcoxon's sign rank test It is suitable for paired comparison in T-test, but it doesn'T need to find that the difference between pairs of data obeys normal distribution, only requires symmetrical distribution. Verify that the difference between pairs of observations comes from a population with a mean of 0 (the population tha ...

Added by Keith Scott on Sun, 05 Jan 2020 10:36:52 +0200

LNMP schema (Nginx access log, Nginx log cutting, static file does not record log and expiration time)

Nginx access log 1. Open the configuration file and search for log? Format vim /usr/local/nginx/conf/nginx.conf 2. Meaning of common variables in access log $remote_addr: client IP (public IP) $HTTP "X" forwarded "for: IP of proxy server $time_local: server local time $host: access host name (domain name) $request_uri: url add ...

Added by pietbez on Sat, 04 Jan 2020 21:41:18 +0200

keepalived builds master-slave architecture and master-slave architecture instance

Example topology: DR1 and DR2 deploy keepalived and lvs as the master-slave or master architecture, and RS1 and RS2 deploy nginx to build web sites. Note: the time of each node needs to be synchronized (ntpdate ntp1.aliyun.com); turn off firewalld (systemctl stop firewalld.service, systemctl disable firewalld.service), and set selinux to allow ...

Added by redRemedy on Tue, 31 Dec 2019 23:35:09 +0200

Understand Nginx location matching thoroughly

Nginx's location implements fine-grained processing of requests, some URI s return static content, some distribute to back-end servers, and so on. Understand its matching rules thoroughly today An example of the simplest location is as follows server { server_name website.com; location /admin/ { # The configuration you plac ...

Added by pavanpuligandla on Mon, 30 Dec 2019 06:15:04 +0200

linux network management command httpstat

Explain httpstat is a python script, which reflects curl statistical analysis in a wonderful and proper way. It is a single script, compatible with Python 3, and does not need to install additional software (dependency) on the user's system. In essence, it is an encapsulation of cURL tool, which means you can use several valid ...

Added by Twentyoneth on Wed, 25 Dec 2019 19:07:08 +0200