- 浏览: 20744 次
- 性别:
- 来自: 北京
最新评论
文章列表
package com.anyec.demo;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringApplicationRunListener ...
openssl 生成私钥、申请文件,证书导入说明
1.生成私钥
openssl genrsa -out serverkey.key 1024/2048 这样生成的私钥不带密码(以后生成密钥库后,要将密码改成和密钥库密码相同)
openssl genrsa -des3 -out serverkey.key 1024/2048 这样生成的带密码(密码必须和以后生成的密钥库密码相同)
2.生成申请文件
openssl req -new -key serverkey.key -out cert.csr
需要用到第一步生成的私钥文件serverkey.key 根据提示填写各种信息(有的 ...
最接地气的Ngrok服务器搭建教
https://www.jianshu.com/p/f5c2a55e77bd
前言:
简单说一下什么是ngrok:
ngrok是一个内网穿透的解决方案,它使得你本地的服务器可以被局域网外的公网访问到ngork有服务端和客户端,服务端运行在公网服务器 ...
package com.anyec.point;
public class Point3D {
private Double x,y,z;
public Point3D() {
super();
}
public Point3D(Double x, Double y, Double z) {
super();
this.x = x;
this.y = y;
this.z = z;
}
public Double getX() {
return x;
}
public void setX(Doub ...
redis6 windows
- 博客分类:
- 开源框架
Redis 6.0出来了,但微软提供的Windows版Redis竟然还是3.2版本,不能忍,所以准备自己编译安装新版Redis。
编译Redis需要gcc和make,这里就用MSYS2来提供gcc和make环境。
先下载MSYS2,我用的清华的源 https://mirrors.tuna.tsinghua.edu.cn/msys2/distrib/x86_64/ ,
里面有安装版(后缀是exe)和免安装版(后缀是 tar.gz),我选的免安装版。
下载解压,然后需要给pacman(msys2的软件管理器)换一下国内源,清华的换源教程在
spring.mqtt.url=ssl://localhost:8883
spring.mqtt.keystore=mqtt.jks
spring.mqtt.keypassword=888888
spring.mqtt.truststore=truststore.ts
spring.mqtt.trustpassword=888888
SSLSocketFactory getSocketFactory2() throws Exception{
String trustedKeystoreFile=new ClassPathResource(truststor ...
<!DOCTYPE html>
<header>
<style>
#carMap {
width: 1200px;
height: 950px;
/* margin-right: 200px; */
}
</style>
<script src="./js/three.js"></script>
</header>
<body> ...
package com.anyec;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.core.exceptions.MybatisPlusException;
import com.baomidou.mybatisplus.core.toolkit.StringPool;
import com.bao ...
websocket wss https
- 博客分类:
- openssl
keytool -genkey -alias websocket -keyalg RSA -keystore ./ws.jks -validity 3650 -storepass 123456
keytool -importkeystore -srckeystore ./ws.jks -destkeystore ./ws.jks -deststoretype pkcs12
server.ssl.key-store=classpath:ws.jks
server.ssl.enabled=true
server.ssl.key-alias=websock ...
ActiveMQ.xml 配置详解
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<value>file:$
<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
license agreements. See the NOTICE file distributed with this work for additional
information regarding copyright ownership. The ASF licenses this file to
You under the Apache License, Version 2.0 (the " ...
package com.anyec.webmq;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.security.Key;
import java.security.KeyFactory;
import java.security.KeyManagementException;
import ...
openssl ca activemq
- 博客分类:
- openssl
openssl genrsa -out ca.key 2048
openssl req -x509 -new -nodes -key ca.key -subj "/CN=ca.anyec.cn/OU=ca.anyec.cn/O=anyec.cn/ST=HuBei/L=WuHan/C=CN" -days 36500 -out ca.cert
openssl pkcs12 -export -clcerts -name ca -inkey ca.key -in ca.cer -out ca.p12
==============ca======
keytool - ...
public class NThread implements Runnable {
static Object o=new Object();
volatile static int index=0;
static int n=10; //线程数量
int max=100; //打印次数
int i; //线程名
public NThread(int i) {
this.i=i;
}
public static void main(String[] args) {
for(int j=0;j<n;j++) {
( ...
jps |awk '{print $1}'|xargs kill -9
cd /home/soft/rocketmq/bin/
mqnamesrv -c /home/soft/rocketmq/conf/namesrv.properties &
nohup sh mqbroker -c /home/soft/rocketmq/conf/2m-2s-sync/broker-a.properties brokerIP1=192.168.1.120 >/dev/null 2>&1 &
cd /home/soft/rocketmq2/bin/
...