岚天逸见

上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 77 下一页

2013年1月19日 #

一键自动往crontab添加条目脚本

摘要: 脚本的优点:只要将 监控脚本 被监控程序 和重启脚本放在同一个目录下,并将被监控程序运行起来,即可自动添加到crontab中,建议配置mooon提供的process_monitor.sh一起使用。#!/bin/sh# writed by yijian on 2013/... 阅读全文

posted @ 2013-01-19 10:11 岚天逸见 阅读(638) 评论(0) 推荐(0)

2013年1月17日 #

boost日期、时间操作

摘要: #include boost::posix_time::ptime now = boost::posix_time::from_time_t(time(NULL));boost::posix_time::to_simple_string(now); // CCYY-m... 阅读全文

posted @ 2013-01-17 15:06 岚天逸见 阅读(252) 评论(0) 推荐(0)

boost库thread.hpp编译警告(type attributes are honored only at type definition)已修复

摘要: 请浏览:https://svn.boost.org/trac/boost/ticket/7874#7874: compile warning: thread.hpp:342: warning: type attributes are honored onlyat ty... 阅读全文

posted @ 2013-01-17 10:50 岚天逸见 阅读(160) 评论(0) 推荐(0)

apache thrift的不足

摘要: thrift作为RPC优点明显,那些还在坚持使用消息排斥RPC的同学,都应当亲自接触体验一下。 不过thrift确实还有些明显的不足,表现在: 1.不能指定IP TNonblockingServer.cpp: for (res = res0; res; res =... 阅读全文

posted @ 2013-01-17 10:44 岚天逸见 阅读(219) 评论(0) 推荐(0)

2013年1月7日 #

使用thrift大量编译警告消息方法

摘要: https://issues.apache.org/jira/browse/THRIFT-1824背景:当在使用thrift时,如果我们的代码也采用automake方式编译,这样就存在config.h文件冲突,原因是thrift的Thread.h文件include它时... 阅读全文

posted @ 2013-01-07 15:29 岚天逸见 阅读(383) 评论(0) 推荐(0)

2012年12月27日 #

mono-3.0.2安装指南及一键安装脚本

摘要: 下载版本:http://blog.chinaunix.net/uid-20682147-id-3453384.htmlmono-3.0.2安装指南一见 2012/12/27目录1. 前言 11.1. 什么是mono? 11.2. 目的 12. 下载网址 13. 依赖关... 阅读全文

posted @ 2012-12-27 21:04 岚天逸见 阅读(342) 评论(0) 推荐(0)

Apache2.4安装指南及一键安装脚本

摘要: Apache2.4安装指南一见 2012/12/26目录1. 前言 12. 依赖库 13. Apache2.4下载网址 14. 安装步骤 24.1. 安装Pcre 24.2. 安装Apache 25. 修改配置 26. 附1:Apache官方中文文档主页 37. 附2... 阅读全文

posted @ 2012-12-27 10:07 岚天逸见 阅读(485) 评论(0) 推荐(0)

2012年12月24日 #

对于glog中ShutdownGoogleLogging后不能再次InitGoogleLogging问题的解决办法

摘要: 注:最近代码已修复此bughttps://code.google.com/p/google-glog/issues/detail?id=142https://code.google.com/p/google-glog/source/browse/trunk/src/u... 阅读全文

posted @ 2012-12-24 17:32 岚天逸见 阅读(1461) 评论(0) 推荐(0)

2012年12月11日 #

带属性的向前声明:warning: type attributes are honored only at type definition

摘要: 带属性的向前声明:class __attribute__((__dllexport__)) X;执行g++ -c -g x.cpp编译会收到如下warning:warning: type attributes are honored only at type defi... 阅读全文

posted @ 2012-12-11 17:02 岚天逸见 阅读(231) 评论(0) 推荐(0)

2012年12月5日 #

linux GCC编译错误:CPU you selected does not support x86-64 instruction set

摘要: Linux GCC编译时如遇到如下错误:cpp:1: error: CPU you selected does not support x86-64 instruction set是因为在64位平台上加了-march=pentium4这样一个编译参数,它只用于32位平... 阅读全文

posted @ 2012-12-05 15:11 岚天逸见 阅读(1047) 评论(0) 推荐(0)

上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 77 下一页

导航