久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      PHP安裝BCMath擴(kuò)展

      什么是BCMath擴(kuò)展?

      大多數(shù)編程語(yǔ)言對(duì)于浮點(diǎn)型數(shù)據(jù)格式遵循 IEEE 754 標(biāo)準(zhǔn),這就會(huì)導(dǎo)致在使用浮點(diǎn)數(shù)運(yùn)算的過程中會(huì)有精度丟失的問題。PHP提供了 BCMath 庫(kù)來(lái)支持更加精確的計(jì)算。

      1、找到 PHP 源碼包bcmatch目錄

      find / -name bcmath

      PHP安裝BCMath擴(kuò)展

      我這實(shí)際用的是/mydata/php-7.3.5/ext/bcmath

      cd /mydata/php-7.3.5/ext/bcmath

      2、執(zhí)行phpize

      phpize 命令在PHP安裝目錄的 bin 目錄下,如果已經(jīng)把PHP的 bin 目錄添加到系統(tǒng)環(huán)境變量,則直接在 bcmath 目錄下執(zhí)行 phpize 即可

      phpize

      PHP安裝BCMath擴(kuò)展

      否則,寫全phpize命令的路徑

      /usr/local/server/php7.3/bin/phpize

      3、預(yù)編譯

      ./configure --with-php-config=/usr/local/server/php7.3/bin/php-config

      php-config 也在PHP的bin目錄下,找不到的可以用 find 命令查找下

      4、編譯&&安裝

      sudo make && make install

      5、PHP 添加配置

      可以在phpinfo()函數(shù),查看配置文件位置

      PHP安裝BCMath擴(kuò)展

      在 php.ini 中添加該擴(kuò)展

      vi /usr/local/server/php7.3/etc/php.ini extension=bcmath.so

      6、重啟服務(wù)

      執(zhí)行重啟服務(wù)命令,這個(gè)重啟命令需要看你具體環(huán)境而定,這里不多說(shuō)

      service httpd restart

      httpd -k restart

      查看phpinfo()或執(zhí)行命令 php -m 擴(kuò)展是否安裝成功

      PHP安裝BCMath擴(kuò)展

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)