- 博客(13)
- 资源 (4)
- 收藏
- 关注
原创 jenkins配置
下载载最新的版本, 官方网站http://jenkins-ci.org/#安装依赖apt-get install daemon#安装jenkinsdpkg -i jenkins_1.635_all.deb #修改jenkins 默认监听端口, 默认监听 8080 端口vim /etc/default/jenkinsHTTP_PORT=9000#重新 jenkins 服务/etc/init
2015-10-31 13:37:18 4919
原创 Nginx作为gitweb服务器
安装nginx和gitwebsudo apt-get install nginx gitweb将Gitweb安装目录链接到web主目录下sudo ln -s /usr/share/gitweb/ /var/www/安装spawn-fcgi和fastcgi-wrapper#安装 spawn-fcgisudo apt-get install spawn-fcgi #安装fastcgi-wrappe
2015-10-28 15:36:49 5164
原创 nginx配置cgi
CGI通用网关接口(Common Gateway Interface/CGI)描述了客户端和服务器程序之间传输数据的一种标准。wiki Common_Gateway_Interface 这个 Web 服务器使用了 UNIX shell 环境变量 来保存从 Web 服务器传递出去的参数,然后生成一个运行 CGI 的 独立进程 。CGI的第一个实现是 Perl 写的 1 。效率低下:每一个连接 fo
2015-10-28 12:37:02 18531 4
原创 CentOS安装mariadb
yum install mysql已安装: mariadb.x86_64 1:5.5.44-1.el7_1 #mariadb是mysql的一个分支,主要由开源社区在维护,采用GPL授权许可 MariaDB的目的是完全兼容MySQL,包括API和命令行,使之能轻松成为MySQL的代替品。#yum安装mysql就是安装mariadbwget http://mirrors.ctyun.cn
2015-10-27 17:16:41 798
原创 ubuntu搭建Gerrit代码审核服务器
谷歌的 Android 开源项目在 Git 的使用上有两个重要的创新,一个是为多版本库协同而引入的 repo,另外一个重要的创新就是 Gerrit —— 代码审核服务器。Gerrit 为 Git 引入的代码审核是强制性的,就是说除非特别的授权设置,向 Git 版本库的推送(Push)必须要经过 Gerrit 服务器,修订必须经过代码审核的一套工作流之后,才可能经批准并纳入正式代码库中。Gerrit工
2015-10-22 19:20:05 5541
原创 socket.io设置websocket优先使用
查看https://github.com/socketio/engine.io-client/blob/master/lib/socket.js#L91 this.transports = opts.transports || ['polling', 'websocket'];在浏览器可能有些不支持websocket所以通过polling进行握手,再升级到websocket协议。传输方式engine
2015-10-22 16:37:18 20067
原创 git archive用法
查看帮助 git archive [options] <tree-ish> [<path>...] -o, --output <file> write the archive to this file -0 store only -1 compress faster -9 c
2015-10-15 18:33:43 22335 1
原创 git subtree用法
替代git submodule 命令, 合并子仓库到项目中并放在子目录。添加子仓库#添加远程分支git remote add -f module_y [email protected]:root/module_y.git git subtree add --prefix=libs/module_y module_y master --squash在使用 –squash 参数的情况下, subtre
2015-10-15 17:03:07 3136
原创 git submodule子模块
使用submodule有助于项目模块划分,提高git管理的性能。demo|-- .git/|-- .gitignore|-- lib|-- README添加子模块注意需要在保存子模块的目录lib下执行git submodule add [email protected]:root/module_x.git查看缓冲区Index变化git status new file: .g
2015-10-14 18:44:16 3063
原创 mocha测试
参照: 初识 mocha in NodeJS 测试驱动开发(TDD)及测试框架Mocha.js入门学习 http://mochajs.org/Mocha.js是被广泛使用的Javascript测试框架, 支持TDD,BDD等多种接口The test/ DirectoryBy default, mocha looks for the glob ./test/*.js, so you may w
2015-10-10 18:16:36 1022
原创 git log参数
Commit Ordering--date-order show commits in the commit timestamp order.--author-date-order show commits in the author timestamp order.--topo-orderFor example, in a commit history like this:
2015-10-09 18:42:10 791
原创 Ubuntu 15.04趟坑笔记
不怎到按了哪里系统没有了侧边栏,重启也没有用,试了一些教程后还是打算重装unity.sudo apt-get install ubuntu-desktopsudo apt-get install unitysudo apt-get install unity-commonsudo apt-get install unity-lens*sudo apt-get install unity
2015-10-05 01:02:56 779
原创 mysql常用命令
数据库操作//查看所有数据库show database;//创建数据库create database mydb;//删除数据库drop database mydb;//选择数据库use mydb;表操作//查看数据库所有表show tables//创建数据库表create TABLE Books (bookId int not null primary key auto_inc
2015-10-03 18:30:40 413
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人