08 2018 档案

摘要:https://blog.csdn.net/yockie/article/details/51973740 阅读全文
posted @ 2018-08-17 15:35 oftenlin 阅读(541) 评论(0) 推荐(0)
摘要:使用 supervisor 服务,将程序监控起来,如果程序挂掉了,可以实现自启动 编写 c++ 程序 test.c 启动服务 supervisord -c /etc/supervisord.conf # 使用了默认的配置文件 在 /etc/ 下 要给需要自拉起的程序添加配置文件 默认放在 /etc/ 阅读全文
posted @ 2018-08-17 15:19 oftenlin 阅读(579) 评论(0) 推荐(0)
摘要:整合自互联网 一、hiredis 类库的安装 tar -zxvf hiredis-v0.13.3.tar.gz 二、封装 redisUtil.h 访问 实现 redis 的连接,按 key 来获取各个类型的数据 redisUtils.h /* * redis.h * * Created on: 20 阅读全文
posted @ 2018-08-16 14:30 oftenlin 阅读(4998) 评论(0) 推荐(0)
摘要:c++ md5 算法封装 md5.h md5.cpp 阅读全文
posted @ 2018-08-16 14:19 oftenlin 阅读(3312) 评论(0) 推荐(0)
摘要:一、初始化 git git init 这样会默认创建 master 分支 二、查看当前状态 git status 查看 git 的默认状态 三、创建一个文件,并把它添加到 git 仓库,使用 git status 查看工作区的的状态 vi README.m git status 能看到一下信息 On 阅读全文
posted @ 2018-08-16 10:26 oftenlin 阅读(341) 评论(0) 推荐(0)
摘要:整合自网路 一、安装的方法 1、安装 scons 下载地址:http://sourceforge.net/projects/scons/files/scons/2.1.0/scons-2.1.0.tar.gz/download 百度网盘:链接:https://pan.baidu.com/s/1tW5 阅读全文
posted @ 2018-08-15 09:22 oftenlin 阅读(7297) 评论(0) 推荐(0)
摘要:修改自网路 CommonTools.h /* * CommonTools.h * * Created on: 2018年8月2日 * Author: didi */ #include <iostream> #include <curl/curl.h> #include "zlib.h" #inclu 阅读全文
posted @ 2018-08-14 21:36 oftenlin 阅读(20315) 评论(1) 推荐(2)
摘要:有时开发项目,需要对数据库等配置放到程序对外面作为配置文件,配置文件对读取 ConfigManager.h ConfigManager.cpp 读取方法 配置文件 阅读全文
posted @ 2018-08-14 21:24 oftenlin 阅读(2031) 评论(0) 推荐(0)
摘要:对 log4cplus 库的封装,修改自网路 LogUtils.h LogUtils.cpp 阅读全文
posted @ 2018-08-14 21:16 oftenlin 阅读(2927) 评论(0) 推荐(0)