上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页
摘要: 1.在官方下载thrift http://thrift.apache.org/download 这里下载thrift-0.11.0.tar.gz版本 2.如果想支持安装Cpp版本就需要先安装boost和bison,如果想thrift支持TNonblockingServer,需要先安装libevent 阅读全文
posted @ 2018-06-19 12:01 蓝天飞翔的白云 阅读(756) 评论(0) 推荐(0) 编辑
摘要: 1. C++API 头文件 #include <libconfig.h++> ,命名空间:using namespace libconfig; 2.多线程使用问题: (1)libconfig是完全可重入的,库中函数不使用全局变量和不保持成功调用间的状态。所以两个独立配置文件在两个不同线程间并发操作可 阅读全文
posted @ 2018-06-19 09:49 蓝天飞翔的白云 阅读(6843) 评论(0) 推荐(0) 编辑
摘要: fastcgi c/c++ API 下载地址:https://github.com/FastCGI-Archives 先上example 1.首先 initialize the FCGX library with FCGX_Init() 和initialize FCGX_Request with i 阅读全文
posted @ 2018-06-15 00:32 蓝天飞翔的白云 阅读(4747) 评论(0) 推荐(0) 编辑
摘要: 一.下载Nginx 依赖pcre,zlib,openssl 下载解压包,解压后进入 ./configue make make install 默认安装到/usr/local/ngnix 可执行文件在/usr/local/ngnix/sbin中 ngnix执行可选项: -c </path/to/con 阅读全文
posted @ 2018-06-15 00:00 蓝天飞翔的白云 阅读(608) 评论(0) 推荐(0) 编辑
摘要: 1.首先在https://trac.osgeo.org/geos下载geos-3.6.2.tar.bz2 解压后 2.使用 首先在 在程序编译时在makefile或g++加入 或g++ -I/root/env/include -L/root/evn/lib -lgeos 阅读全文
posted @ 2018-06-08 16:15 蓝天飞翔的白云 阅读(5199) 评论(0) 推荐(0) 编辑
摘要: boost::timer boost库定时器使用,需要在编译时加相关链接库 -lboost_timer -lboost_system boost::timer::cpu_timer 和boost::timer::auto_cpu_timer用于精确定时,有start(),elapsed(),is_s 阅读全文
posted @ 2018-06-07 17:36 蓝天飞翔的白云 阅读(1098) 评论(0) 推荐(0) 编辑
摘要: 1.读取文件 FILE *file = fopen(file_path,"rb"); 2.获取文件大小 fseeko(file,0,SEEK_END); uint64_t file_size = ftello(file); fseeko(file,0,SEEK_SET); 3.读取文件 size_t 阅读全文
posted @ 2018-05-30 14:41 蓝天飞翔的白云 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 注: 以下的操作前缀 为ctrl+b tmux -> session -> window -> pane session 新建一个tmux session tmux new -s my_session_name 删除一个session tmux kill-session -t session_nam 阅读全文
posted @ 2018-05-15 09:00 蓝天飞翔的白云 阅读(569) 评论(0) 推荐(0) 编辑
摘要: 1.看是否rc.local 第一行如果是 #!/bin/sh -e 改成 #!/bin/bash sudo systemctl enable rc-local.service 2.看rc.local的权限 chmod a+x /etc/rc.local 阅读全文
posted @ 2018-05-08 15:19 蓝天飞翔的白云 阅读(2047) 评论(0) 推荐(1) 编辑
摘要: 从Stack Overflow上找到的方法如下 在Settings->Terminal->Shell path 改成:cmd.exe "/K" "C:\Users\me\Miniconda3\Scripts\activate.bat" "C:\Users\me\Miniconda3" C:\User 阅读全文
posted @ 2018-05-06 16:02 蓝天飞翔的白云 阅读(3466) 评论(1) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页