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
Android Development - Android Studio - front end introduction picture
Android Development - Android Studio - front end introduction picture
1. Create a new Activity named ImageViewActivity
2. Set the button in activity main.xml to
3. Declare ImageViewActivity in MainActivity and set click event.
package com.example.ayb.helloworld;
import android.content.Intent;
import android.support.v7. ...
Added by Crazy Horse on Tue, 31 Dec 2019 18:06:26 +0200
REDHAT 7 local source and yum network source configuration
Local yum source configuration
In our newly installed REDHAT 7 system, there is no configuration source. In order to save space and improve the operation efficiency, many packages are not installed. When we find that there are missing packages, we need to install them by ourselves. The installation needs to use the yum source. ...
Added by sledge4 on Tue, 31 Dec 2019 17:35:47 +0200
An article takes you through function expressions, recursion, closures, variables, this objects, module scopes in JavaScript
Author| Jeskson
Source|Dada Front End Bistro
How functions are defined:
The first is a function declaration; the second is a function expression.
Grammar:
function functionName(arg0, arg1, arg2) {
// Function Body
}
In Firefox, Safari, Chrome, and Opera:
This property gives you access to the name specified by this function.
console.log(funct ...
Added by Twister1004 on Mon, 30 Dec 2019 03:08:45 +0200
Python crawler battle, 60 lines of code crawl all-hero skin of the League of Heroes, looking for those once deleted out-of-date skin
After more than a week of crawling classes, the editor finally couldn't help but decide to write the crawler program manually. Just as LJ encouraged the students to share their results and rewarded their excellent works, he organized the crawl process of crawling high definition Wallpapers of major games with Python programming for submission a ...
Added by YOUAREtehSCENE on Sat, 28 Dec 2019 09:59:41 +0200
swift carousel + network request + custom cell
Paging controller
1. Paging controller
Import third party PagingMenuController
Third party links: https://github.com/kitasuke/PagingMenuController
Import links using third-party methods: http://www.hangge.com/blog/cache/detail_1656.html
Using PagingMenuController
ViewController.m
ViewController1,ViewController2,ViewController3,V ...
Added by R4nk3d on Fri, 27 Dec 2019 00:47:19 +0200
Six uses of postgresql highly available repmgr 1 Primary + 1 Standby auto failover
os: ubunbu 16.04
postgresql: 9.6.8
repmgr: 4.1.1
192.168.56.101 node1
192.168.56.102 node2
Under the premise that the production environment ensures the stability of the network, the database can auto failover is the best state. For synchronous replication, it is recommended to configure two Slavs. For asynchronous replication, ...
Added by lasse48 on Wed, 25 Dec 2019 22:35:37 +0200
KVM virtualization basic deployment
KVM virtual machine:
1.KVM is the abbreviation of kernel based virtual machine. It is an open source system virtualization module. It has been integrated into various major Linux distributions since Linux 2.6.20. It uses Linux's own scheduler for management, so compared with Xen, its core source code is very few. KVM has become one of the mai ...
Added by crackfox on Mon, 23 Dec 2019 12:46:34 +0200
Front end learning notes-8.4 data interaction
Ajax: asynchronous JavaScript and XML, using JavaScript to execute asynchronous network requests
If you want users to stay on the current page and send out new HTTP requests at the same time, you must send this new request with JavaScript. After receiving the data, you can use JavaScript to update the page. In this way, users wi ...
Added by misterfine on Sun, 22 Dec 2019 19:07:01 +0200
026.4 upload text for network programming
In general, it is in the sealed jar package. Here, you can implement this function through the original steps##############################################################################Client steps:1. Determine the connection address and port2. Read files3. Get socket output stream4, send5. Send the end tag to the server to end the read opera ...
Added by PHPHorizons on Sun, 15 Dec 2019 22:02:04 +0200