ubuntu+php5.6+redis+mysql5.5+nginx
2016-05-24 16:35
531 查看
thinkphp :
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=$1 last;
break;
}
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
#
# # With php7.0-cgi alone:
# fastcgi_pass 127.0.0.1:9000;
# # With php7.0-fpm:
fastcgi_pass unix:/run/php/php5.6-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
}
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=$1 last;
break;
}
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
#
# # With php7.0-cgi alone:
# fastcgi_pass 127.0.0.1:9000;
# # With php7.0-fpm:
fastcgi_pass unix:/run/php/php5.6-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
}
相关文章推荐
- Redis 有序集合(sorted set)
- 《Redis设计与实现》资源总结
- salt-stack安装redis
- CentOS6.5安装Redis2.8.19 和php redis扩展
- redis实现的分布式锁
- Windows下Redis的安装使用(带Java示例)
- redis协议
- 可靠的Windows版Redis
- redis windows下的环境搭建
- Windows下安装并设置Redis
- 超强、超详细Redis数据库入门教程
- redis主从+sentinel主从自动切换
- Redis常用命令
- the little redis ch1
- Redis 安装及调试
- redis随笔集-使用
- redis配置密码
- yum安装redis详解
- 使用Redis保存Spring session(基于XML配置文件)
- redis 问题解决(MISCONF Redis is configured to save RDB snapshots)