歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> 關於Linux

centos 安裝php7和swoole步驟

centos 安裝php7和swoole步驟。

1. 安裝必要軟件

yum install libxml2-devel libmcrypt libmcrypt-devel libpng-devel openjpeg-devel libXpm-devel freetype-devel libjpeg-devel libcurl-devel gd


2. 下載php7.1

./configure --prefix=/data/php7.1 --enable-opcache --enable-fpm --enable-mbstring --with-curl --with-mcrypt --enable-pcntl --with-pcre-regex --with-config-file-path=/data/php7.1/etc -with-pdo-mysql --with-mysqli --enable-mysqlnd -with-gd --enable-soap --enable-sockets --enable-sysvsem --enable-sysvshm --enable-mbregex --enable-exif --enable-bcmath --with-mhash --enable-zip --with-zlib

3. 安裝php擴展

/data/php7.1/bin/pecl install redis

4. 下載並安裝swoole擴展

./configure --with-php-config=/data/php7.1/bin/php-config --enable-coroutine --enable-async-redis

Copyright © Linux教程網 All Rights Reserved