2.1 安装phpize

yum install php-devel  

2.2 下载扩展源码包,直接用wget

wget https://github.com/nicolasff/phpredis/archive/master.zip  

2.3 如果没装unzip,需要先安装unzip

yum install unzip

2.4 解压master.zip

unzip master.zip

2.5 解压目录为phpredis-master,进入该文件夹,开始编译php扩展


2.6 配置环境


2.7 编译

make && make install 


Build complete.  
Don't forget to run 'make test'.  
Installing shared extensions:     /usr/lib64/php/modules/ 

2.8 修改/etc/php.ini,添加下面的扩展


2.9 重启服务器

service httpd restart




    $redis = new Redis();


string(6) "107lab"


[root@VM_114_93_centos local]# ls
redis-3.0.6  redis-3.0.6.tar.gz
[root@VM_114_93_centos local]# wget https://github.com/phpredis/phpredis/archive/develop.zip
--2016-10-02 11:06:16--  https://github.com/phpredis/phpredis/archive/develop.zip
Resolving github.com...
Connecting to github.com||:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/phpredis/phpredis/zip/develop [following]
--2016-10-02 11:06:18--  https://codeload.github.com/phpredis/phpredis/zip/develop
Resolving codeload.github.com...
Connecting to codeload.github.com||:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 220222 (215K) [application/zip]
Saving to: `develop.zip'

100%[==============================================>] 220,222      104K/s   in 2.1s    

2016-10-02 11:06:23 (104 KB/s) - `develop.zip' saved [220222/220222]

[root@VM_114_93_centos local]# ls
develop.zip  redis-3.0.6  redis-3.0.6.tar.gz
[root@VM_114_93_centos local]# yum install unzip
Loaded plugins: fastestmirror, security
Setting up Install Process
Determining fastest mirrors
epel                                                             | 4.3 kB     00:00     
extras                                                           | 3.3 kB     00:00     
os                                                               | 3.7 kB     00:00     
updates                                                          | 3.4 kB     00:00     
Package unzip-6.0-4.el6.i686 already installed and latest version
Nothing to do
[root@VM_114_93_centos local]# unzip develop.zip 
Archive:  develop.zip
   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_centos local]# ls
develop.zip  phpredis-develop  redis-3.0.6  redis-3.0.6.tar.gz
[root@VM_114_93_centos local]# cd phpredis-develop/
[root@VM_114_93_centos phpredis-develop]# ls
COPYING            config.w32        php_redis.h         redis_commands.h
CREDITS            crc16.h           redis.c             redis_session.c
README.markdown    debian            redis_array.c       redis_session.h
arrays.markdown    debian.control    redis_array.h       rpm
cluster.markdown   library.c         redis_array_impl.c  serialize.list
cluster_library.c  library.h         redis_array_impl.h  tests
cluster_library.h  mkdeb-apache2.sh  redis_cluster.c
common.h           mkdeb.sh          redis_cluster.h
config.m4          package.xml       redis_commands.c
[root@VM_114_93_centos phpredis-develop]# phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
[root@VM_114_93_centos phpredis-develop]# ll
total 2124
-rw-r--r-- 1 root root   3218 Oct  1 17:56 COPYING
-rw-r--r-- 1 root root    204 Oct  1 17:56 CREDITS
-rw-r--r-- 1 root root   5462 Oct  2 11:07 Makefile.global
-rw-r--r-- 1 root root  96037 Oct  1 17:56 README.markdown
-rw-r--r-- 1 root root  75570 Oct  2 11:07 acinclude.m4
-rw-r--r-- 1 root root 358139 Oct  2 11:07 aclocal.m4
-rw-r--r-- 1 root root   8471 Oct  1 17:56 arrays.markdown
drwxr-xr-x 2 root root   4096 Oct  2 11:07 autom4te.cache
drwxr-xr-x 2 root root   4096 Oct  2 11:07 build
-rw-r--r-- 1 root root  10126 Oct  1 17:56 cluster.markdown
-rw-r--r-- 1 root root  75698 Oct  1 17:56 cluster_library.c
-rw-r--r-- 1 root root  16362 Oct  1 17:56 cluster_library.h
-rw-r--r-- 1 root root  13417 Oct  1 17:56 common.h
-rwxr-xr-x 1 root root  44892 Oct  2 11:07 config.guess
-rw-r--r-- 1 root root   1754 Oct  2 11:07 config.h.in
-rwxr-xr-x 1 root root   3395 Oct  1 17:56 config.m4
-rwxr-xr-x 1 root root  33387 Oct  2 11:07 config.sub
-rw-r--r-- 1 root root    923 Oct  1 17:56 config.w32
-rwxr-xr-x 1 root root 402197 Oct  2 11:07 configure
-rw-r--r-- 1 root root   4639 Oct  2 11:07 configure.in
-rw-r--r-- 1 root root   4483 Oct  1 17:56 crc16.h
drwxr-xr-x 2 root root   4096 Oct  1 17:56 debian
-rw-r--r-- 1 root root    309 Oct  1 17:56 debian.control
-rw-r--r-- 1 root root      0 Oct  2 11:07 install-sh
-rw-r--r-- 1 root root  69874 Oct  1 17:56 library.c
-rw-r--r-- 1 root root   6647 Oct  1 17:56 library.h
-rw-r--r-- 1 root root 243248 Oct  2 11:07 ltmain.sh
-rw-r--r-- 1 root root      0 Oct  2 11:07 missing
-rwxr-xr-x 1 root root    636 Oct  1 17:56 mkdeb-apache2.sh
-rwxr-xr-x 1 root root    471 Oct  1 17:56 mkdeb.sh
-rw-r--r-- 1 root root      0 Oct  2 11:07 mkinstalldirs
-rw-r--r-- 1 root root  10686 Oct  1 17:56 package.xml
-rw-r--r-- 1 root root   8715 Oct  1 17:56 php_redis.h
-rw-r--r-- 1 root root 119068 Oct  1 17:56 redis.c
-rw-r--r-- 1 root root  37494 Oct  1 17:56 redis_array.c
-rw-r--r-- 1 root root   1681 Oct  1 17:56 redis_array.h
-rw-r--r-- 1 root root  36659 Oct  1 17:56 redis_array_impl.c
-rw-r--r-- 1 root root   1613 Oct  1 17:56 redis_array_impl.h
-rw-r--r-- 1 root root  96357 Oct  1 17:56 redis_cluster.c
-rw-r--r-- 1 root root   9833 Oct  1 17:56 redis_cluster.h
-rw-r--r-- 1 root root 102831 Oct  1 17:56 redis_commands.c
-rw-r--r-- 1 root root  11419 Oct  1 17:56 redis_commands.h
-rw-r--r-- 1 root root  21666 Oct  1 17:56 redis_session.c
-rw-r--r-- 1 root root    422 Oct  1 17:56 redis_session.h
drwxr-xr-x 2 root root   4096 Oct  1 17:56 rpm
-rw-r--r-- 1 root root  68683 Oct  2 11:07 run-tests.php
-rw-r--r-- 1 root root    424 Oct  1 17:56 serialize.list
drwxr-xr-x 2 root root   4096 Oct  1 17:56 tests
[root@VM_114_93_centos phpredis-develop]# ./configure 
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -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
checking for PHP extension directory... /usr/lib/php/modules
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable redis support... yes, shared
checking whether to enable sessions... yes
checking whether to enable igbinary serializer support... no
checking for redis igbinary support... disabled
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
[root@VM_114_93_centos phpredis-develop]# make && make install
/bin/sh /local/phpredis-develop/libtool --mode=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 -o redis.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=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 -o redis_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: In function 'redis_setbit_cmd':
/local/phpredis-develop/redis_commands.c:2081: warning: this decimal constant is unsigned only in ISO C90
/bin/sh /local/phpredis-develop/libtool --mode=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 -o 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/library.c  -fPIC -DPIC -o .libs/library.o
/bin/sh /local/phpredis-develop/libtool --mode=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 -o redis_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=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 -o redis_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=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 -o redis_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=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 -o redis_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=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 -o cluster_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=link cc -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   -o redis.la -export-dynamic -avoid-version -prefer-pic -module -rpath /local/phpredis-develop/modules  redis.lo redis_commands.lo library.lo redis_session.lo redis_array.lo redis_array_impl.lo redis_cluster.lo cluster_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 ".libs" && rm -f "redis.la" && ln -s "../redis.la" "redis.la" )
/bin/sh /local/phpredis-develop/libtool --mode=install cp ./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="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" ldconfig -n /local/phpredis-develop/modules
Libraries have been installed in:

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.

Build complete.
Don't forget to run 'make test'.

Installing shared extensions:     /usr/lib/php/modules/
[root@VM_114_93_centos phpredis-develop]# cd /usr/lib/php/modules/
[root@VM_114_93_centos modules]# ll
total 4744
-rwxr-xr-x 1 root root   65568 May 11 05:33 curl.so
-rwxr-xr-x 1 root root  158384 May 11 05:33 dom.so
-rwxr-xr-x 1 root root 1843676 May 11 05:33 fileinfo.so
-rwxr-xr-x 1 root root  316012 May 11 05:33 gd.so
-rwxr-xr-x 1 root root   90676 May 11 05:33 imap.so
-rwxr-xr-x 1 root root   33428 May 11 05:33 json.so
-rwxr-xr-x 1 root root   45396 May 11 05:33 ldap.so
-rwxr-xr-x 1 root root   45332 May 11 05:33 mysql.so
-rwxr-xr-x 1 root root  122024 May 11 05:33 mysqli.so
-rwxr-xr-x 1 root root   61460 May 11 05:33 odbc.so
-rwxr-xr-x 1 root root   90872 May 11 05:33 pdo.so
-rwxr-xr-x 1 root root   25672 May 11 05:33 pdo_mysql.so
-rwxr-xr-x 1 root root   22696 May 11 05:33 pdo_odbc.so
-rwxr-xr-x 1 root root   21288 May 11 05:33 pdo_sqlite.so
-rwxr-xr-x 1 root root  265280 May 11 05:33 phar.so
-rwxr-xr-x 1 root root 1216119 Oct  2 11:09 redis.so
-rwxr-xr-x 1 root root   41344 May 11 05:33 sqlite3.so
-rwxr-xr-x 1 root root   31572 May 11 05:33 wddx.so
-rwxr-xr-x 1 root root   25592 May 11 05:33 xmlreader.so
-rwxr-xr-x 1 root root   81584 May 11 05:33 xmlrpc.so
-rwxr-xr-x 1 root root   37752 May 11 05:33 xmlwriter.so
-rwxr-xr-x 1 root root   27892 May 11 05:33 xsl.so
-rwxr-xr-x 1 root root   81248 May 11 05:33 zip.so
[root@VM_114_93_centos modules]# vim /etc/php.ini 
You have new mail in /var/spool/mail/root
[root@VM_114_93_centos modules]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
[root@VM_114_93_centos modules]# 
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页