检查pcre-8.21.tar.gz 存不存在

Introduction to PCRE
The PCRE package contains
Perl Compatible Regular Expression
libraries. These are useful for implementing regular expression
pattern matching using the same syntax and semantics as
This package is known to build and work properly using an LFS-7.9
Package Information
Download (FTP):
Download MD5 sum: 00aabbfe56d5a48b270f999b508c5ad2
Download size: 1.5 MB
Estimated disk space required: 25 MB (with tests)
Estimated build time: 0.3 SBU (with tests)
Additional Downloads
Required patch:
PCRE Dependencies
User Notes:
Installation of PCRE
Install PCRE by running the
following commands:
patch -Np1 -i ../pcre-8.38-upstream_fixes-1.patch &&
./configure --prefix=/usr
--docdir=/usr/share/doc/pcre-8.38 \
--enable-unicode-properties
--enable-pcre16
--enable-pcre32
--enable-pcregrep-libz
--enable-pcregrep-libbz2
--enable-pcretest-libreadline
--disable-static
To test the results, issue: make
Now, as the root user:
make install
mv -v /usr/lib/libpcre.so.* /lib &&
ln -sfv ../../lib/$(readlink /usr/lib/libpcre.so) /usr/lib/libpcre.so
Command Explanations
--enable-unicode-properties: This
switch enables Unicode properties support and includes the code for
handling UTF-8/16/32 character strings in the library. You need
this switch if you are going to build
--with-pcre=system switch.
--enable-pcre16: This
switch enables 16 bit character support.
--enable-pcre32: This
switch enables 32 bit character support.
--enable-pcregrep-libz:
This switch adds support to pcregrep to read .gz compressed files.
--enable-pcregrep-libbz2:
This switch adds support to pcregrep to read .bz2 compressed files.
--enable-pcretest-libreadline: This
switch adds line editing and history features to pcretest program.
--disable-static: This
switch prevents installation of static versions of the libraries.
mv -v /usr/lib/libpcre.so.*
/lib: Moves the PCRE library on the root filesystem so that it
is available in case grep gets reinstalled with
PCRE support.
Installed Programs:
pcregrep, pcretest and pcre-config
Installed Libraries:
libpcre.so, libpcre16.so, libpcre32.so,
libpcrecpp.so and libpcreposix.so
Installed Directory:
/usr/share/doc/pcre-8.38
Short Descriptions
that understands Perl
compatible regular expressions.
can test a Perl
compatible regular expression.
pcre-config
is used during the compile process of programs linking to
the PCRE libraries.nginx安装指南_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
nginx安装指南
上传于||文档简介
&&n​g​i​n​x​安​装​指​南
阅读已结束,如果下载本文需要使用1下载券
想免费下载本文?
你可能喜欢Nginx安装部署 - ruberzhu - 博客园
Nginx ("engine x") 是一个高性能的 HTTP 和 反向代理 服务器,也是一个 IMAP/POP3/SMTP 代理服务器。 Nginx 是由 Igor Sysoev 为俄罗斯访问量第二的 Rambler.ru 站点开发的,第一个公开版本0.1.0发布于2004年10月4日。其将源代码以类BSD许可证的形式发布,因它的稳定性、丰富的功能集、示例配置文件和低系统资源的消耗而闻名。2011年6月1日,nginx 1.0.4发布。
一般我们都需要先装pcre, zlib,前者为了重写rewrite,后者为了gzip压缩。
1.选定源码目录
选定目录 /usr/local/
cd /usr/local/
2.安装PCRE库
cd /usr/local/
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.21.tar.gz
tar -zxvf pcre-8.21.tar.gz
cd pcre-8.21
./configure
make install
3.安装zlib库
cd /usr/local/&
tar -zxvf zlib-1.2.8.tar.gz cd zlib-1.2.8
./configure
make install
cd /usr/local/
tar -zxvf openssl-1.0.1c.tar.gz
make install
5.安装nginx
Nginx 一般有两个版本,分别是稳定版和开发版,您可以根据您的目的来选择这两个版本的其中一个,下面是把 Nginx 安装到 /usr/local/nginx 目录下的详细步骤:
cd /usr/local/
tar -zxvf nginx-1.2.8.tar.gz
cd nginx-1.2.8&&
./configure --prefix=/usr/local/nginx&
make install
--with-pcre=/usr/src/pcre-8.21 指的是pcre-8.21 的源码路径。
--with-zlib=/usr/src/zlib-1.2.7 指的是zlib-1.2.7 的源码路径。
确保系统的 80 端口没被其他程序占用,
/usr/local/nginx/sbin/nginx
检查是否启动成功:
netstat -ano|grep 80 有结果输入说明启动成功
打开浏览器访问此机器的 IP,如果浏览器出现 Welcome to nginx! 则表示 Nginx 已经安装并运行成功。
/usr/local/nginx/sbin/nginx –s reload
8.修改配置文件
cd /usr/local/nginx/conf
vi nginx.conf
9.常用配置
#nginx运行用户和组
user&&& &&
#启动进程,通常设置成和cpu的数量相等
worker_processes& 4;
#全局错误日志及PID文件
pid /var/run/nginx.
error_log& /var/log/nginx/error.
&&&&&&& #epoll是多路复用IO(I/O Multiplexing)中的一种方式,但是仅用于linux2.6以上内核,可以大大提高nginx的性能
&&&&&&&&&&&&&&&&&& #单个后台worker process进程的最大并发链接数
&&&&&&& worker_connections& 10240;
#设定http服务器,利用它的反向代理功能提供负载均衡支持
&&&&&&& include&&&&&& mime.
&&&&&&& default_type& application/octet-
&&&&&&&& error_page 400 403 500 502 503 504& /50x.
&&&&&&& index index.html index.shtml
&&&&&&&& fastcgi_intercept_
&&&&&&& sendfile&&&&&&&
&&&&&&& # These are good default values.
&&&&&&& tcp_nopush&&&&&
&&&&&&& tcp_nodelay&&&&
&&&&&&& # output compression saves bandwidth
&&&&&&& gzip&
&&&&&&&& #gzip_
&&&&&&& #gzip_min_length& 1k;
&&&&&&& gzip_http_version 1.0;
&&&&&&& gzip_comp_level 2;
&&&&&&& gzip_buffers& 4 16k;
&&&&&&& gzip_
&&&&&&& gzip_disable "MSIE [1-6]\.";
&&&&&&& gzip_types& text/plain text/html text/css application/x-javascript application/xml application/xml+rss text/
&&&&&&& #gzip_
&&&&&&& server_name_in_
#设定负载均衡的服务器列表
&&&&&&& upstream portals {
&&&&&&&&&&&&&&&&& server 172.16.68.134:8082 max_fails=2 fail_timeout=30s;
&&&&&&&&&&&&&&&&& server 172.16.68.135:8082 max_fails=2 fail_timeout=30s;
&&&&&&&& &&&&&&& &&&&&&&& &&server 172.16.68.136:8082 max_fails=2 fail_timeout=30s;
&&&&&&&&&&&&&&&&& server 172.16.68.137:8082 max_fails=2 fail_timeout=30s;
&&&&&&& #upstream overflow {
&&&&&&&& #&&&&&& server 10.248.6.34:8090 max_fails=2 fail_timeout=30s;&&&&&&&
&&&&&&&& #&&&&&& server 10.248.6.45:8080 max_fails=2 fail_timeout=30s;&&&&&&&
&&&&&&& #}
&&&&&&& server {
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& #侦听8080端口
&&&&&&&&&&&&&&& listen&&&&&& 8080;
&&&&&&&&&&&&&&& server_name& 127.0.0.1;
&&&&&&&&&&&&&&&&&& #403、404页面重定向地址
&&&&&&&&&&&&&&&&&& error_page& 403 = /ebiz/other/217/403.
&&&&&&&&&&&&&&&&&& error_page& 404 = /ebiz/other/218/404.
&&&&&&&&&&&&&&&&&& proxy_connect_timeout&&&&& 90;
&&&&&&&&&&&&&&&&&& proxy_send_timeout&&&&&&&& 180;
&&&&&&&&&&&&&&&&&& proxy_read_timeout&&&&&&&& 180;
&&&&&&&&&&&&&&&&&& proxy_buffer_size 64k;
&&&&&&&&&&&&&&&&&& proxy_buffers 4 128k;
&&&&&&&&&&&&&&&&&& proxy_busy_buffers_size 128k;
&&&&&&&&&&&&&&&&&& client_header_buffer_size 16k;
&&&&&&&&&&&&&&&&&& large_client_header_buffers 4 64k;
&&&&&&&&&&&&&&& #proxy_send_timeout&&&&&&&& 3m;
&&&&&&&&&&&&&&& #proxy_read_timeout&&&&&&&& 3m;
&&&&&&&&&&&&&&& #proxy_buffer_size&&&&&&&&& 4k;
&&&&&&&&&&&&&&& #proxy_buffers&&&&&&&&&&&&& 4 32k;
&&&&&&&&&&&&&&& proxy_set_header Host $http_
&&&&&&&&&&&&&&& proxy_max_temp_file_size 0;
&&&&&&&&&&&&&&& #proxy_hide_header Set-C
&&&&&&&&&&&&&&&&&&
&&&&&&&& #&&&&&& if ($host != '' ) {
&&&&&&&& #&&&&&&&&&&&&&&& rewrite ^/(.*)$ /$1
&&&&&&&& #&&&&&& }
&&&&&&&&&&&&&& location / {
&&&&&&&&&&&&&&&&&& &&&
&&&&&&&&&&&&&& }
&&&&&&&&&&&&&&&&&& location ~ ^/resource/res/img/blue/space.gif {
&&&&&&&&&&&&&&&&&&& proxy_pass http://
&&&&&&&&& &&&& }
&&&&&&&&&&&&&& location = / {
&&&&&&&&&&&&&&&&&& rewrite ^(.*)$& /ebiz/event/517.
&&&&&&&&&&&&&& }
&&&&&&&&&&&&&&&&&& location = /ebiz/event/517.html {
&&&&&&&&&&&&&&&&&&& add_header Vary Accept-E
&&&&&&&&&&&&&&&&&&& root /data/web/
&&&&&&&&&&&&&&&&&&& expires 10m;
&&&&&&&&&& &&&&}
&&&&&&&&&&&&&& location = /check.html {
&&&&&&&&&&&&&&&&&&& root /usr/local/nginx/html/;
&&&&&&&&&&&&&&&&&&& access_
&&&&&&&&&&&&&& }
&&&&&&&&&&&&&& location = /50x.html {
&&&&&&&&&&&&&&&&&&& root /usr/local/nginx/html/;
&&&&&&&&&&&&&&& &&&&expires 1m;
&&&&&&&&&&&&&&&&&&& access_
&&&&&&&&&&&&&& }
&&&&&&&&&&&&& location = /index.html {
&&&&&&&&&&&&&&&&&& &&& add_header Vary Accept-E
#定义服务器的默认网站根目录位置
&&&&&&&&&&&&&&&&&&& root /data/web/html/
&&&&&&&&&&&&&&&&&&& expires 10m;
&&&&&&&&&&&&&& }
#定义反向代理访问名称
&&&&&&&&&&&&&&&&&& location ~ ^/ecps-portal/* {
&&&&&&&&&&&&&&&&&& # expires 10m;
#重定向集群名称
&&&&&&&&&&&&&&&&&&& proxy_pass http://
&&&&&&&&&&&&&&&&&&& #proxy_pass http://172.16.68.134:8082;
&&&&&&&&& &&&& }
&&&&&&&&&&&&&&&&&& location ~ ^/fetionLogin/* {
&&&&&&&&&&&&&&&&&& # expires 10m;
&&&&&&&&&&&&&&&&&&& proxy_pass http://
&&&&&&&&&&&&&&&&&&& #proxy_pass http://172.16.68.134:8082;
&&&&&&&&&&&&&&& }
&&&&&&&&&&&&&&&&&& #location& ~ ^/business/* {&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& &
&&&&&&&&&&&&&&& #&& # expires 10m;&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
&&&&&&&&&&&&&&& #&&& proxy_pass http://172.16.68.132:8088;&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
&&&&&&&&&& &&&&&#&&& #proxy_pass http://172.16.68.134:8082;&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
&&&&&&&&&&&&&&& #}
&&&&&&&&&&&&&&&&&& location ~ ^/rsmanager/* {
&&&&&&&&&&&&&&&&&&& expires 10m;
&&&&&&&&&&&&&&&&&&& root /data/web/;
&&&&&&&&&&&&&&&&&&& #proxy_pass http://
&&&&&&&&& &&&& }
#定义nginx处理的页面后缀
&&&&&&&&&&&&&&&&&& location ~* (.*)\.(jpg|gif|htm|html|png|js|css)$& {
&&&&&&&&&&&&&&&&&&&&&&&&&&& root /data/web/html/;
#页面缓存时间为10分钟
&&&&&&&&&&&&&&& &&&&&&&& expires 10m;
&&&&&&&&&&&&&&&&&& }
#设定查看Nginx状态的地址&&&&&
&&&&&&&&&&&&&& location ~* ^/NginxStatus/ {
&&&&&&&&&&&&&&&&&& &stub_
&&&&&&&&&&&&&&&&&&& access_
&&&&&&&&&&&&&&&&&&& allow 10.1.252.126;
&&&&&&&&&&&&&&&&&&& allow 10.248.6.49;
&&&&&&&&&&&&&&&&&&& allow 127.0.0.1;
&&&&&&&&&&&&&&&&&&&
&&&&&&&&&&&&&& }
&&&&&&&& #&&&&&& error_page&& 405 =200 @405;
&&&&&&&& #&&&&&& location @405
&&&&&&&& #&&&&&& {
&&&&&&&& #&&&&&&&&&&&&&&& proxy_pass http://10.248.6.45:8080;
&&&&&&&& #&&&&&& }&&
&&&&&&&&&&&&&& access_log& /data/logs/nginx/access.
&&&&&&&&&&&&&& error_log&& /data/logs/nginx/error.
&&&&&&&& server {
&&&&&&&&&&&&&&& listen&&&&&& 8082;
&&&&&&&&&&&&&&& server_name& _;
&&&&&&&&&&&&&& location = /check.html {
&&&&&&&&&&&&&&&&&&& root /usr/local/nginx/html/;
&&&&&&&&&&&&&&&&&&& access_
&&&&&&&&&&&&&& }
&&&&&&&&&&&&&&&&&&
&&&&&&&& server {
&&&&&&&&&&&&&&&&&& listen&&&&&& 8088;
&&&&&&&&&&&&&&&&&& server_name& _;
&&&&&&&&&&&&&&&&&& location ~ ^/* {
&&&&&&&&&&&&&&&&&& root /data/web/b2bhtml/;
&&&&&&&&&&&&&&&&&& access_
&&&&&&&& }&&&&&&&&&&&&&&&&
&&&&&&&& }
&&&&&&& server {
&&&&&&&&&&&&&&& listen&&&&&& 9082;
&&&&&&&&&&&&&&& server_name& _;
&&&&&&& #&&&&&&& location ~ ^/resource/* {
&&&&&&& #&&&&&&&&&&& expires 10m;
&&&&&&&& #&&&&&& &&& root /data/web/html/;
&&&&&&&& #&&&&&& }
&&&&&&&&&&&&&&& location& / {
&&&&&&&&&&&&&& & &&&&root /data/web/html/sysMaintain/;
&&&&&&&&&&&&&&&&&& &&& if (!-f $request_filename) {
&&&&&&&&&&&&&&&&&&&&&&&&&&& rewrite ^/(.*)$ /sysMaintain.
&&& &&&&&&&&&&&&&&&&&& &&&&}
&&&&&&&&&&&&&&& }&&&&pcre-8.21.tar.gz
pcre-8.21.tar.gz
pcre linux的安装文件,非常有用!pcre-8.21.tar.gz,
若举报审核通过,可奖励20下载分
被举报人:
举报的资源分:
请选择类型
资源无法下载
资源无法使用
标题与实际内容不符
含有危害国家安全内容
含有反动色情等内容
含广告内容
版权问题,侵犯个人或公司的版权
*详细原因:
VIP下载&&免积分60元/年(1200次)
您可能还需要
操作系统下载排行

我要回帖

更多关于 tar解压gz文件 的文章

 

随机推荐