CentOS下如何安装phpredis扩展

<p>1.到redis的官网找到redis客户端下载,选择php</p><p>示例</p><p>安装Redis的PHP扩展</p><p>2.1 安装phpize</p><p>yum install php-devel </p><p>1</p><p>2.2 下载扩展源码包,直接用wget</p><p>wget下载github上的文件</p><p>wget https://github.com/nicolasff/phpredis/archive/master.zip </p><p>2.3 如果没装unzip,需要先安装unzip<br/></p><p>yum install unzip</p><p>2.4 解压master.zip<br/></p><p>unzip master.zip</p><p>2.5 解压目录为phpredis-master,进入该文件夹,开始编译php扩展<br/></p><p>phpize</p><p>2.6 配置环境<br/></p><p>./configure </p><p>2.7 编译<br/></p><p>make &amp;&amp; make install</p><p>编译完成后显示:<br/></p><p>Build complete. </p><p>Don&#39;t forget to run &#39;make test&#39;. </p><p>Installing shared extensions: /usr/lib64/php/modules/</p><p>进入/usr/lib64/php/modules/文件夹,发现redis.so的扩展</p><p>2.8 修改/etc/php.ini,添加下面的扩展</p><p>extension=redis.so</p><p>2.9 重启服务器<br/></p><p>service httpd restart</p><p>最后查看phpinfo,显示如下,代表安装成功:<br/></p><p>示例</p><p>安装完成以后,创建index.php测试一下</p><pre class="brush:php;toolbar:false">&lt;?php //实例化 $redis=newRedis(); //连接服务器 $a=$redis-&gt;connect(&quot;localhost&quot;,6379); //var_dump($a); //授权 $redis-&gt;auth(&quot;107lab&quot;); $redis-&gt;set(&quot;name1&quot;,&quot;107lab&quot;); $data=$redis-&gt;get(&quot;name1&quot;); var_dump($data);</pre><p>运行结果为:</p><p>string(6) &quot;107lab&quot;</p><p>以下是安装过程全记录</p><pre class="brush:bash;toolbar:false">[root@VM_114_93_centoslocal]#ls redis-3.0.6redis-3.0.6.tar.gz [root@VM_114_93_centoslocal]#wgethttps://github.com/phpredis/phpredis/archive/develop.zip --2016-10-0211:06:16--https://github.com/phpredis/phpredis/archive/develop.zip Resolvinggithub.com...192.30.253.112 Connectingtogithub.com|192.30.253.112|:443...connected. HTTPrequestsent,awaitingresponse...302Found Location:https://codeload.github.com/phpredis/phpredis/zip/develop[following] --2016-10-0211:06:18--https://codeload.github.com/phpredis/phpredis/zip/develop Resolvingcodeload.github.com...192.30.253.121 Connectingtocodeload.github.com|192.30.253.121|:443...connected. HTTPrequestsent,awaitingresponse...200OK Length:220222(215K)[application/zip] Savingto:`develop.zip&#39; 100%[==============================================&gt;]220,222104K/sin2.1s 2016-10-0211:06:23(104KB/s)-`develop.zip&#39;saved[220222/220222] [root@VM_114_93_centoslocal]#ls develop.zipredis-3.0.6redis-3.0.6.tar.gz [root@VM_114_93_centoslocal]#yuminstallunzip Loadedplugins:fastestmirror,security SettingupInstallProcess Determiningfastestmirrors epel|4.3kB00:00 extras|3.3kB00:00 os|3.7kB00:00 updates|3.4kB00:00 Packageunzip-6.0-4.el6.i686alreadyinstalledandlatestversion Nothingtodo [root@VM_114_93_centoslocal]#unzipdevelop.zip Archive:develop.zip b5fd2ccc95457fe1c3decfdbdd72751a87ed12b4 creating:phpredis-develop/ inflating:phpredis-develop/.gitignore inflating:phpredis-develop/.travis.yml inflating:phpredis-develop/COPYING inflating:phpredis-develop/CREDITS inflating:phpredis-develop/README.markdown inflating:phpredis-develop/arrays.markdown inflating:phpredis-develop/cluster.markdown inflating:phpredis-develop/cluster_library.c inflating:phpredis-develop/cluster_library.h inflating:phpredis-develop/common.h inflating:phpredis-develop/config.m4 inflating:phpredis-develop/config.w32 inflating:phpredis-develop/crc16.h inflating:phpredis-develop/debian.control creating:phpredis-develop/debian/ inflating:phpredis-develop/debian/changelog extracting:phpredis-develop/debian/compat inflating:phpredis-develop/debian/control inflating:phpredis-develop/debian/copyright inflating:phpredis-develop/debian/postinst inflating:phpredis-develop/debian/postrm inflating:phpredis-develop/debian/rules inflating:phpredis-develop/library.c inflating:phpredis-develop/library.h inflating:phpredis-develop/mkdeb-apache2.sh inflating:phpredis-develop/mkdeb.sh inflating:phpredis-develop/package.xml inflating:phpredis-develop/php_redis.h inflating:phpredis-develop/redis.c inflating:phpredis-develop/redis_array.c inflating:phpredis-develop/redis_array.h inflating:phpredis-develop/redis_array_impl.c inflating:phpredis-develop/redis_array_impl.h inflating:phpredis-develop/redis_cluster.c inflating:phpredis-develop/redis_cluster.h inflating:phpredis-develop/redis_commands.c inflating:phpredis-develop/redis_commands.h inflating:phpredis-develop/redis_session.c inflating:phpredis-develop/redis_session.h creating:phpredis-develop/rpm/ inflating:phpredis-develop/rpm/php-redis.spec extracting:phpredis-develop/rpm/redis.ini inflating:phpredis-develop/serialize.list creating:phpredis-develop/tests/ inflating:phpredis-develop/tests/RedisArrayTest.php inflating:phpredis-develop/tests/RedisClusterTest.php inflating:phpredis-develop/tests/RedisTest.php inflating:phpredis-develop/tests/TestRedis.php inflating:phpredis-develop/tests/TestSuite.php inflating:phpredis-develop/tests/make-cluster.sh inflating:phpredis-develop/tests/mkring.sh [root@VM_114_93_centoslocal]#ls develop.zipphpredis-developredis-3.0.6redis-3.0.6.tar.gz [root@VM_114_93_centoslocal]#cdphpredis-develop/ [root@VM_114_93_centosphpredis-develop]#ls COPYINGconfig.w32php_redis.hredis_commands.h CREDITScrc16.hredis.credis_session.c README.markdowndebianredis_array.credis_session.h arrays.markdowndebian.controlredis_array.hrpm cluster.markdownlibrary.credis_array_impl.cserialize.list cluster_library.clibrary.hredis_array_impl.htests cluster_library.hmkdeb-apache2.shredis_cluster.c common.hmkdeb.shredis_cluster.h config.m4package.xmlredis_commands.c [root@VM_114_93_centosphpredis-develop]#phpize Configuringfor: PHPApiVersion:20090626 ZendModuleApiNo:20090626 ZendExtensionApiNo:220090626 [root@VM_114_93_centosphpredis-develop]#ll total2124 -rw-r--r--1rootroot3218Oct117:56COPYING -rw-r--r--1rootroot204Oct117:56CREDITS -rw-r--r--1rootroot5462Oct211:07Makefile.global -rw-r--r--1rootroot96037Oct117:56README.markdown -rw-r--r--1rootroot75570Oct211:07acinclude.m4 -rw-r--r--1rootroot358139Oct211:07aclocal.m4 -rw-r--r--1rootroot8471Oct117:56arrays.markdown drwxr-xr-x2rootroot4096Oct211:07autom4te.cache drwxr-xr-x2rootroot4096Oct211:07build -rw-r--r--1rootroot10126Oct117:56cluster.markdown -rw-r--r--1rootroot75698Oct117:56cluster_library.c -rw-r--r--1rootroot16362Oct117:56cluster_library.h -rw-r--r--1rootroot13417Oct117:56common.h -rwxr-xr-x1rootroot44892Oct211:07config.guess -rw-r--r--1rootroot1754Oct211:07config.h.in -rwxr-xr-x1rootroot3395Oct117:56config.m4 -rwxr-xr-x1rootroot33387Oct211:07config.sub -rw-r--r--1rootroot923Oct117:56config.w32 -rwxr-xr-x1rootroot402197Oct211:07configure -rw-r--r--1rootroot4639Oct211:07configure.in -rw-r--r--1rootroot4483Oct117:56crc16.h drwxr-xr-x2rootroot4096Oct117:56debian -rw-r--r--1rootroot309Oct117:56debian.control -rw-r--r--1rootroot0Oct211:07install-sh -rw-r--r--1rootroot69874Oct117:56library.c -rw-r--r--1rootroot6647Oct117:56library.h -rw-r--r--1rootroot243248Oct211:07ltmain.sh -rw-r--r--1rootroot0Oct211:07missing -rwxr-xr-x1rootroot636Oct117:56mkdeb-apache2.sh -rwxr-xr-x1rootroot471Oct117:56mkdeb.sh -rw-r--r--1rootroot0Oct211:07mkinstalldirs -rw-r--r--1rootroot10686Oct117:56package.xml -rw-r--r--1rootroot8715Oct117:56php_redis.h -rw-r--r--1rootroot119068Oct117:56redis.c -rw-r--r--1rootroot37494Oct117:56redis_array.c -rw-r--r--1rootroot1681Oct117:56redis_array.h -rw-r--r--1rootroot36659Oct117:56redis_array_impl.c -rw-r--r--1rootroot1613Oct117:56redis_array_impl.h -rw-r--r--1rootroot96357Oct117:56redis_cluster.c -rw-r--r--1rootroot9833Oct117:56redis_cluster.h -rw-r--r--1rootroot102831Oct117:56redis_commands.c -rw-r--r--1rootroot11419Oct117:56redis_commands.h -rw-r--r--1rootroot21666Oct117:56redis_session.c -rw-r--r--1rootroot422Oct117:56redis_session.h drwxr-xr-x2rootroot4096Oct117:56rpm -rw-r--r--1rootroot68683Oct211:07run-tests.php -rw-r--r--1rootroot424Oct117:56serialize.list drwxr-xr-x2rootroot4096Oct117:56tests [root@VM_114_93_centosphpredis-develop]#./configure checkingforgrepthathandleslonglinesand-e.../bin/grep checkingforegrep.../bin/grep-E checkingforasedthatdoesnottruncateoutput.../bin/sed checkingforcc...cc checkingforCcompilerdefaultoutputfilename...a.out checkingwhethertheCcompilerworks...yes checkingwhetherwearecrosscompiling...no checkingforsuffixofexecutables... checkingforsuffixofobjectfiles...o checkingwhetherweareusingtheGNUCcompiler...yes checkingwhetherccaccepts-g...yes checkingforccoptiontoacceptISOC89...noneneeded checkinghowtoruntheCpreprocessor...cc-E checkingforicc...no checkingforsuncc...no checkingwhetherccunderstands-cand-otogether...yes checkingforsystemlibrarydirectory...lib checkingifcompilersupports-R...no checkingifcompilersupports-Wl,-rpath,...yes checkingbuildsystemtype...i686-pc-linux-gnu checkinghostsystemtype...i686-pc-linux-gnu checkingtargetsystemtype...i686-pc-linux-gnu checkingforPHPprefix.../usr checkingforPHPincludes...-I/usr/include/php-I/usr/include/php/main-I/usr/include/php/TSRM-I/usr/include/php/Zend-I/usr/include/php/ext-I/usr/include/php/ext/date/lib checkingforPHPextensiondirectory.../usr/lib/php/modules checkingforPHPinstalledheadersprefix.../usr/include/php checkingifdebugisenabled...no checkingifztsisenabled...no checkingforre2c...no configure:WARNING:Youwillneedre2c0.13.4orlaterifyouwanttoregeneratePHPparsers. checkingforgawk...gawk checkingwhethertoenableredissupport...yes,shared checkingwhethertoenablesessions...yes checkingwhethertoenableigbinaryserializersupport...no checkingforredisigbinarysupport...disabled checkingforasedthatdoesnottruncateoutput...(cached)/bin/sed checkingforfgrep.../bin/grep-F checkingforldusedbycc.../usr/bin/ld checkingifthelinker(/usr/bin/ld)isGNUld...yes checkingforBSD-orMS-compatiblenamelister(nm).../usr/bin/nm-B checkingthenamelister(/usr/bin/nm-B)interface...BSDnm checkingwhetherln-sworks...yes checkingthemaximumlengthofcommandlinearguments...1966080 checkingwhethertheshellunderstandssomeXSIconstructs...yes checkingwhethertheshellunderstands&quot;+=&quot;...yes checkingfor/usr/bin/ldoptiontoreloadobjectfiles...-r checkingforobjdump...objdump checkinghowtorecognizedependentlibraries...pass_all checkingforar...ar checkingforstrip...strip checkingforranlib...ranlib checkingcommandtoparse/usr/bin/nm-Boutputfromccobject...ok checkingforANSICheaderfiles...yes checkingforsys/types.h...yes checkingforsys/stat.h...yes checkingforstdlib.h...yes checkingforstring.h...yes checkingformemory.h...yes checkingforstrings.h...yes checkingforinttypes.h...yes checkingforstdint.h...yes checkingforunistd.h...yes checkingfordlfcn.h...yes checkingforobjdir....libs checkingifccsupports-fno-rtti-fno-exceptions...no checkingforccoptiontoproducePIC...-fPIC-DPIC checkingifccPICflag-fPIC-DPICworks...yes checkingifccstaticflag-staticworks...yes checkingifccsupports-c-ofile.o...yes checkingifccsupports-c-ofile.o...(cached)yes checkingwhetherthecclinker(/usr/bin/ld)supportssharedlibraries...yes checkingwhether-lcshouldbeexplicitlylinkedin...no checkingdynamiclinkercharacteristics...GNU/Linuxld.so checkinghowtohardcodelibrarypathsintoprograms...immediate checkingwhetherstrippinglibrariesispossible...yes checkingiflibtoolsupportssharedlibraries...yes checkingwhethertobuildsharedlibraries...yes checkingwhethertobuildstaticlibraries...no configure:creating./config.status config.status:creatingconfig.h config.status:executinglibtoolcommands [root@VM_114_93_centosphpredis-develop]#make&amp;&amp;makeinstall /bin/sh/local/phpredis-develop/libtool--mode=compilecc-I.-I/local/phpredis-develop-DPHP_ATOM_INC-I/local/phpredis-develop/include-I/local/phpredis-develop/main-I/local/phpredis-develop-I/usr/include/php-I/usr/include/php/main-I/usr/include/php/TSRM-I/usr/include/php/Zend-I/usr/include/php/ext-I/usr/include/php/ext/date/lib-DHAVE_CONFIG_H-g-O2-c/local/phpredis-develop/redis.c-oredis.lo libtool:compile:cc-I.-I/local/phpredis-develop-DPHP_ATOM_INC-I/local/phpredis-develop/include-I/local/phpredis-develop/main-I/local/phpredis-develop-I/usr/include/php-I/usr/include/php/main-I/usr/include/php/TSRM-I/usr/include/php/Zend-I/usr/include/php/ext-I/usr/include/php/ext/date/lib-DHAVE_CONFIG_H-g-O2-c/local/phpredis-develop/redis.c-fPIC-DPIC-o.libs/redis.o /bin/sh/local/phpredis-develop/libtool--mode=compilecc-I.-I/local/phpredis-develop-DPHP_ATOM_INC-I/local/phpredis-develop/include-I/local/phpredis-develop/main-I/local/phpredis-develop-I/usr/include/php-I/usr/include/php/main-I/usr/include/php/TSRM-I/usr/include/php/Zend-I/usr/include/php/ext-I/usr/include/php/ext/date/lib-DHAVE_CONFIG_H-g-O2-c/local/phpredis-develop/redis_commands.c-oredis_commands.lo libtool:compile:cc-I.-I/local/phpredis-develop-DPHP_ATOM_INC-I/local/phpredis-develop/include-I/local/phpredis-develop/main-I/local/phpredis-develop-I/usr/include/php-I/usr/include/php/main-I/usr/include/php/TSRM-I/usr/include/php/Zend-I/usr/include/php/ext-I/usr/include/php/ext/date/lib-DHAVE_CONFIG_H-g-O2-c/local/phpredis-develop/redis_commands.c-fPIC-DPIC-o.libs/redis_commands.o /local/phpredis-develop/redis_commands.c:Infunction&#39;redis_setbit_cmd&#39;: /local/phpredis-develop/redis_commands.c:2081:warning:thisdecimalconstantisunsignedonlyinISOC90 /bin/sh/local/phpredis-develop/libtool--mode=compilecc-I.-I/local/phpredis-develop-DPHP_ATOM_INC-I/local/phpredis-develop/include-I/local/phpredis-develop/main-I/local/phpredis-develop-I/usr/include/php-I/usr/include/php/main-I/usr/include/php/TSRM-I/usr/include/php/Zend-I/usr/include/php/ext-I/usr/include/php/ext/date/lib-DHAVE_CONFIG_H-g-O2-c/local/phpredis-develop/library.c-olibrary.lo libtool:compile:cc-I.-I/local/phpredis-develop-DPHP_ATOM_INC-I/local/phpredis-develop/include-I/local/phpredis-develop/main-I/local/phpredis-develop-I/usr/include/php-I/usr/include/php/main-I/usr/include/php/TSRM-I/usr/include/php/Zend-I/usr/include/php/ext-I/usr/include/php/ext/date/lib-DHAVE_CONFIG_H-g-O2-c/local/phpredis-develop/library.c-fPIC-DPIC-o.libs/library.o /bin/sh/local/phpredis-develop/libtool--mode=compilecc-I.-I/local/phpredis-develop-DPHP_ATOM_INC-I/local/phpredis-develop/include-I/local/phpredis-develop/main-I/local/phpredis-develop-I/usr/include/php-I/usr/include/php/main-I/usr/include/php/TSRM-I/usr/include/php/Zend-I/usr/include/php/ext-I/usr/include/php/ext/date/lib-DHAVE_CONFIG_H-g-O2-c/local/phpredis-develop/redis_session.c-oredis_session.lo libtool:compile:cc-I.-I/local/phpredis-develop-DPHP_ATOM_INC-I/local/phpredis-develop/include-I/local/phpredis-develop/main-I/local/phpredis-develop-I/usr/include/php-I/usr/include/php/main-I/usr/include/php/TSRM-I/usr/include/php/Zend-I/usr/include/php/ext-I/usr/include/php/ext/date/lib-DHAVE_CONFIG_H-g-O2-c/local/phpredis-develop/redis_session.c-fPIC-DPIC-o.libs/redis_session.o /bin/sh/local/phpredis-develop/libtool--mode=compilecc-I.-I/local/phpredis-develop-DPHP_ATOM_INC-I/local/phpredis-develop/include-I/local/phpredis-develop/main-I/local/phpredis-develop-I/usr/include/php-I/usr/include/php/main-I/usr/include/php/TSRM-I/usr/include/php/Zend-I/usr/include/php/ext-I/usr/include/php/ext/date/lib-DHAVE_CONFIG_H-g-O2-c/local/phpredis-develop/redis_array.c-oredis_array.lo libtool:compile:cc-I.-I/local/phpredis-develop-DPHP_ATOM_INC-I/local/phpredis-develop/include-I/local/phpredis-develop/main-I/local/phpredis-develop-I/usr/include/php-I/usr/include/php/main-I/usr/include/php/TSRM-I/usr/include/php/Zend-I/usr/include/php/ext-I/usr/include/php/ext/date/lib-DHAVE_CONFIG_H-g-O2-c/local/phpredis-develop/redis_array.c-fPIC-DPIC-o.libs/redis_array.o /bin/sh/local/phpredis-develop/libtool--mode=compilecc-I.-I/local/phpredis-develop-DPHP_ATOM_INC-I/local/phpredis-develop/include-I/local/phpredis-develop/main-I/local/phpredis-develop-I/usr/include/php-I/usr/include/php/main-I/usr/include/php/TSRM-I/usr/include/php/Zend-I/usr/include/php/ext-I/usr/include/php/ext/date/lib-DHAVE_CONFIG_H-g-O2-c/local/phpredis-develop/redis_array_impl.c-oredis_array_impl.lo libtool:compile:cc-I.-I/local/phpredis-develop-DPHP_ATOM_INC-I/local/phpredis-develop/include-I/local/phpredis-develop/main-I/local/phpredis-develop-I/usr/include/php-I/usr/include/php/main-I/usr/include/php/TSRM-I/usr/include/php/Zend-I/usr/include/php/ext-I/usr/include/php/ext/date/lib-DHAVE_CONFIG_H-g-O2-c/local/phpredis-develop/redis_array_impl.c-fPIC-DPIC-o.libs/redis_array_impl.o /bin/sh/local/phpredis-develop/libtool--mode=compilecc-I.-I/local/phpredis-develop-DPHP_ATOM_INC-I/local/phpredis-develop/include-I/local/phpredis-develop/main-I/local/phpredis-develop-I/usr/include/php-I/usr/include/php/main-I/usr/include/php/TSRM-I/usr/include/php/Zend-I/usr/include/php/ext-I/usr/include/php/ext/date/lib-DHAVE_CONFIG_H-g-O2-c/local/phpredis-develop/redis_cluster.c-oredis_cluster.lo libtool:compile:cc-I.-I/local/phpredis-develop-DPHP_ATOM_INC-I/local/phpredis-develop/include-I/local/phpredis-develop/main-I/local/phpredis-develop-I/usr/include/php-I/usr/include/php/main-I/usr/include/php/TSRM-I/usr/include/php/Zend-I/usr/include/php/ext-I/usr/include/php/ext/date/lib-DHAVE_CONFIG_H-g-O2-c/local/phpredis-develop/redis_cluster.c-fPIC-DPIC-o.libs/redis_cluster.o /bin/sh/local/phpredis-develop/libtool--mode=compilecc-I.-I/local/phpredis-develop-DPHP_ATOM_INC-I/local/phpredis-develop/include-I/local/phpredis-develop/main-I/local/phpredis-develop-I/usr/include/php-I/usr/include/php/main-I/usr/include/php/TSRM-I/usr/include/php/Zend-I/usr/include/php/ext-I/usr/include/php/ext/date/lib-DHAVE_CONFIG_H-g-O2-c/local/phpredis-develop/cluster_library.c-ocluster_library.lo libtool:compile:cc-I.-I/local/phpredis-develop-DPHP_ATOM_INC-I/local/phpredis-develop/include-I/local/phpredis-develop/main-I/local/phpredis-develop-I/usr/include/php-I/usr/include/php/main-I/usr/include/php/TSRM-I/usr/include/php/Zend-I/usr/include/php/ext-I/usr/include/php/ext/date/lib-DHAVE_CONFIG_H-g-O2-c/local/phpredis-develop/cluster_library.c-fPIC-DPIC-o.libs/cluster_library.o /bin/sh/local/phpredis-develop/libtool--mode=linkcc-DPHP_ATOM_INC-I/local/phpredis-develop/include-I/local/phpredis-develop/main-I/local/phpredis-develop-I/usr/include/php-I/usr/include/php/main-I/usr/include/php/TSRM-I/usr/include/php/Zend-I/usr/include/php/ext-I/usr/include/php/ext/date/lib-DHAVE_CONFIG_H-g-O2-oredis.la-export-dynamic-avoid-version-prefer-pic-module-rpath/local/phpredis-develop/modulesredis.loredis_commands.lolibrary.loredis_session.loredis_array.loredis_array_impl.loredis_cluster.locluster_library.lo libtool:link:cc-shared.libs/redis.o.libs/redis_commands.o.libs/library.o.libs/redis_session.o.libs/redis_array.o.libs/redis_array_impl.o.libs/redis_cluster.o.libs/cluster_library.o-Wl,-soname-Wl,redis.so-o.libs/redis.so libtool:link:(cd&quot;.libs&quot;&amp;&amp;rm-f&quot;redis.la&quot;&amp;&amp;ln-s&quot;../redis.la&quot;&quot;redis.la&quot;) /bin/sh/local/phpredis-develop/libtool--mode=installcp./redis.la/local/phpredis-develop/modules libtool:install:cp./.libs/redis.so/local/phpredis-develop/modules/redis.so libtool:install:cp./.libs/redis.lai/local/phpredis-develop/modules/redis.la libtool:finish:PATH=&quot;/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/sbin&quot;ldconfig-n/local/phpredis-develop/modules ---------------------------------------------------------------------- Librarieshavebeeninstalledin: /local/phpredis-develop/modules Ifyoueverhappentowanttolinkagainstinstalledlibraries inagivendirectory,LIBDIR,youmusteitheruselibtool,and specifythefullpathnameofthelibrary,orusethe`-LLIBDIR&#39; flagduringlinkinganddoatleastoneofthefollowing: -addLIBDIRtothe`LD_LIBRARY_PATH&#39;environmentvariable duringexecution -addLIBDIRtothe`LD_RUN_PATH&#39;environmentvariable duringlinking -usethe`-Wl,-rpath-Wl,LIBDIR&#39;linkerflag -haveyoursystemadministratoraddLIBDIRto`/etc/ld.so.conf&#39; Seeanyoperatingsystemdocumentationaboutsharedlibrariesfor moreinformation,suchastheld(1)andld.so(8)manualpages. ---------------------------------------------------------------------- Buildcomplete. Don&#39;tforgettorun&#39;maketest&#39;. Installingsharedextensions:/usr/lib/php/modules/ [root@VM_114_93_centosphpredis-develop]#cd/usr/lib/php/modules/ [root@VM_114_93_centosmodules]#ll total4744 -rwxr-xr-x1rootroot65568May1105:33curl.so -rwxr-xr-x1rootroot158384May1105:33dom.so -rwxr-xr-x1rootroot1843676May1105:33fileinfo.so -rwxr-xr-x1rootroot316012May1105:33gd.so -rwxr-xr-x1rootroot90676May1105:33imap.so -rwxr-xr-x1rootroot33428May1105:33json.so -rwxr-xr-x1rootroot45396May1105:33ldap.so -rwxr-xr-x1rootroot45332May1105:33mysql.so -rwxr-xr-x1rootroot122024May1105:33mysqli.so -rwxr-xr-x1rootroot61460May1105:33odbc.so -rwxr-xr-x1rootroot90872May1105:33pdo.so -rwxr-xr-x1rootroot25672May1105:33pdo_mysql.so -rwxr-xr-x1rootroot22696May1105:33pdo_odbc.so -rwxr-xr-x1rootroot21288May1105:33pdo_sqlite.so -rwxr-xr-x1rootroot265280May1105:33phar.so -rwxr-xr-x1rootroot1216119Oct211:09redis.so -rwxr-xr-x1rootroot41344May1105:33sqlite3.so -rwxr-xr-x1rootroot31572May1105:33wddx.so -rwxr-xr-x1rootroot25592May1105:33xmlreader.so -rwxr-xr-x1rootroot81584May1105:33xmlrpc.so -rwxr-xr-x1rootroot37752May1105:33xmlwriter.so -rwxr-xr-x1rootroot27892May1105:33xsl.so -rwxr-xr-x1rootroot81248May1105:33zip.so [root@VM_114_93_centosmodules]#vim/etc/php.ini Youhavenewmailin/var/spool/mail/root [root@VM_114_93_centosmodules]#servicehttpdrestart Stoppinghttpd:[OK] Startinghttpd:[OK] [root@VM_114_93_centosmodules]#</pre>
RangeTime:0.009280s
RangeMem:227.55 KB
返回顶部 留言