上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 40 下一页
摘要: user www www;worker_processes 10;error_log /data1/logs/nginx_error.log crit;#pid logs/nginx.pid;#Specifies the value for maximum file desc... 阅读全文
posted @ 2012-10-12 23:06 shuaixf 阅读(1518) 评论(0) 推荐(0)
摘要: mod_deflate came with 2nd generation of Apache web-server. It's an effective replacement of its predecessor – mod_gzip module that was used in Apache ... 阅读全文
posted @ 2012-10-10 11:47 shuaixf 阅读(424) 评论(0) 推荐(0)
摘要: 1、开启gzip压缩 开启gzip功能能大大降低网络传输的带宽,从而提高网页加载速度;一般对纯文本内容可压缩到原大小的40%。 (1) 编辑Apache配置文件httpd.conf,查找下面这一行 #LoadModule deflate_module modules/mod_deflate.so... 阅读全文
posted @ 2012-10-10 11:06 shuaixf 阅读(348) 评论(0) 推荐(0)
摘要: pg_dumpis an effective tool to backup postgres database. It creates a *.sql file with CREATE TABLE, ALTER TABLE, and COPY SQL statements of source dat... 阅读全文
posted @ 2012-10-06 16:31 shuaixf 阅读(805) 评论(0) 推荐(0)
摘要: 今天在虚拟机上整理了下pgbouncer的安装使用过程,记录如下。说明:pgbouncer是一款轻量级针对postgresql的数据库连接工具,可以对客户端的连接做限制,防止恶意连接,另外也可以减少数据库的实际连接数,从而减少数据库的开销。环境: VMWARE 8CentOS 5.7PG 9.1.2... 阅读全文
posted @ 2012-10-02 16:30 shuaixf 阅读(1932) 评论(0) 推荐(0)
摘要: Linux下运行的Web服务器Apache,默认日志文件是不分割的,一个整文件既不易于管理,也不易于分析统计。安装cronolog后,可以将日志文件按时间分割,易于管理和分析。 cronolog安装配置非常简单,下载后只需要输入几个命令即可完成。 1、下载(最新版本) # wget http:... 阅读全文
posted @ 2012-10-01 18:57 shuaixf 阅读(1275) 评论(1) 推荐(0)
摘要: // See related links for more status codes // Use this header instruction to fix 404 headers// produced by url rewriting...header('HTTP/1.1 200 OK'); // Page was not found:header('HTTP/1.1 404 Not Found'); // Access forbidden:header('HTTP/1.1 403 Forbidden'); // The page move 阅读全文
posted @ 2012-09-29 14:07 shuaixf 阅读(481) 评论(0) 推荐(0)
摘要: 一、百度地图API介绍 百度地图API是可以给开发人员调用的开放API,我们可以用Javascript语言进行调用; 听起来API这个概念很抽象,初学者想:“百度的API,我们怎么能调用?”,其实不是这样,我们通过一个URL地址进行引用,然后就可以调用他的API; 不需要Web服务器,只需要一个浏... 阅读全文
posted @ 2012-09-23 15:54 shuaixf 阅读(597) 评论(1) 推荐(0)
摘要: 1. 什么是Sitemap 首先科普下什么是Sitemap(按我自己的理解写的,如果不对,烦请纠正): Sitemap,顾名思义就是“网站地图”。它是一个xml文件,作用却不仅是地图那么简单,还提供了每个页面的较详细的信息:标题、生成时间、更新频率等。Sitemap中收录的URL是整... 阅读全文
posted @ 2012-09-21 22:00 shuaixf 阅读(694) 评论(0) 推荐(0)
摘要: 转:https://github.com/heroku/WAL-E Table of Contents WAL-E Disaster Recovery Introduction Primary Commands and Concepts Depend... 阅读全文
posted @ 2012-09-21 16:38 shuaixf 阅读(212) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 40 下一页