import redis.clients.jedis.Jedis;public class A { public static void main(String[] args) throws Exception { Jedis jedis = new Jedis("localhost", 6379) ...
分类:
其他好文 时间:
2021-01-05 10:52:53
阅读次数:
0
The Atomic Reference Counter (Arc) type is a smart pointer that lets you share immutable data across threads in a thread-safe way. I couldn’t find any ...
分类:
其他好文 时间:
2021-01-01 12:32:52
阅读次数:
0
在阿里云服务器Centos7中安装mysql5.7,解压数据库初始化后,报错 ./mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or di ...
分类:
数据库 时间:
2020-12-31 11:58:26
阅读次数:
0
1. logrotate 介绍 logrotate 程序是一个日志文件管理工具。用来把旧的日志文件删除,并创建新的日志文件,称为日志 转储或滚动。可以根据日志文件的大小,也可以根据其天数来转储,这个过程一般通过 cron 程序来执 行 2. logrotate 配置 相关文件 计划任务:/etc/c ...
分类:
其他好文 时间:
2020-12-30 11:21:45
阅读次数:
0
方式?:Redis的setNX() , 做消息id去重 java版本?目前不不?支持设置过期时间//Redis中操作,判断是否已经操作过 TODOboolean flag = jedis.setNX(key);if(flag){//消费}else{//忽略略,重复消费}方式?:redis的 Incr ...
分类:
其他好文 时间:
2020-12-28 10:58:18
阅读次数:
0
项目占用内存有点大,进程总被杀死,设置一下虚拟内存试试 一、先查看一下自己的服务器swap大小 [root@localhost ~] free -h # 下面显示的 Swap 即为我们的虚拟内存(我的内存条为4G的) total used free shared buff/cache availab ...
分类:
其他好文 时间:
2020-12-25 12:53:03
阅读次数:
0
作者:张首富时间:2020-12-17nginx配置如下server{listen443ssl;server_nametest.zhangshoufu.com;#sslon;ssl_certificate/etc/nginx/cert/4595406__guiji.ai.pem;ssl_certificate_key/etc/nginx/cert/4595406__guiji.ai.key;ssl
分类:
微信 时间:
2020-12-22 12:38:29
阅读次数:
0
一:线程与进程的概念 进程(Process) 是计算机中的程序关于某数据集合上的一次运行活动,是系统进行资源分配和调度的基本单位,是操作系统结构的基础。 在当代面向线程设计的计算机结构中,进程是线程的容器。程序是指令、数据及其组织形式的描述,进程是程序的实体 线程(thread) 是操作系统能够进行 ...
分类:
编程语言 时间:
2020-12-18 12:21:01
阅读次数:
2
from docx.shared import Pt,RGBColor from docx.oxml.ns import qn #word中字体的颜色、大小、字体def style(tt,tsize,color,rfont): for ii in tt: for run1 in ii.runs: f ...
分类:
其他好文 时间:
2020-12-16 12:37:51
阅读次数:
2
1.引入redis的jar包<!--配置2 使用 jedis 作客户端驱动--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifact ...
分类:
编程语言 时间:
2020-12-14 13:22:36
阅读次数:
5