php redis与me m,Redis(十) —— 为php增加redis扩展
chen@chen-ubuntu:~/download$ ls | grep phpredis
phpredis-master.zip
# 解壓縮
chen@chen-ubuntu:~/download$ unzip phpredis-master.zip
# 進入安裝目錄
chen@chen-ubuntu:~/download$ cd phpredis-master/
chen@chen-ubuntu:~/download/phpredis-master$ ls
arrays.markdown debian php_redis.h redis_session.c
common.h debian.control README.markdown redis_session.h
config.h library.c redis_array.c rpm
config.m4 library.h redis_array.h serialize.list
config.w32 mkdeb-apache2.sh redis_array_impl.c tests
COPYING mkdeb.sh redis_array_impl.h
CREDITS package.xml redis.c
# 使用phpize,生成編輯文件
chen@chen-ubuntu:~/download/phpredis-master$ phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
configure.in:3: warning: prefer named diversions
configure.in:3: warning: prefer named diversions
chen@chen-ubuntu:~/download/phpredis-master$ ls
acinclude.m4 configure Makefile.global redis_array_impl.h
aclocal.m4 configure.in missing redis.c
arrays.markdown config.w32 mkdeb-apache2.sh redis_session.c
autom4te.cache COPYING mkdeb.sh redis_session.h
build CREDITS mkinstalldirs rpm
common.h debian package.xml run-tests.php
config.guess debian.control php_redis.h serialize.list
config.h install-sh README.markdown tests
config.h.in library.c redis_array.c
config.m4 library.h redis_array.h
config.sub ltmain.sh redis_array_impl.c
# 配置
chen@chen-ubuntu:~/download/phpredis-master$ ./configure --with-php-config=/usr/local/php/bin/php-config
# 編輯
chen@chen-ubuntu:~/download/phpredis-master$ make
# 安裝
chen@chen-ubuntu:~/download/phpredis-master$ sudo make install
Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/
### 此時,擴展以及放到了/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/目錄下,我可以進行ls查看
chen@chen-ubuntu:~/download/phpredis-master$ ls /usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/
redis.so
總結
以上是生活随笔為你收集整理的php redis与me m,Redis(十) —— 为php增加redis扩展的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java 计算两个时间戳_Java时间戳
- 下一篇: oracle导入 不是dba,IMP-0