Docker Learning Process
Following is a step-by-step tutorial on learning docker
Common commands:
Delete all containers
docker rm `docker ps -a -q`
View all containers
docker container ls --all
Stop a single container
docker container stop container id
Remove all mirrors
docker rmi `docker images -q`
Remove a single image
docker rmi mirror id
...
Posted by seriousdamage on Sun, 28 Apr 2019 08:30:38 -0700
What pits are encountered in JAVA distributed development
1. Trampling Records in Spring Use
image
Spring uses multiple data sources through annotations
Pit: @Autowire is automatically injected by byType, while @Resource is automatically injected by byName by default, @Primary is the preferred choice.
For example, in a project there are two Redis sources, dataRedisTemplate and red ...
Posted by gabo0303 on Sat, 27 Apr 2019 05:30:36 -0700
More than just setting up a backend development environment for LNMP
Preface
The goal of this project is to install a series of common application services for back-end development on the newly installed CentOS 7.5 system (CentOS installation is not described here), and to deploy a website using phpMyAdmin as an example.
Nginx(1.16)
MySQL(8.0, Start Up)
PHP(7.3)
Redis(1.5)
memcached(1.4)
Composer(1.8)
phpMyAdmi ...
Posted by spamyboy on Fri, 26 Apr 2019 10:12:35 -0700
Analysis of redis serialization in Springboot
Reasons for the study:
When spring boot uses redis to get data and convert it to objects,
Always prompt: "com.alibaba.fastjson.JSONException: syntax error, expect {, actual [, pos 0"."
Finally, it is found that this is due to the serialization of redis. So let's analyze the way redis is serialized:
1. In spri ...
Posted by aperales10 on Tue, 23 Apr 2019 13:45:34 -0700
Jedis source code analysis: client design and implementation routine
Preface
Jedis is the preferred client for java application to access Redis service. This paper analyses the source code of jedis client, and picks up the common routine of client design and implementation.
Connection
To access (Redis) services, you first need to establish a connection with the service, so the client library first needs to abstr ...
Posted by divadiva on Sun, 21 Apr 2019 17:33:33 -0700
RedisMQ of Queue Factory
This time I share with you the usage of RedisMQ queue, the first two articles Queue Factory (MSMQ) and RabbitMQ of Queue Factory Briefly introduce the construction of the corresponding queue environment and the use of common methods, together with the EDIS MQ shared in this article, we have achieved the goal of "three swordsmen" in ou ...
Posted by rajns on Sun, 21 Apr 2019 12:30:34 -0700
[High Concurrency Solution] Jedis responds to high concurrency by operating pipelines, transactions, and watches
For an Internet platform, high concurrency is a common scenario. The most representative ones are secondkill and snap-up. High concurrency has three characteristics:
1. High concurrent reading
2. High concurrent write (consistency)
3. Oversell
How does the front end respond?
1. Caching static data, such as pictures, html pages, js, etc.
2. Buil ...
Posted by pdpullmn612 on Sat, 20 Apr 2019 14:39:33 -0700
How linux uninstalls mounted files
*** Documents can not be uninstalled
[root@gfsd1 mnt]# umount 20170228_Mustang_V5R1_SP1/
umount: /mnt/20170228_Mustang_V5R1_SP1: target is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
[root@gfsd1 mnt]#
Solution
*** Find the processes and commands that use this file, a ...
Posted by jbruns on Sat, 20 Apr 2019 12:15:34 -0700
Asynchronous proxy crawler and proxy pool implemented by Python
An asynchronous agent pool is implemented using python asyncio. The free agent on the agent website is crawled according to the rules and stored in redis after verifying its validity. The number of agents is regularly expanded and the validity of agents in the pool is checked to remove invalid agents. At the same time, a server is implemented w ...
Posted by pennythetuff on Sat, 20 Apr 2019 12:06:33 -0700
socketIo Builds Long Connections (2)
Today we're going to talk about wehsocket and node development long connection. In a real project, we may want to achieve a function that is not a simple chat function. Now we need to integrate it. Redis Rabbit MQ, etc. implements o2o's reminder function:
First, integrate a redis:
We create a chat folder in which we write a package.json ...
Posted by rj2kix on Fri, 19 Apr 2019 23:27:35 -0700