Chinaunix

标题: nginx启动错误! [打印本页]

作者: 凝望长空    时间: 2011-05-03 12:29
标题: nginx启动错误!
问题描述:
[root@localhost sbin]# ./nginx
[emerg]: the using of the regex "\.php$" requires PCRE library in /usr/local/nginx//conf/nginx.conf:65

配置文件:
  1. server
  2.   {
  3.     listen       80;
  4.     server_name 1.hg.com ;
  5.     index index.html index.htm index.php;
  6.     root  /data0/htdocs/blog;

  7.     #limit_conn   crawler  20;

  8.    location ~ \.php$
  9.     {
  10.       #fastcgi_pass  unix:/tmp/php-cgi.sock;
  11.       fastcgi_pass  127.0.0.1:9000;
  12.       fastcgi_index index.php;
  13.       include fcgi.conf;
  14.     }

  15.     location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
  16.     {
  17.       expires      30d;
  18.     }

  19.     location ~ .*\.(js|css)?$
  20.     {
  21.       expires      1h;
  22.     }

  23.     log_format  access  '$remote_addr - $remote_user [$time_local] "$request" '
  24.               '$status $body_bytes_sent "$http_referer" '
  25.               '"$http_user_agent" $http_x_forwarded_for';
  26.     access_log  /data1/logs/access.log  access;
  27.       }
复制代码
pcre已经YUM安装过:
[root@localhost sbin]# rpm -qa | grep pcre
pcre-6.6-6.el5_6.1
pcre-devel-6.6-6.el5_6.1

请教下大家这个问题,谢谢




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2