PHP8.1.21版本已发布
vue8.1.21版本已发布
jquery8.1.21版本已发布

Think安装redis 去除index vcredis redis使用 redis源

原创
2016-07-29 08:50:57 896浏览
Windows环境下PHP中使用redis
下载 dll文件php_redis.dll 扩展 For PHP5.4.x
                     PHP5.4.x  redis 扩展 php_redis.dll
测试平台:Windows XPx32 (FastCGI PHP5.4.9 Nginx 1.4.0)
包含 Non Thread Safe  Thread Safe 两个版本
首先把php_redis.dll  php_igbinary.dll 放入PHPext文件夹,然后在php.ini配置文件里添加如下代码:extension=php_igbinary.dll
extension=php_redis.dll
Thinkphp 去除index
去除index.php
1.httpd.conf配置文件中加载了mod_rewrite.so模块  //APACHE里面去配置#LoadModule rewrite_module modules/mod_rewrite.so把前面的警号去掉2.AllowOverride None None改为 All      //APACHE里面去配置 (注意其他地方的AllowOverride也统统设置为ALL)
AllowOverride none     AllowOverride ALL
Options None
Order allow,deny
Allow from all
3.确保URL_MODEL设置为2,在项目的配置文件里写return Array(
    'URL_MODEL' => '2',
)
4 .htaccess文件必须放到跟目录下
新建文本文档另存为.htaccess文件:RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]

以上就介绍了Think安装redis 去除index,包括了redis,think方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。