vi /etc/hosts 两个节点都执行 #Public IP10.10.10.10 shdb110.10.10.20 shdb2#Virtual IP10.10.10.30 shdb1-vip10.10.10.40 shdb2-vip#Private IP192.168.7.10 shdb1-p ...
分类:
其他好文 时间:
2020-08-09 09:18:50
阅读次数:
74
一、守护进程的基本编码规范 详细参见:《AdvancedProgrammingin The Unix Environment》Section 13.3 Page 583 本小节将介绍一些守护进程的基本编码规范,这些规范将阻止守护进程与当前环境产生一些不必要的交互。本节将通过一个函数daemonize ...
分类:
编程语言 时间:
2020-08-08 23:43:37
阅读次数:
95
#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<string.h>#include<stdlib.h>#include<math.h>#include<time.h> int main01() { int i = 0; //do... ...
分类:
其他好文 时间:
2020-08-08 21:21:15
阅读次数:
126
list arrayList 多线程不安全 //java.util.ConcurrentModificationException 解决办法 * 1,new Vector<>();并发性能下降很大(所有操作都加锁) * 2,Collections.synchronizedList(arrayList ...
分类:
其他好文 时间:
2020-08-07 12:36:37
阅读次数:
77
Leetcode.345 Reverse Vowels of a String Write a function that takes a string as input and reverse only the vowels of a string. Example 1: Input: "hell ...
分类:
其他好文 时间:
2020-08-06 09:30:08
阅读次数:
64
Tomcat是Apache 软件基金会(Apache Software Foundation)的Jakarta 项目中的一个核心项目,在运用中也占有大部分的市场。 根据系统下载对应的版,在线的下载地址如下【centos下下载tar.gz格式】: http://tomcat.apache.org/do ...
分类:
其他好文 时间:
2020-08-04 16:49:51
阅读次数:
77
有时候使用DockerHub这样的公共仓库可能不方便,用户可以创建一个本地仓库供私人使用。两种不同的搭建Docker私有仓库的方法,都必须要基于一个Docker服务器上,相比较而言,Harbor功能更强大些。之前详细写过Registry私有仓库的搭建方法,这里的Registry只是有一点配置不一样而已,若要搭建Registry私有仓库,最好结合:Docker镜像的创建与构建私有库,对比其不一样的地
分类:
其他好文 时间:
2020-08-04 16:44:42
阅读次数:
88
1、简介 MBG:Mybatis Generator(代码生成器) 文档http://mybatis.org/generator/configreference/xmlconfig.html 逆向工程: 根据table,逆向分析数据表,自动生成javaBean -- dao -- dao.xml - ...
分类:
其他好文 时间:
2020-08-04 11:26:36
阅读次数:
76