免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2202 | 回复: 0
打印 上一主题 下一主题

nginx启动错误! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-05-03 12:29 |只看该作者 |倒序浏览
问题描述:
[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

请教下大家这个问题,谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP