VPS侦探论坛

 找回密码
 注册
查看: 6519|回复: 1

在lnmp下面配置 MongoPress 出现的问题,请教

[复制链接]
发表于 2012-4-23 22:35:41 | 显示全部楼层 |阅读模式

我在lnmp 下面安装了 mongodb 数据库,运行良好。但是,在配置
MongoPress 的时候出现了问题。



下面是提示信息



  1. Successfully Installed

  2. 这MongoPress安装已成功安装

  3. 关于Nginx的运行有你需要做的额外的手动步骤。您需要添加以下几行到您的nginx的配置。
  4. ## Put the line below in nginx php.conf
  5. fastcgi_param  HTTP_MOD_REWRITE                On;

  6. ## Put the line below in nginx server config
  7. try_files $uri $uri/ /index.php;

  8. ## Performance Note
  9. Change from using tcp to unix socket and save them to /dev/shm (memory filesystem)
  10. edit your php-fpm.conf and change
  11. listen = 127.0.0.1:9000
  12. to
  13. listen = /dev/shm/php5-fpm.sock

  14. You also need to change your nginx server config from
  15. location ~ \.php$ {
  16. fastcgi_pass 127.0.0.1:9000;
  17. }

  18. to

  19. location ~ \.php$ {
  20. fastcgi_pass unix:/dev/shm/php5-fpm.sock;
  21. }
  22. 您需要重新启动您的Web服务器。的
复制代码




请问,我该怎么做啊?

我尝试着按他说的做了,但是会报502错误,是不是那里还需要配置,但这里没提到?



求教!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-4-24 08:20:10 | 显示全部楼层


socket 位置在/tmp/php-cgi.sock

其他的配置就不清楚了,没用过不好说
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-22 21:35 , Processed in 0.036866 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表