$ tar -zxf git-1.7.2.2.tar.gz$ cd git-1.7.2.2$ make prefix=/usr/local/gitsrv all$ make prefix=/usr/local/gitsrv install$yum install python python-setu...
分类:
其他好文 时间:
2014-08-26 15:00:46
阅读次数:
172
wgethttp://dxdown3.onlinedown.net/down/rsync-3.0.9.tar.zipgunziprsync-3.0.9.tar.ziptar-zxvfrsync-3.0.9.tar.gzcdrsync-3.0.9.tar.gz./configure--prefix=/usr/local/rsync309make&&makeinstall服务端:vim/etc/rsyncd.confstrictmodes=yeport=873logfile=/var/lo..
分类:
其他好文 时间:
2014-08-26 11:57:36
阅读次数:
162
Nginx升级版本或者重新编译增加参数这里我们重新编译下,增加nginx用户和组先创建用户#useraddnginx开始编译#cd/usr/local/nginx-1.6.1#./configure--user=nginx--group=nginx--prefix=/usr/local/nginx--with-http_ssl_module--with-http_stub_status_module--with-http_gzip_..
分类:
其他好文 时间:
2014-08-26 11:52:36
阅读次数:
322
如何用php批量删除数据库下所有前缀为prefix_的表。 例子,统一删除前缀为“prefix_”的表。 <?php? //设置数据库连接信息。数据库服务器地址,数据库用户名,数据密码? mysql_connect(‘数据库主机‘,‘数据库用户...
分类:
数据库 时间:
2014-08-26 07:30:06
阅读次数:
290
案例:开源中国iOS客户端 当我们新建一个工程的时候,在Supporting FIles文件下会看到一个以-Prefix.pch结尾文件的文件,pch全称是“precompiled header”,也就是预编译头文件,该文件里存放的工程中一些不常被修改的代码,比如常用的框架头文件,这样做的目的提.....
分类:
移动开发 时间:
2014-08-25 13:19:34
阅读次数:
275
题目链接:uva 1400 - "Ray, Pass me the dishes!"
题目大意:给定一个长度为n个整数序列,对m次询问作出回答,对于每次询问(a,b),找到两个下标x,y使得x到y的连续和为区间a,b中最大的连续和,如果存在多解优先x小,然后y小。
解题思路:线段树,对于每个节点维护三个线段值:
max_sub:区间连续最大和max_prefix:区间连续前缀最大...
分类:
其他好文 时间:
2014-08-24 23:52:43
阅读次数:
405
apt-get build-dep php5安装所需依赖包./configure --enable-opcache --prefix=/opt/php --with-apxs2=/usr/bin/apxs2 --with-mysql=mysqlnd --with-mysqli=mysqlnd --w...
分类:
Web程序 时间:
2014-08-23 16:39:11
阅读次数:
304
New Document/* GitHub stylesheet for MarkdownPad (http://markdownpad.com) */
/* Author: Nicolas Hery - http://nicolashery.com */
/* Version: b13fe65ca28d2e568c6ed5d7f06581183df8f2ff */
/* Source: http...
分类:
数据库 时间:
2014-08-22 19:47:49
阅读次数:
362
安装apache[root@centos64x64ctyun]#tarzxfhttpd-2.2.17.tar.gz[root@centos64x64ctyun]#cdhttpd-2.2.17[root@centos64x64httpd-2.2.17]#./configure--prefix=/application/apache2.2.17--enable-deflate--enable-expires--enable-headers--enable-modules=most--enable-so--wi..
分类:
数据库 时间:
2014-08-22 18:10:59
阅读次数:
233
由于工作中需要用到lighttpd,自己安装了一个,遇到了一些问题记录如下:
(1)安装
只需要下面3步即可:
./configure --prefix=/home/users/xxx/lighttpd/lighttpd-1.4.20-bin
make
make install
(2)到安装之后的目录下创建2个文件夹
mkdir logs
mkdir html
...
分类:
其他好文 时间:
2014-08-22 17:57:59
阅读次数:
317