摘要: CompilationRocksDB's library should be able to compile without any dependency installed, although we recommend installing some compression libraries (... 阅读全文
posted @ 2015-05-21 01:38 archoncap 阅读(1934) 评论(0) 推荐(0) 编辑
摘要: c++11 gcc4.8.x安装2014年12月11日默北要安装PHP-CPP,需要c++11,否则就会报错,错误信息如下所示:g++ -Wall -c -g -std=c++11 -fpic -o shared/common/modifiers.o common/modifiers.cppcc1p... 阅读全文
posted @ 2015-05-21 00:07 archoncap 阅读(626) 评论(0) 推荐(0) 编辑
摘要: Install ssdb-rocks on CentOS 6C.C. 发表于 2014年08月10日 20:14 | Hits: 649为了优化节操精选的弹幕系统,打算更换到Facebook的RocksDB测试,为了支持多台Web Server的场景,打算直接上ssdb-rocks来完成目的,如果有... 阅读全文
posted @ 2015-05-20 11:58 archoncap 阅读(370) 评论(0) 推荐(0) 编辑
摘要: 在Shell里面判断字符串是否为空分类:Linux shell2011-12-28 23:1815371人阅读评论(0)收藏举报shell主要有以下几种方法:echo “$str”|awk '{print length($0)}'expr length “$str”echo “$str”|wc -c... 阅读全文
posted @ 2015-05-18 18:36 archoncap 阅读(1029) 评论(0) 推荐(0) 编辑
摘要: mysql中limit与in不能同时使用的解决方式.分类:MySQL2011-10-31 13:531277人阅读评论(0)收藏举报mysqlsubqueryMySQL5.1中子查询是不能使用LIMIT的,报错: "This version of MySQL doesn't yet support ... 阅读全文
posted @ 2015-05-01 12:04 archoncap 阅读(571) 评论(0) 推荐(0) 编辑
摘要: linux shell 字符串操作(长度,查找,替换)详解在做shell批处理程序时候,经常会涉及到字符串相关操作。有很多命令语句,如:awk,sed都可以做字符串各种操作。 其实shell内置一系列操作符号,可以达到类似效果,大家知道,使用内部操作符会省略启动外部程序等时间,因此速度会非常的快。一... 阅读全文
posted @ 2015-05-01 01:41 archoncap 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Shell脚本中判断输入参数个数的方法投稿:junjie 字体:[增加 减小] 类型:转载这篇文章主要介绍了Shell脚本中判断输入参数个数的方法,使用内置变量$#即可实现判断输入了多少个参数,需要的朋友可以参考下$#代表了命令行的参数数量,可以看以下实例:复制代码 代码如下:if [ $# != ... 阅读全文
posted @ 2015-05-01 01:34 archoncap 阅读(452) 评论(0) 推荐(0) 编辑
摘要: OpenResty(Nginx)+Lua+GraphicsMagick实现缩略图功能发表于http://www.hopesoft.org/blog/?p=1188一、背景说明大多数网站基本都涉及到图片缩略图的处理,比如新闻配图、电商商品图等,特别是电商类网站,每个商品图对应多个不同尺寸的缩略图,用于... 阅读全文
posted @ 2015-04-30 18:32 archoncap 阅读(610) 评论(0) 推荐(0) 编辑
摘要: Have you ever wanted to set up your own VPN server? By following the steps below, you can set up your own L2TP VPN server on CentOS 6. Note that an L2... 阅读全文
posted @ 2015-04-30 11:29 archoncap 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 架设基于StrongSwan的L2tp/IPSec VPN服务器参考:http://agit8.turbulent.ca/bwp/2011/01/setting-up-a-vpn-server-with-ubuntu-1004-and-strongswan/以下操作基于Debian 6安装Stron... 阅读全文
posted @ 2015-04-29 19:28 archoncap 阅读(1071) 评论(0) 推荐(0) 编辑