zoukankan      html  css  js  c++  java
  • 不重新编译安装php模块的方法

    如果你有下面两种经历:

    • 如果php通过源码安装(php7),如果后来需要开启某个自带模块(例如ldap,snmp等),通常需要重新编译。

    • 另外一些安装php模块的经历,例如redis,swoole,yaf,安装过程通常是这样的:

        # 下载源码
        wget https://sorce.net/some-module.tar.gz
        # 解压j进入目录
        tar -zxvf xxx.tar.gz && cd xxx
        # 配置 编译
        phpize
        ./configure --with-php-config=/path/to/php-config
        make && make install
        # 然后拷贝 xx.so 文件,在 php.ini 添加 extension = xx.so
      

    并且你还没有删除你的php安装源码,恭喜你可以不用重新编译php来扩展这些模块

    cd php源码目录/ext/ 找到你需要的模块名,进入文件夹,按照上面安装扩展的方法,编译添加

    我的php源码安装完了就删掉了?##

    php -v再去下载个相同的版本

  • 相关阅读:
    选择排序
    散列冲突解决方案
    string stringbuffer StringBuilder
    java关键字
    Vector
    What is the difference between book depreciation and tax depreciation?
    Type of Asset Books in Oracle Fixed Assets
    questions
    Oracle Express 11g
    iot
  • 原文地址:https://www.cnblogs.com/dapianzi/p/7839547.html
Copyright © 2011-2022 走看看