- 博客(12)
- 收藏
- 关注
原创 Git 命令 创建与合并分支, 查找commit分支
创建与合并分支1. 创建分支 git branch name本地创建,创建远程关联远程方法a:git push --set-upstream origin master方法b: *新分支传到远程tiaxia@TIAXIA8 MINGW64 /c/Workspace/project/UIHouston/VPC-IDM-ADMIN (sonar_code...
2015-08-25 14:42:41 625
原创 Redis C语言
1. Redis安装wget http://download.redis.io/releases/redis-3.0.3.tar.gz$ tar xzf redis-3.0.3.tar.gz$ cd redis-3.0.3$ make参考链接:http://www.redis.io/downloadcp src/redis-server src/redis-cli /
2015-08-24 16:26:42 423
原创 Agilefant安装
参考链接: 1. https://github.com/Agilefant/agilefant/wiki/Agilefant-installation-guide如果系统不是tomcat 7, 需要同时安装tomcat7时, 方法如下:1. 拷贝agilefant.war到tomcat的webapps目录下.2. 修改tomcat配置文件conf/server.xml端口号, 如808
2015-08-17 18:11:36 1396
原创 类的callback抽象定义和调用
场景:多个类对象的多个操作需要回调.1. 定义CallbackAction, 保存类对象及此类相关操作template class ActionCallback{public: typedef void(T::*FUN)(Output_Type tuple); Callback(T* obj, FUN method) { class_ = obj; met
2015-08-14 18:31:00 768
原创 安装pysqlite
命令如下,如果有以下错误,请参看以下solution.[root@localhost bin]# pip install pysqliteCollecting pysqlite/usr/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90:InsecurePlatf
2015-08-14 13:31:57 4071
原创 安装mysql-python
安装mysql-python可以用命令”pip installmysql-python” 尝试。如果失败,有如下错误,请安装mysql-devel(yum installmysql-devel)[root@localhost tmp]# pip installmysql-pythonCollecting mysql-python Using cached MySQ
2015-08-14 13:25:42 593
原创 Http请求通过线程添加超时处理
1. HttpClient.h#ifndef _HTTPCLIENT_H_#define _HTTPCLIENT_H_#include #include "logger.h"#include #include "boost/thread/mutex.hpp"#include "boost/thread/condition_variable.hpp"using boost::asi
2015-08-13 18:40:01 1032
原创 Linux基本命令一
1. 编译及链接生成可执行文件示例gcc -c -I /usr/local/include/ http_test.cpp-o http_test.ogcc -L /usr/local/lib-lboost_locale http_test.o -o test2.查找当前目录下内容包含某个字段的文件,并显示文件目录:find . -name “*.h” ...
2015-08-13 18:36:18 1578
原创 Linux 命令(开放系统端口号/查看端口使用情况)
1. 开放系统端口号a. /sbin/iptables -I INPUT -p tcp--dport 8181 -j ACCEPTb. /etc/rc.d/init.d/iptables savec. 可以通过以下命令查看端口的状态:/etc/init.d/iptables status
2015-08-13 18:32:56 989
原创 CentOS 6.5上安装Python 2.7.8
Installing Python 2.7.8 on CentOS 6.51. UpdateCentOS and install development tools1.1 yum-y update1.2 yumgroupinstall -y 'development tools' 2. Installthe packages2.1
2015-08-13 18:25:36 521
原创 Python获取本机外网IP
1. 打开https://www.baidu.com/2. 输入ip, 进行搜索, 获取urlhttp://cn.bing.com/search?q=ip&go=%E6%8F%90%E4%BA%A4&qs=n&form=QBLH&pq=ip&sc=8-2&sp=-1&sk=&cvid=14b93b305cdc4183875411c3d9edf9383. 查找url返回结果
2015-08-13 15:21:01 4945
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人