1、redis的安装 a、 将下载好的redis安装包,解压后,进入文件根目录直接make , 此步完成,make PREFIX=/usr/local/redis install (PREFIX制定安装路径) b、将源码包里的配置文件复制到安装路径 eg: cp path/redis-5.0.8/r ...
分类:
其他好文 时间:
2020-04-05 20:17:39
阅读次数:
62
平时只要在application.properties中配置参数就可以了,在程序中就会自动进行读取。今天写的程序是可能存在多组配置项,就像多通道kafka同时接入到一个模块,要怎么配置参数呢? 这里做一个小小的示例片段。 1.使用配置项的java /** * 连接通道的参数 * 使用list,使得模 ...
分类:
移动开发 时间:
2020-04-05 20:10:07
阅读次数:
736
# Package Information for pkg-config prefix=/usr/local exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir_old=${prefix}/include/opencv include ...
分类:
Web程序 时间:
2020-04-04 18:40:07
阅读次数:
76
一、题目说明 题目208. Implement Trie (Prefix Tree),实现trie,包括insert、search、startsWith。 二、我的解答 Trie树,又叫“字典树”,“前缀树”。实现代码如下: 性能如下: 三、优化措施 ...
分类:
其他好文 时间:
2020-04-04 18:36:12
阅读次数:
65
window安装,下一步下一步就行了,接下来是配置 创建好文件夹之后打开cmd 输入: npm config set prefix "D:\nodejs\node_global" 注意:这里的路径要改成你自己创建的文件夹的路径 npm config set cache "D:\nodejs\node ...
分类:
Web程序 时间:
2020-04-01 13:09:45
阅读次数:
79
下载 http://nodejs.cn/download/ 2.解压并在目录下新建两个文件夹node_cache,node_global 3. 在根目录下启动cmd上输入 npm config set prefix "D:\nodeJs\node-v12.16.1-win-x64\node_glob ...
[TOC] 1、时间机器:备份+磁盘抹除 (1)磁盘抹除为exFAT格式时出现“无法抹除问题” 参考:https://blog.csdn.net/weixin_30478923/article/details/96456719?depth_1 utm_source=distribute.pc_rel ...
分类:
系统相关 时间:
2020-03-31 12:18:50
阅读次数:
154
拉两次车,第一次假设最长回文串就在两边 第二次,先使得左右两边判回文,在将剩下的串 在manachar一遍, 比较两种情况取最大值,然后就是输出问题见代码 #include <bits/stdc++.h> using namespace std; const int maxn = 1e6 + 5; ...
分类:
其他好文 时间:
2020-03-31 01:01:15
阅读次数:
71
有一种特殊的集合叫做PFS(Prefix Free Set)集合。一个PFS集合由若干字符串构成,且不存在一个字符串是另一个字符串的前缀。空集也被看作是PFS集合。例如 {"hellohello"} 和 {"hellohello", "goodbyegoodbye", "giantgiant", " ...
分类:
其他好文 时间:
2020-03-30 23:05:13
阅读次数:
88
cd $(brew --prefix)/Homebrew/Library/Taps/homebrew/homebrew-core/Formula git log --follow icu4c.rb git checkout -b icu4c-63.1 bc0c97952453ff6afc146aa3 ...
分类:
Web程序 时间:
2020-03-30 19:23:59
阅读次数:
211