Dockerfile image making practice
If you don't know what Dockerfile is, you can check my previous blog:https://blog.51cto.com/14557905/2489466Dockerfile image production practiceThree steps for Dockerfile to create image1, Making sshd image1. Write Dockerfile file
[root@docker sshd]# vim Dockerfile
#base image
FROM centos:7
#User information
MAINTAINER this is sshd project
#B ...
Posted by keigowei on Fri, 24 Apr 2020 17:20:41 +0200
Oracle (Basic Grammar)
1. Functions
1.1 case conversion function
function
describe
LOWER()
All lowercase
UPPER()
uppercase
INITCAP()
title case
1.2 String Operating Functions
function
describe
concat()
Split String
Substr (field, startIndex,endIndex)
substr
length()
String Length
Instr (field,'character')
Location index where specified characte ...
Posted by speedyslow on Thu, 23 Apr 2020 05:04:22 +0200
Mybatis framework -- mybatis reverse engineering
< center > mybatis reverse engineering < / center >
The purpose of reverse engineering is to reduce our development time. The so-called Mybatis reverse engineering is that Mybatis will automatically generate pojo, mapper and mapper.xml according to the data table we have designed.
The next step is the project construction proces ...
Posted by FastLaneHosting on Wed, 22 Apr 2020 18:14:12 +0200
SonarQube installation configuration
thanks
Download sonarqube-6.4
Download SonarQube Scanner
mysql adds a database named sonar and the user sonarqube@sonarqube
Unzip SonarQube and modify the database configuration and user configuration of the configuration file
[root@localhost pig]# vim sonarqube-6.4/conf/sonar.properties
# Configure database user na ...
Posted by gfoot on Wed, 22 Apr 2020 17:16:17 +0200
Talk about my SQL detecting time task of canal
order
This paper focuses on my SQL detecting time task of canal
MysqlDetectingTimeTask
canal-1.1.4/parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/MysqlEventParser.java
class MysqlDetectingTimeTask extends TimerTask {
private boolean reconnect = false;
private MysqlConnection mysqlConnection;
...
Posted by TheAngst on Mon, 20 Apr 2020 18:04:02 +0200
Developing a simple personnel management system with Python 3 + Django 3
1. Creating Django projects with pycharms
Remember to install mysqlclient
(1) Database configuration
We found the DATABASES configuration item in the settings.py file of the project, and changed its information to:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Or use mysql.connector.django
'NAME': 'u ...
Posted by PHP_TRY_HARD on Sat, 18 Apr 2020 19:42:09 +0200
11, Getting started with Python - Advanced
Advanced
Date and time
import datetime
import time # Introduce time Modular
import calendar
#Get current date time
now=datetime.datetime.now()
print(now)
#Get the specified date
d=datetime.datetime(2019,10,1,12,23,40)
print(d)
#Date to string
d2=d.strftime("%Y/%m/%d %H:%M:%S")
print(d2)
#String to date
s="2020-8-15 2:30:20"
d3=datetime.da ...
Posted by Black Rider on Wed, 15 Apr 2020 17:06:18 +0200
squid forward and reverse proxy and balanced polling
squid forward agent
Principle: a machine that can't access the Internet can access the website that can't be accessed through the agent Here I use my real machine as an agent. The virtual machine accesses the website through the agent Operating System: Red Hat Enterprise Linux Server 7.2 (Maipo)
squid installation a ...
Posted by katuki on Wed, 15 Apr 2020 16:35:33 +0200
Nginx balanced TCP protocol server case
After version 1.9, nginx can act as a port forwarding function, that is, to access the specified port of the server, nginx can act as a port forwarding function to direct traffic to another server, and obtain the return data of the target server and return it to the requester.
The function of nginx's TCP proxy is different from that ...
Posted by dflow on Wed, 15 Apr 2020 12:04:12 +0200
Getting started with Go Mysql and Redis
Mysql and Redis operations
Mysql development
Install mysql and create test library
Create table
mysql> CREATE TABLE `user` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(20) DEFAULT '', `age` int(11) DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4;
mysql> insert into user (name,age)va ...
Posted by programguru on Sat, 11 Apr 2020 16:17:34 +0200