摘要: 1. 首先安装一些库sudo yum install pcre-devel zlib-devel openssl-devel2. 去官网下载源码,并进行编译安装tar -xzvf nginx-1.0.14.tar.gzcd nginx-1.0.14./configure--prefix=/opt/nginx \make && make install注参数详解:--prefix #nginx安装目录,默认在/usr/local/nginx--user=nginx #运行nginx的用户--group=nginx #运行nginx的用户组--pid-path #pid问件位置,默 阅读全文
posted @ 2012-04-11 17:40 Fcicada · Sunny 阅读(780) 评论(0) 推荐(0) 编辑
摘要: This example will show you how to escape and un-escape a value to be included in a URI and within HTML.require 'cgi'# escapename = "ruby?"value = "yes"url = "http://example.com/?" + CGI.escape(name) + '=' + CGI.escape(value) + "&var=T"# url 阅读全文
posted @ 2012-04-11 11:33 Fcicada · Sunny 阅读(1169) 评论(0) 推荐(0) 编辑