1.确保能连接网络 如不能连接网络:vi /etc/sysconfig/network-scripts/ifcfg-enp0s3 NOBOOT=no 修改为yes 重启 2.安装相关工具: yum install wget ###### wget yum install pecl yum insta ...
分类:
其他好文 时间:
2017-11-18 18:49:50
阅读次数:
146
系统环境 操作系统:64位CentOS Linux release 7.2.1511 (Core) 安装nginx依赖包 [root@localhost ~]# yum install gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl—d ...
分类:
其他好文 时间:
2017-11-18 12:42:59
阅读次数:
191
Centos7.0安装Nginx1.8.1一、安装Nginx依赖包系统环境是Centos7.0#yum–yinstallpcre-devel#yum–yinstallopenssl-devel#yum–yinstallgcc#./configure--prefix=/usr/local/nginx--with-http_ssl_module--with-http_spdy_module--with-http_stub_status_module--with-pcre注释?.
分类:
其他好文 时间:
2017-11-15 10:53:01
阅读次数:
210
Centos7.0安装Nginx1.8.1一、安装Nginx依赖包系统环境是Centos7.0#yum–yinstallpcre-devel#yum–yinstallopenssl-devel#yum–yinstallgcc#./configure--prefix=/usr/local/nginx--with-http_ssl_module--with-http_spdy_module--with-http_stub_status_module--with-pcre注释?.
分类:
其他好文 时间:
2017-11-15 10:52:11
阅读次数:
156
/usr/include/php5/ext/pcre/php_pcre.h:29:18: fatal error: pcre.h: No such file or directory apt-get update apt-get install libpcre3 libpcre3-dev ...
分类:
其他好文 时间:
2017-11-14 00:20:55
阅读次数:
195
有时候在一些特定的业务场景中需要匹配,或者提取一些关键的信息,例如匹配网页中的一些链接, 提取一些数据时,可能会用到正则匹配。 下面介绍一下php中的一些常用的正则处理函数。 一、preg_replace($pattern,$replacement,$subject) 执行一个正则表达式的搜索和替换 ...
分类:
Web程序 时间:
2017-11-12 18:35:09
阅读次数:
206
nginx安装 本文是介绍使用源码编译安装,包括具体的编译参数信息。 正式开始前,编译环境gcc g++ 开发库之类的需要提前装好。 安装make: 安装g++: 一般我们都需要先装pcre, zlib,前者为了重写rewrite,后者为了gzip压缩。 1.选定源码目录 可以是任何目录,本文选定的 ...
分类:
Web程序 时间:
2017-11-12 17:33:35
阅读次数:
256
####centos 7.2 通过源码编译安装nginx#### 第一步:安装编译所需工具。命令如下: sudo yum install gcc 第二步:安装依赖包 命令如下:【 sudo yum install zlib zlib-devel openssl openssl-devel pcre ...
分类:
Web程序 时间:
2017-11-12 13:30:38
阅读次数:
322
1、安装prce(重定向支持)和openssl(https支持,如果不需要https可以不安装。) yum -y install pcre* yum -y install pcre* yum -y install openssl* 2、下载nginx 1.7.8 wget http://nginx. ...
分类:
系统相关 时间:
2017-11-08 17:56:21
阅读次数:
303
迫于生活,不得不学习。。。 首先说一下安装nginx吧,我看到的两种方法,为了装X,就选了复杂点的。。 **********************安装前的准备************************* 安装pcre开发包: yum install -y pcre-devel 安装编译源码所 ...
分类:
系统相关 时间:
2017-11-07 12:21:57
阅读次数:
256