摘要:
ThreadLocal-MDC 应用 log4j.properties log4j.rootLogger=info, stdout, R log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layo 阅读全文
摘要:
@Test public void testThreadState1() throws Exception { Thread thread4TestState = new Thread(new Runnable() { @Override public void run() { try { Thre 阅读全文
摘要:
快速查看ES集群状态 GET _cluster/health { "cluster_name": "elasticsearch", "status": "yellow", "timed_out": false, "number_of_nodes": 1, "number_of_data_nodes" 阅读全文
摘要:
关于LinkedHashMap维护顺序的一些源码注释 阅读全文
摘要:
/** * Acquires in exclusive uninterruptible mode for thread already in * queue. Used by condition wait methods as well as acquire. * * @param node the 阅读全文
摘要:
export JAVA_HOME=/usr/java/jdk1.8.0_181export PATH=$JAVA_HOME/bin:$PATHexport CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib 阅读全文
摘要:
什么时候使用组合索引,什么时候使用单独索引 一.前期数据准备 1.建表 CREATE TABLE `user` ( `uid` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL, `pwd` varchar(50) DE 阅读全文
摘要:
1.首先下载官方的源代码 https://github.com/elasticjob/elastic-job-lite 2.对要使用到的elastic-job-lite-console模块进行mvn install 我这里直接进入到elastic-job-lite-console目录进行mvn in 阅读全文
摘要:
wget http://repo.mysql.com/mysql57-community-release-el7-8.noarch.rpm rpm -ivh mysql57-community-release-el7-8.noarch.rpm yum -y install mysql-server 阅读全文
摘要:
1.查看已经开放的端口 firewall-cmd --list-ports 2.开启指定端口 firewall-cmd --zone=public --add-port=2181/tcp --permanent 3.重启防火墙 firewall-cmd --reload 4.核实下 阅读全文