1.正则中所有的匹配模式,都应该理解为"匹配了某字符或字符串后,紧跟着再匹配"。这个概念很重要。 2.中括号首部使用脱字符时,表示的是紧跟着匹配不含给定字符的字符,而不是允许不匹配给定的字符。 它们大多数时候是等价的,但在匹配行尾时,意义不同,例如:Aa[^bcd]$ 所匹配的行允许是Aaa$或Aa ...
分类:
其他好文 时间:
2017-10-18 02:05:44
阅读次数:
238
CentOS6下编译安装NginxBy:老宁一、准备make环境yum-yinstallgccgcc-c++automakeautoconflibtoolmake二、准备Nginx环境安装pcre、zlib,前者为了重写rewrite,或者为了gzip压缩。安装openssl1、安装PCRE库wgetftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.4..
分类:
其他好文 时间:
2017-10-17 19:54:25
阅读次数:
131
参考:http://blog.csdn.net/mycwq/article/details/24488691 在新装的CentOS 5.7系统中,先安装了nginx(含nginx必备依赖:gzip 模块需要 zlib 库;rewrite 模块需要 pcre 库;ssl 功能需要 openssl 库) ...
分类:
数据库 时间:
2017-10-15 17:55:59
阅读次数:
260
#!/bin/bashselect banben in nginx-1.6.3 nginx-1.7.3 nginx-1.8.1 nginx-1.9.9do if [[ -n $banben ]] ;then breakfidonepath_nginx="http://nginx.org/downlo ...
分类:
其他好文 时间:
2017-10-15 14:53:16
阅读次数:
161
nginx安装 本文是介绍使用源码编译安装,包括具体的编译参数信息。 正式开始前,编译环境gcc g++ 开发库之类的需要提前装好。 安装make: 安装g++: 一般我们都需要先装pcre, zlib,前者为了重写rewrite,后者为了gzip压缩。 1.选定源码目录 可以是任何目录,本文选定的 ...
分类:
数据库 时间:
2017-10-14 18:36:54
阅读次数:
341
一,安装GCC yum安装gcc-c ++ -y 二,安装nginx的所需要的依赖库 yum -y安装zlib-devel openssl-devel pcre-devel 三,如有安装老版本,则卸载。 查看:find -name nginx 卸载:yum删除nginx 四,下载nginx源码并解压 ...
分类:
系统相关 时间:
2017-10-10 20:29:05
阅读次数:
214
yum update yum install screen wget iptraf-ng unzip openssh-clients subversion git man setuptool system-config-firewall-tui ntsysv vim links bzip2 pcre ...
分类:
系统相关 时间:
2017-10-10 14:41:05
阅读次数:
349
1. 安装Nginx 软件:nginx-1.8.0.tar.gz 其他所需软件:openssl-1.0.2d.tar.gz、pcre-8.37.tar.gz、zlib-1.2.8.tar.gz 安装方式:源码编译安装 安装位置:/usr/local/nginx 下载地址:http://nginx.o ...
分类:
编程语言 时间:
2017-10-10 13:04:08
阅读次数:
196
1.安装相关环境 yum install -y gcc-c++ yum -y install libevent yum install -y pcre pcre-devel yum install -y zlib zlib-devel yum install -y openssl openssl-d ...
分类:
其他好文 时间:
2017-10-09 01:54:13
阅读次数:
157
#依赖pcre 库: yum -y install pcre pcre-devel #依赖zlib库:yum -y install zlib zlib-devel openssl openssl-devel ...
分类:
其他好文 时间:
2017-10-08 10:09:46
阅读次数:
143