• 【原创】Linux编译 安装多个php版本并配置(7.1+7.4)


    背景:linux服务器已经安装了lnmp1.5的包,里面带了php7.1版本,一直再跑;

    现在想学点swoole,要求PHP>=7.2,所以准备自己再装个php7.4的版本,玩起来。(未使用docker安装,推荐docker更简单)0--花一天时间已完成hyperf2.1安装和调试,跑起来了。

    client:

    hyperf: 

    参考文章:

    安装之前,需要指定安装位置和配置文件位置:亲测可行php7.4,其他的要么多了要么少了

    ./configure  --prefix=/usr/local/php74/php-7.4.21  --with-config-file-path=/usr/local/php74/php-7.4.21/etc  --with-curl  --enable-gd  --with-gettext   --with-iconv-dir  --with-kerberos  --with-libdir=lib64  --with-mysqli  --with-openssl  --with-pdo-mysql  --with-pdo-sqlite  --with-pear  --with-xmlrpc  --with-xsl  --with-zlib  --with-bz2  --with-mhash  --enable-fpm  --enable-bcmath  --enable-inline-optimization  --enable-mbregex  --enable-mbstring  --enable-opcache  --enable-pcntl  --enable-shmop  --enable-soap  --enable-sockets  --enable-sysvsem  --enable-sysvshm  --enable-xml   

    1、https://www.cnblogs.com/jackzhuo/p/12761035.html

    2、https://blog.csdn.net/gusijin/article/details/97008105

    安装完毕后,需要修改相关配置:
    
    1、将php74/php.ini.development 放到php74/etc/php.ini中,
    cp xxx php.ini

    php版本下载:http://php.net

  • 相关阅读:
    html5之缩放图标
    html5之图片的缩放scale
    html5之打地鼠100%胜率
    html5之调整旋转中心点
    html5之三角旋转
    html5中模块居中
    html5中2d图片旋转
    html5之动态移动图
    html5之steps
    读微信开放文档未解记录
  • 原文地址:https://www.cnblogs.com/xuzhengzong/p/15005542.html
Copyright © 2020-2023  润新知