wget http://cn2.php.com/distributions/php-7.2.0.tar.gz
解压缩
tar -zxvf php-7.2.0.tar.gz
进入文件夹
然后执行如下命令,我指定的安装目录是/web/php72 ,必须保证目录存在
./configure --enable-fpm --prefix=/web/php72 --with-config-file-path=/web/php71/etc --with-curl --with-freetype-dir --with-gd --with-gettext --with-iconv-dir --with-kerberos --with-libdir=lib64 --with-libxml-dir --with-mysqli --with-openssl --with-pcre-regex --with-pdo-mysql --with-pdo-sqlite --with-pear --with-png-dir --with-jpeg-dir --with-xmlrpc --with-xsl --with-zlib --enable-fpm --enable-bcmath --enable-libxml --enable-inline-optimization --enable-mbregex --enable-mbstring --enable-opcache --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-xml --enable-zip
相关推荐:
CentOS7yum安装PHP7.2实例方法
最详细的linux安装php过程
Linux安装命令介绍
以上就是linux如何安装php7.2的详细内容,更多请关注Gxl网其它相关文章!
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!