通过以下 Referral 链接购买 DigitalOcean 主机,你将可以帮助 V2EX 持续发展
DigitalOcean - SSD Cloud Servers
lincanbin
V2EX  ›  VPS

centos 下编译 php 需要多大内存?

  •  
  •   lincanbin · Apr 27, 2014 via Android · 1505 views
    This topic created in 4399 days ago, the information mentioned may be changed or developed.
    512MiB内存的VPS必须关掉MySQL或者其它服务才能编译成功。
    8 replies    2014-04-28 14:30:38 +08:00
    sanddudu
        1
    sanddudu  
       Apr 27, 2014
    我还没有遇到过因为内存编译失败
    实在内存太小可以下二进制包
    csx163
        2
    csx163  
       Apr 27, 2014
    remi源的php版本挺高的
    mahone3297
        3
    mahone3297  
       Apr 27, 2014
    php暂时不知。。。上次装gem,装了半天装不上,后来才发现是内存不够。。。
    Giinez
        4
    Giinez  
       Apr 27, 2014
    反正我142MB内存加36MB swap是死活编译不了
    sarices
        5
    sarices  
       Apr 28, 2014
    64M内存编译通过,没试过更低的内存
    sarices
        6
    sarices  
       Apr 28, 2014
    https://bugs.php.net/bug.php?id=48809 试试加这个参数--disable-fileinfo
    Giinez
        7
    Giinez  
       Apr 28, 2014
    @sarices 这。。这不科学吧
    lincanbin
        8
    lincanbin  
    OP
       Apr 28, 2014
    @sarices 有加,不关MySQL死活不行
    ./configure --prefix=/www/wdlinux/apache_php-5.5.11 -with-config-file-path=/www/wdlinux/apache_php-5.5.11/etc -with-mysql=/www/wdlinux/mysql -with-mysqli=/www/wdlinux/mysql/bin/mysql_config -with-iconv=/usr -with-freetype-dir -with-jpeg-dir -with-png-dir -with-zlib -with-libxml-dir=/usr -enable-xml -disable-fileinfo -enable-inline-optimization -with-curl -enable-mbregex -enable-mbstring -with-mcrypt=/usr -with-gd -enable-gd-native-ttf -with-openssl -with-mhash -enable-ftp -enable-sockets -enable-zip -with-apxs2=/www/wdlinux/apache/bin/apxs

    我现在还在用着老旧的PHP 5.5.9,虽然新加的特性对我没用,可是就是看着心急如焚。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3309 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 11:46 · PVG 19:46 · LAX 04:46 · JFK 07:46
    ♥ Do have faith in what you're doing.