要确保用 new 动态分配的内存空间在程序的各条执行路径都能被释放是一件麻烦的事情。C++ 11 模板库的 <memory> 头文件中定义的智能指针,即 shared _ptr 模板,就是用来部分解决这个问题的。只要将 new 运算符返回的指针 p 交给一个 shared_ptr 对象“托管”,就不 ...
分类:
编程语言 时间:
2021-03-10 13:24:26
阅读次数:
0
配置文件 flume-taildir-logger.conf: # Name the components on this agent a1.sources = r1 a1.sinks = k1 a1.channels = c1 # Describe/configure the source a1. ...
分类:
其他好文 时间:
2021-03-08 13:38:15
阅读次数:
0
1 错误代码: ora-27101 ora-01034 错误主要内存: shard memory realm does not exit 错误分析: 此错误是不能连接oracle服务器的提示,代表oracle服务整体异常,重启oracle服务能恢复正常,再进行memory_target调整,降低配置 ...
分类:
数据库 时间:
2021-03-08 13:33:17
阅读次数:
0
GitLab官方搭建教程地址: https://about.gitlab.com/install/#ubuntu 1. 依赖包安装 sudo apt-get update sudo apt-get install -y curl openssh-server ca-certificates ...
分类:
其他好文 时间:
2021-03-05 13:25:21
阅读次数:
0
安装 首先打开brew.sh网站,把首页一条命令复制到终端里,执行,输入电脑登录密码,开始下载安装 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 换源 安 ...
分类:
系统相关 时间:
2021-03-05 13:12:52
阅读次数:
0
Redisson是一个在Redis的基础上实现的Java驻内存数据网格(In-Memory Data Grid)。它不仅提供了一系列的分布式的Java常用对象,还提供了许多分布式服务。其中包括(BitSet, Set, Multimap, SortedSet, Map, List, Queue, B ...
分类:
其他好文 时间:
2021-03-05 13:04:54
阅读次数:
0
1.执行npm run fix-memory-limit 2.再重新启动发现报错"node --max-old-space-size=10048"' 不是内部或外部命令,也不是可运行的程序 3.找到 在项目中 node_modules.bin 下的 webpack.cmd 和 webpack-dev ...
分类:
其他好文 时间:
2021-03-02 12:41:28
阅读次数:
0
1.查看端口 netstat -anp|grep port netstat -antup 2.文件传输 wget [-options] args curl [-options] args lftp [-options] args 3.远程登录 telnet host_name port ssh [- ...
分类:
其他好文 时间:
2021-03-01 14:17:05
阅读次数:
0
国内安装(可用): /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" ...
分类:
系统相关 时间:
2021-03-01 13:01:27
阅读次数:
0
protoc 编译工具 windows 平台下载对应平台的 protobuf,并配置环境变量 protobuf linux 环境先安装依赖 sudo apt-get install autoconf automake libtool curl make g++ unzip git clone htt ...
分类:
其他好文 时间:
2021-02-27 13:31:02
阅读次数:
0