顺便吐槽一下,有道笔记的排版太难用了,

啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊

============================================================================

测试nginx.conf文件配置语法是否错误:   /usr/local/nginx/sbin/nginx -t

fast shutdown:                        /usr/local/nginx/sbin/nginx -s stop

graceful shutdown:                    /usr/local/nginx/sbin/nginx -s quit

changing configuration, starting new worker processes with a new configuration, graceful shutdown of old worker processes:                            /usr/local/nginx/sbin/nginx -s reload

re-opening log files:                 /usr/local/nginx/sbin/nginx -s reopen

============================================================================

./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=<path> option.

2013年8月3日 16:10:26

[root@AY121110111722e1c8917 nginx-1.4.2]# groupadd NginxGroup

[root@AY121110111722e1c8917 nginx-1.4.2]# useradd -g NginxGroup NginxUser

[root@AY121110111722e1c8917 src]# wget http://nginx.org/download/nginx-1.4.2.tar.gz

yum -y install gcc

./configure: error: the HTTP rewrite module requires the PCRE library.

You can either disable the module by using --without-http_rewrite_module

option, or install the PCRE library into the system, or build the PCRE library

statically from the source with nginx by using --with-pcre=<path> option.

[root@AY121110111722e1c8917 src]# wget http://downloads.sourceforge.net/project/pcre/pcre/8.33/pcre-8.33.tar.gz

ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.33.tar.gz

yum -y install gcc-c++

[root@AY121110111722e1c8917 pcre-8.33]# ./configure --enable-utf

./configure: error: the HTTP gzip module requires the zlib library.

You can either disable the module by using --without-http_gzip_module

option, or install the zlib library into the system, or build the zlib library

statically from the source with nginx by using --with-zlib=<path> option.

[root@AY121110111722e1c8917 src]# wget zlib.net/zlib-1.2.8.tar.gz

[root@AY121110111722e1c8917 src]# wget http://www.openssl.org/source/openssl-1.0.1e.tar.gz

[root@AY121110111722e1c8917 nginx-1.4.2]# ./configure --with-openssl=/usr/bin/openssl

[root@AY121110111722e1c8917 nginx-1.4.2]# ./configure --user=NginxUser --group=NginxPwd --with-openssl=../pcre-8.33

Configuration summary

+ using system PCRE library

+ using OpenSSL library: ../pcre-8.33

+ using builtin md5 code

+ sha1 library is not found

+ using system zlib library

nginx path prefix: "/usr/local/nginx"

nginx binary file: "/usr/local/nginx/sbin/nginx"

nginx configuration prefix: "/usr/local/nginx/conf"

nginx configuration file: "/usr/local/nginx/conf/nginx.conf"

nginx pid file: "/usr/local/nginx/logs/nginx.pid"

nginx error log file: "/usr/local/nginx/logs/error.log"

nginx http access log file: "/usr/local/nginx/logs/access.log"

nginx http client request body temporary files: "client_body_temp"

nginx http proxy temporary files: "proxy_temp"

nginx http fastcgi temporary files: "fastcgi_temp"

nginx http uwsgi temporary files: "uwsgi_temp"

nginx http scgi temporary files: "scgi_temp"

修改文件:/usr/local/nginx/conf/nginx.conf

#user nobody;改为 user NginxUser NginxGroup;

location / {

root   /home/NginxUser/www/Mono/grj;

index  index.html index.htm;

}

nginx : error while loading shared libraries: libpcre.so.1 http://www.wiseg.net/?p=207

最新文章

  1. 一道Apple公司(中国)的面试题目
  2. 【转】C# 将字符串或表达式直接转为可执行代码的办法
  3. $.Callbacks()
  4. Lab_6_SysOps_AutoScaling_Linux_v2.5
  5. hadoop 集群 加入一个新的存储节点和删除一个计算节点需要刷新集群状态命令
  6. 使用 IntraWeb (43) - 测试读取 SqLite (二)
  7. 创建Maven工程
  8. WinForm窗体间传值
  9. UVa 11375 - Matches
  10. 命令行连接wifi
  11. DeepFace--Facebook的人脸识别(转)
  12. POJ 1961 Period KMP算法next数组的应用
  13. 制作LOGO的35种方法
  14. windows10快捷键
  15. 静态include与动态include的区别
  16. SpringMVC第七篇【RESTful支持、拦截器】
  17. 深入浅出Java Dom4j读取XML
  18. vue框架构建项目流程
  19. Python 导入requests报错No module named requests
  20. golang 字符串截取

热门文章

  1. Android系统各版本号及代号
  2. C语言 - printf的占位符(%) 异常
  3. Android中TweenAnimation四种动画切换效果
  4. Could not load file or assembly&amp;#39;System.Data.SQLite.dll&amp;#39; or one of its depedencies
  5. Android进程间通信(IPC)机制Binder简介和学习计划
  6. LoadRunner获取一个独特的价值在执行的场景
  7. Sliverlight之 矢量绘图
  8. Copy-and-swap
  9. Android源码文件夹结构
  10. java: org.luaj.vm2.LuaError:XXX module not found lua脚本初始化出错(转)