Initial use of haproxy

Initial use of haproxy brief introduction HAProxy provides load balancing and proxy based on tcp and http applications. It is a fast, free and reliable solution Although the performance and stability of HAProxy are not as good as lvs, it is much better than lvs in function install On centos7, HAProxy can be inst ...

Posted by Xu Wei Jie on Sat, 04 Apr 2020 14:50:33 -0700

tcp programming -- client obtains server input and output stream

tcp programming -- client obtains server input and output stream Train of thought: Step 1: instantiate a ServerSocket object (server socket) to wait for requests on the network (that is, the socket waiting to connect) Step 2: call the accept() method to return a socket object connected to the client socket object Step 3: the output stream obtai ...

Posted by bgoulette612 on Sat, 04 Apr 2020 12:56:32 -0700

Setting up MYSQL 5.7.21 text notes in linux

Environmental Science: Virtual machine: VMware 12 Pro Linux: rhel-server-6.4-x86_64 MYSQL: 5.7.21 1. Download mysql In official website: http://dev.mysql.com/downloads/mysql/ , select the following version of mysql to download: 2. Unzip the installation package in / usr/local and rename it mysql [root@mys ...

Posted by zggtf211 on Fri, 03 Apr 2020 21:28:36 -0700

Docker MySQL M-S practice

Get mirror image docker run -p 33006:3306 --name mysql-master -v /data/docker/mysql/conf/:/etc/mysql/mysql.conf.d/:rw -v /data/docker/mysql/logs:/var/log/mysql/:rw -v /data/docker/mysql/data/:/var/lib/mysql/:rw -e MYSQL_ROOT_PASSWORD=123456 -d mysql:5.7 Enter docker mysql docker exec -it mysql /bin/bash docker m ...

Posted by SargeZT on Fri, 03 Apr 2020 13:23:00 -0700

Simple RPC framework based on Socket+Zookeeper

RPC process details Implementation content json serialization zookeeper implements service registration on the server side and service discovery and load balancing on the client side Automatically scan the interface provided by the server and register it in zookeeper Automatically generate client dynamic proxy objects socket communication M ...

Posted by alvinkoh on Fri, 03 Apr 2020 03:14:29 -0700

mysql master-slave configuration under linux

CentOS 6.5 192.168.1.84 host CentOS 6.5 192.168.1.83 slave 1, Primary server configuration: Create synchronization user and specify server address [root@node04 ~]# mysql -u root -p111111 mysql>use mysql; mysql>grant replication slave on *.* to 'tongbu'@'192.168.1.84' identified by '123456'; mysql>flush privileges # ...

Posted by smilinmonki666 on Thu, 02 Apr 2020 14:59:59 -0700

Spring boot + websocket + netty to push messages

Thank you for your reference- http://bjbsair.com/2020-04-01/tech-info/18392.html One of the application scenarios of Netty in the project: the message push function can be used to push messages to all users, or to specify a user. The spring boot project is created. The background server uses Netty technology, and the front page uses WebSocket t ...

Posted by jpadie on Thu, 02 Apr 2020 08:24:30 -0700

mysql Foundation (1) - linux Installation and configuration of mysql(5.7)

System Convention Download directory of installation files / opt/software Mysql directory installation location: usr/local/mysql Database save location / data/mysql Log saving location: data/logs/mysql Dependency package required for MySql installation Before installing mysql, you'd better install the dependency package ...

Posted by Lauram340 on Wed, 01 Apr 2020 12:00:28 -0700

dubbo source code analysis 5 -- ServiceBean publishing service

Publishing service ServiceBean Release entrance ServiceBean implements the afterpropertieset() method of the interface InitializingBean public void afterPropertiesSet() throws Exception { //Set provider, application, registers //Publishing service if (!isDelay()) { export(); } } If the service has ...

Posted by danf_1979 on Mon, 30 Mar 2020 12:53:21 -0700

Design pattern - adapter pattern

Adapter mode In life, there are two, three and round charging plugs. If you want to make these plugs work, you need a multi-functional adapter Basic introduction Adapter Pattern is a kind of structural pattern. It can transform the interface of a class into another interface representation expected by the client. Its main purpose is compatib ...

Posted by drranch on Fri, 27 Mar 2020 11:04:06 -0700