在lnmp下面配置 MongoPress 出现的问题,请教
我在lnmp 下面安装了 mongodb 数据库,运行良好。但是,在配置 MongoPress 的时候出现了问题。下面是提示信息
Successfully Installed
这MongoPress安装已成功安装
关于Nginx的运行有你需要做的额外的手动步骤。您需要添加以下几行到您的nginx的配置。
## Put the line below in nginx php.conf
fastcgi_paramHTTP_MOD_REWRITE On;
## Put the line below in nginx server config
try_files $uri $uri/ /index.php;
## Performance Note
Change from using tcp to unix socket and save them to /dev/shm (memory filesystem)
edit your php-fpm.conf and change
listen = 127.0.0.1:9000
to
listen = /dev/shm/php5-fpm.sock
You also need to change your nginx server config from
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
}
to
location ~ \.php$ {
fastcgi_pass unix:/dev/shm/php5-fpm.sock;
}
您需要重新启动您的Web服务器。的
请问,我该怎么做啊?
我尝试着按他说的做了,但是会报502错误,是不是那里还需要配置,但这里没提到?
求教! socket 位置在/tmp/php-cgi.sock
其他的配置就不清楚了,没用过不好说
页:
[1]