Linux Cluster Architecture (LVS DR mode building, preserved + LVS)

LVS DR mode building Preparatory work: three machines Distributor, also called scheduler (dir in short): 192.168.248.128 rs1 : 192.168.248.129 rs2 : 192.168.248.130 vip : 192.168.248.200 1. Edit the script file * * / usr/local/sbin/lvs_dr.sh * * on dir as follows: #! /bin/bash echo 1 > /proc/sys/net/ipv4/ip_forward #Open port forwarding ipv= ...

Posted by jackpf on Sun, 05 Jan 2020 09:12:48 +0100

Learning VTK on a Mac

Compilation on MAC OS X: https://www.vtk.org/Wiki/VTK/Building/MacOSX Compile vtk to make QT version 5 cmake configure: cmake ./ -G "Unix Makefiles" \ -DVTK_USE_QVTK:BOOL=ON \ -DCMAKE_INSTALL_PREFIX=/usr/local \ -DVTK_USE_GUISUPPORT:BOOL=ON \ -DVTK_QT_VERSION=5 \ -DModule_vtkGUISupportQt:BOOL=ON \ -DModule_vtkGUISu ...

Posted by stuartc1 on Fri, 03 Jan 2020 11:27:07 +0100

Docker security mechanism and resource management restrictions

Setting up the security mechanism of docker Container permissions Set the container to run at privilege level: - privileged=true sometimes we need the container to have more permissions For example, operating kernel module, controlling swap partition, mounting USB disk, modifying MAC address, etc. [root@foundation7 ...

Posted by robbyc on Thu, 02 Jan 2020 07:18:33 +0100

Use Consul to implement service discovery: instance-id customization (3 ways)

TIPS This article is based on Spring Cloud Hoxton, supporting all versions of Spring Cloud in theory. This article explores how to customize the InstanceId registered with Consul for microservices. Consul uses InstanceId as its unique identity, while Spring Cloud Consul defaults to InstanceId of ${spring.application.name}-${server.port}. The ...

Posted by zsxdcfv21 on Thu, 19 Dec 2019 09:50:32 +0100

Linux password generator

Now the application is more and more, often need to enter password, some have no requirements for the robustness of password, some need case, special characters, numbers, at least how many bits, etc., can't think of a better password. Fortunately, in Linux system, we have many ways to generate the password required by symbols. It ...

Posted by ewillms on Tue, 10 Dec 2019 09:42:40 +0100

Ali Cloud Internet of Things Platform Device Data Forwarding to Message Queue RocketMQ Full Link Test

Summary You can use the rule engine to forward IOT platform data to a message queue (RocketMQ) for storage.This enables the full-link, highly reliable transmission of messages from devices, Internet of Things platforms, RocketMQ to application servers.Starting with the creation of products and devices on the Internet of Things platform, the tex ...

Posted by kaitan on Tue, 10 Dec 2019 07:08:30 +0100

Docker common command quick reference manual

Record the daily use commands of docker. This article is mainly for linux + mac operating system. It is not sure whether window is applicable. Use it carefully <!-- more --> 1. docker process Three common case s are docker process start, stop and restart # Start docker service docker start # Shutdown docker service docker stop # Restart d ...

Posted by nykoelle on Mon, 09 Dec 2019 06:07:27 +0100

Navicat Premium 12.0.28(mac version) cracking

1,Download cracked files 2. Decompress the file After decompression, there will be a Navicat keygen MAC folder, in which there are two folders: Navicat keygen and Navicat Patcher 3. Compiled documents openssl needs to be installed before compilation. If homebrew is installed, openssl can be installed through brew install op ...

Posted by lukegw on Sun, 08 Dec 2019 02:59:09 +0100

TrueLicense-based project certificate validation

1. Brief description Developed software products tend to have a trial period of time when they are delivered for use, during which we do not want our code to be duplicated by our customers. At this time, the license comes in handy. The functions of the license include setting expiration date, binding ip, binding mac, etc.The Licensor directly g ...

Posted by 1josh13 on Sun, 24 Nov 2019 02:41:21 +0100

iOS runloop internal implementation logic

Internal logic of RunLoop Create runloop static CFRunLoopRef __CFRunLoopCreate(pthread_t t) { CFRunLoopRef loop = NULL; CFRunLoopModeRef rlm; uint32_t size = sizeof(struct __CFRunLoop) - sizeof(CFRuntimeBase); loop = (CFRunLoopRef)_CFRuntimeCreateInstance(kCFAllocatorSystemDefault, __kCFRunLoopTypeID, size, NU ...

Posted by standalone on Thu, 14 Nov 2019 17:10:41 +0100