Learn from me about Spring Cloud AlibabaNacos service registration and discovery
Service registration and discovery, service discovery is mainly used to achieve automatic registration and discovery of individual micro-service instances. It is the core of micro-service governance. To learn Spring Cloud Alibaba, first of all, you need to understand the service registration and discovery component in the framework, Nacos.
1. S ...
Posted by Grimloch on Tue, 24 Dec 2019 17:55:27 -0800
Network in Docker
Talking about the network in Linux
Connectivity between namespace s
Namespace is a feature supported after Linux 2.6.x kernel, which is mainly used for resource isolation. With namespace, a Linux system can abstract multiple network subsystems. Each subsystem has its own network device, protocol stack, etc., which do not affect each other.
...
Posted by benwilhelm on Thu, 19 Dec 2019 04:52:04 -0800
SaltStack automatic deployment keepalived to achieve high availability of haproxy
Experimental environment
rhel6.5
serevr1 salt-master,salt-minion keepalived+haproxy ip:172.25.254.100
server4 salt-minion keepalived+haproxy ip :172.25.254.104
server2 salt-minion ip:172.25.254.102
server3 salt-minion ip:172.25.254.103
Virtual IP 172.25.254.200
See https://blog.csdn.net/weixin_/article/details/834 ...
Posted by varzosu on Sat, 14 Dec 2019 12:55:02 -0800
The realization of master-slave cascade of mysql
Introduction:
The master-slave cascade is to reduce the pressure of the master database, which is more conducive to load balancing. If we don't have a cascade server, we can also achieve the effect of master-slave synchronization, but we don't recommend using it. On the one hand, the pressure of the master database is too hig ...
Posted by suprsnipes on Sat, 14 Dec 2019 11:16:05 -0800
docker runs python web Services
Create the simplest python+django project and run it in the docker container.
Environmental Science:
In 192.168.174.134 server
docker image: python:2 (python2.7.15)
django: 1.8.31. Create python project in 134 server
django-admin startproject ops
python manage.py migrate
Create a root user
python manage.py createsuperuser
root@u ...
Posted by jeffery on Sat, 14 Dec 2019 09:03:10 -0800
tomcat multi instance deployment
Close main station
[root@dell710 ~]# bash /usr/local/tomcat/bin/shutdown.sh
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/local/javaUsing CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomca ...
Posted by Dax on Sat, 14 Dec 2019 07:13:25 -0800
002 consumer tips
Tips for using consumer
View all registered services
consul catalog services
Configure consumer.json
{
"server": true,
"datacenter": "testgame",
"client_addr": "0.0.0.0",
"advertise_addr":"192.168.83.70",
"bootstrap_expect": 1,
"enable_syslog": true,
"enable_script_checks": true,
"data_dir": "/usr/local/consul/data",
"node_name": "co ...
Posted by Dagwing on Sat, 14 Dec 2019 03:54:19 -0800
Nginx virtual host based on host domain name
1. Copy the Nginx configuration file
[root@localhost ~]# cd /etc/nginx/conf.d/
[root@localhost conf.d]# cp default.conf default1.conf
2. Modify the configuration file default.conf
[root@localhost conf.d]# vim default.conf
server {
listen 80;
server_name www.host.com;
#charset koi8-r;
#access_log /var ...
Posted by Dilb on Fri, 13 Dec 2019 09:21:38 -0800
Loop and concurrency control of shell
Article directory
Cycle and concurrent number control
Grammatical structure
`for loop concurrent deletion of users
for uses a space as a separator when reading a row to get parameters, while uses a row as a separator
Concurrency control (FD and named pipeline realize concurrency)
-FD file handle
-Named pipe
-Case: FD and na ...
Posted by solodesignz on Thu, 12 Dec 2019 12:17:44 -0800
Install alirocketmq version from scratch on CentOS7: release-4.0.1
Install alirocketmq version from scratch on CentOS7: release-4.0.1 [pro test ha ha]
Install git
# Update package
$ yum update
# Install git
$ yum install git
# Verify git installation success
$ git --version
# So git can be installed successfully
Install wget dependency package
# Update package
$ yum install wget
# You can ...
Posted by SCRUBBIE1 on Thu, 12 Dec 2019 08:46:41 -0800