歡迎您光臨本站 註冊首頁

nginx啟動錯誤!

←手機掃碼閱讀     火星人 @ 2014-03-03 , reply:0

nginx啟動錯誤!

問題描述:
# ./nginx
: the using of the regex "\.php$" requires PCRE library in /usr/local/nginx//conf/nginx.conf:65

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

    #limit_conn   crawler  20;

   location ~ \.php$
    {
      #fastcgi_pass  unix:/tmp/php-cgi.sock;
      fastcgi_pass  127.0.0.1:9000;
      fastcgi_index index.php;
      include fcgi.conf;
    }

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

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

    log_format  access  '$remote_addr - $remote_user [$time_local] "$request" '
              '$status $body_bytes_sent "$http_referer" '
              '"$http_user_agent" $http_x_forwarded_for';
    access_log  /data1/logs/access.log  access;
      }pcre已經YUM安裝過:
# rpm -qa | grep pcre
pcre-6.6-6.el5_6.1
pcre-devel-6.6-6.el5_6.1

請教下大家這個問題,謝謝

[火星人 ] nginx啟動錯誤!已經有659次圍觀

http://coctec.com/docs/service/show-post-2361.html