Rumah > pembangunan bahagian belakang > tutorial php > linux - yum下载php7的时候显示“Cannot allocate memory”不能分配内存?

linux - yum下载php7的时候显示“Cannot allocate memory”不能分配内存?

WBOY
Lepaskan: 2016-06-06 20:13:46
asal
1556 orang telah melayarinya

用remi源下载php7,但是结果却显示“Cannot allocate memory”不能分配内存,什么意思?

<code>[root@i123456789 ~]# yum install php70-php-fpm php70-php-cli php70-php-mcrypt
Loaded plugins: axelget, langpacks
No metadata available for base
No metadata available for dockerrepo
No metadata available for elrepo
No metadata available for epel
No metadata available for extras
No metadata available for mariadb
No metadata available for nginx
No metadata available for remi
No metadata available for remi-php70
No metadata available for remi-php70-test
No metadata available for remi-safe
No metadata available for remi-test
No metadata available for salt-2015.8
No metadata available for updates
Resolving Dependencies
--> Running transaction check
---> Package php70-php-cli.x86_64 0:7.0.5-0.1.RC1.el7.remi will be installed
--> Processing Dependency: php70-php-common(x86-64) = 7.0.5-0.1.RC1.el7.remi for package: php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64
---> Package php70-php-fpm.x86_64 0:7.0.5-0.1.RC1.el7.remi will be installed
---> Package php70-php-mcrypt.x86_64 0:7.0.5-0.1.RC1.el7.remi will be installed
--> Processing Dependency: libmcrypt.so.4()(64bit) for package: php70-php-mcrypt-7.0.5-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: libltdl.so.7()(64bit) for package: php70-php-mcrypt-7.0.5-0.1.RC1.el7.remi.x86_64
--> Running transaction check
---> Package libmcrypt.x86_64 0:2.5.8-13.el7 will be installed
---> Package libtool-ltdl.x86_64 0:2.4.2-21.el7_2 will be installed
---> Package php70-php-common.x86_64 0:7.0.5-0.1.RC1.el7.remi will be installed
--> Processing Dependency: php70-runtime for package: php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: php70-php-json(x86-64) for package: php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64
--> Running transaction check
---> Package php70-php-json.x86_64 0:7.0.5-0.1.RC1.el7.remi will be installed
---> Package php70-runtime.x86_64 0:1.0-4.el7.remi will be installed
--> Processing Dependency: environment-modules for package: php70-runtime-1.0-4.el7.remi.x86_64
--> Running transaction check
---> Package environment-modules.x86_64 0:3.2.10-10.el7 will be installed
--> Processing Dependency: libtcl8.5.so()(64bit) for package: environment-modules-3.2.10-10.el7.x86_64
--> Running transaction check
---> Package tcl.x86_64 1:8.5.13-8.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================
 Package                         Arch               Version                            Repository             Size
===================================================================================================================
Installing:
 php70-php-cli                   x86_64             7.0.5-0.1.RC1.el7.remi             remi-test             2.6 M
 php70-php-fpm                   x86_64             7.0.5-0.1.RC1.el7.remi             remi-test             1.4 M
 php70-php-mcrypt                x86_64             7.0.5-0.1.RC1.el7.remi             remi-test              51 k
Installing for dependencies:
 environment-modules             x86_64             3.2.10-10.el7                      base                  107 k
 libmcrypt                       x86_64             2.5.8-13.el7                       epel                   99 k
 libtool-ltdl                    x86_64             2.4.2-21.el7_2                     updates                49 k
 php70-php-common                x86_64             7.0.5-0.1.RC1.el7.remi             remi-test             571 k
 php70-php-json                  x86_64             7.0.5-0.1.RC1.el7.remi             remi-test              53 k
 php70-runtime                   x86_64             1.0-4.el7.remi                     remi                  1.1 M
 tcl                             x86_64             1:8.5.13-8.el7                     base                  1.9 M

Transaction Summary
===================================================================================================================
Install  3 Packages (+7 Dependent packages)

Total download size: 7.9 M
Installed size: 21 M
Is this ok [y/d/N]: y
Downloading packages:
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
tcl-8.5.13-8.el7.x86_64.rpm                                                                                         
tcl-8.5.13-8.el7.x86_64.rpm                                                                                         
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             


Error downloading packages:
  libmcrypt-2.5.8-13.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory
  php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64: [Errno 5] [Errno 12] Cannot allocate memory
  php70-php-mcrypt-7.0.5-0.1.RC1.el7.remi.x86_64: [Errno 5] [Errno 12] Cannot allocate memory
  php70-php-json-7.0.5-0.1.RC1.el7.remi.x86_64: [Errno 5] [Errno 12] Cannot allocate memory
  libtool-ltdl-2.4.2-21.el7_2.x86_64: [Errno 5] [Errno 12] Cannot allocate memory
  1:tcl-8.5.13-8.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory
  environment-modules-3.2.10-10.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory
  php70-runtime-1.0-4.el7.remi.x86_64: [Errno 5] [Errno 12] Cannot allocate memory
  php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64: [Errno 5] [Errno 12] Cannot allocate memory
  php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64: [Errno 5] [Errno 12] Cannot allocate memory
</code>
Salin selepas log masuk
Salin selepas log masuk

repo文件内容是这样的:
remi-php70.repo

<code>[remi-php70-test]
name=Remi's PHP 7.0 test RPM repository for Enterprise Linux 7 - $basearch
#baseurl=http://rpms.remirepo.net/enterprise/7/test70/$basearch/
mirrorlist=http://rpms.remirepo.net/enterprise/7/test70/mirror
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

[remi-php70-test-debuginfo]
name=Remi's PHP 7.0 test RPM repository for Enterprise Linux 7 - $basearch - debuginfo
baseurl=http://rpms.remirepo.net/enterprise/7/debug-test70/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi</code>
Salin selepas log masuk
Salin selepas log masuk

repo文件中用的下载网址是rpms.remirepo.net,
我猜想可能是这个网址的原因,在官网上有这么一段:
linux - yum下载php7的时候显示“Cannot allocate memory”不能分配内存?
红框中说rpms.remirepo.net限制了带宽,不要用这个网址下载。截图中左边有很多网址,可是那些网址找不到php,是我没找到?请大家帮说明一下怎么弄?

回复内容:

用remi源下载php7,但是结果却显示“Cannot allocate memory”不能分配内存,什么意思?

<code>[root@i123456789 ~]# yum install php70-php-fpm php70-php-cli php70-php-mcrypt
Loaded plugins: axelget, langpacks
No metadata available for base
No metadata available for dockerrepo
No metadata available for elrepo
No metadata available for epel
No metadata available for extras
No metadata available for mariadb
No metadata available for nginx
No metadata available for remi
No metadata available for remi-php70
No metadata available for remi-php70-test
No metadata available for remi-safe
No metadata available for remi-test
No metadata available for salt-2015.8
No metadata available for updates
Resolving Dependencies
--> Running transaction check
---> Package php70-php-cli.x86_64 0:7.0.5-0.1.RC1.el7.remi will be installed
--> Processing Dependency: php70-php-common(x86-64) = 7.0.5-0.1.RC1.el7.remi for package: php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64
---> Package php70-php-fpm.x86_64 0:7.0.5-0.1.RC1.el7.remi will be installed
---> Package php70-php-mcrypt.x86_64 0:7.0.5-0.1.RC1.el7.remi will be installed
--> Processing Dependency: libmcrypt.so.4()(64bit) for package: php70-php-mcrypt-7.0.5-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: libltdl.so.7()(64bit) for package: php70-php-mcrypt-7.0.5-0.1.RC1.el7.remi.x86_64
--> Running transaction check
---> Package libmcrypt.x86_64 0:2.5.8-13.el7 will be installed
---> Package libtool-ltdl.x86_64 0:2.4.2-21.el7_2 will be installed
---> Package php70-php-common.x86_64 0:7.0.5-0.1.RC1.el7.remi will be installed
--> Processing Dependency: php70-runtime for package: php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: php70-php-json(x86-64) for package: php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64
--> Running transaction check
---> Package php70-php-json.x86_64 0:7.0.5-0.1.RC1.el7.remi will be installed
---> Package php70-runtime.x86_64 0:1.0-4.el7.remi will be installed
--> Processing Dependency: environment-modules for package: php70-runtime-1.0-4.el7.remi.x86_64
--> Running transaction check
---> Package environment-modules.x86_64 0:3.2.10-10.el7 will be installed
--> Processing Dependency: libtcl8.5.so()(64bit) for package: environment-modules-3.2.10-10.el7.x86_64
--> Running transaction check
---> Package tcl.x86_64 1:8.5.13-8.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================
 Package                         Arch               Version                            Repository             Size
===================================================================================================================
Installing:
 php70-php-cli                   x86_64             7.0.5-0.1.RC1.el7.remi             remi-test             2.6 M
 php70-php-fpm                   x86_64             7.0.5-0.1.RC1.el7.remi             remi-test             1.4 M
 php70-php-mcrypt                x86_64             7.0.5-0.1.RC1.el7.remi             remi-test              51 k
Installing for dependencies:
 environment-modules             x86_64             3.2.10-10.el7                      base                  107 k
 libmcrypt                       x86_64             2.5.8-13.el7                       epel                   99 k
 libtool-ltdl                    x86_64             2.4.2-21.el7_2                     updates                49 k
 php70-php-common                x86_64             7.0.5-0.1.RC1.el7.remi             remi-test             571 k
 php70-php-json                  x86_64             7.0.5-0.1.RC1.el7.remi             remi-test              53 k
 php70-runtime                   x86_64             1.0-4.el7.remi                     remi                  1.1 M
 tcl                             x86_64             1:8.5.13-8.el7                     base                  1.9 M

Transaction Summary
===================================================================================================================
Install  3 Packages (+7 Dependent packages)

Total download size: 7.9 M
Installed size: 21 M
Is this ok [y/d/N]: y
Downloading packages:
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                          |    0 B  00:00:00 ... 
tcl-8.5.13-8.el7.x86_64.rpm                                                                                         
tcl-8.5.13-8.el7.x86_64.rpm                                                                                         
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64.rpm                                                                     
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             
php70-runtime-1.0-4.el7.remi.x86_64.rpm                                                                             


Error downloading packages:
  libmcrypt-2.5.8-13.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory
  php70-php-common-7.0.5-0.1.RC1.el7.remi.x86_64: [Errno 5] [Errno 12] Cannot allocate memory
  php70-php-mcrypt-7.0.5-0.1.RC1.el7.remi.x86_64: [Errno 5] [Errno 12] Cannot allocate memory
  php70-php-json-7.0.5-0.1.RC1.el7.remi.x86_64: [Errno 5] [Errno 12] Cannot allocate memory
  libtool-ltdl-2.4.2-21.el7_2.x86_64: [Errno 5] [Errno 12] Cannot allocate memory
  1:tcl-8.5.13-8.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory
  environment-modules-3.2.10-10.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory
  php70-runtime-1.0-4.el7.remi.x86_64: [Errno 5] [Errno 12] Cannot allocate memory
  php70-php-cli-7.0.5-0.1.RC1.el7.remi.x86_64: [Errno 5] [Errno 12] Cannot allocate memory
  php70-php-fpm-7.0.5-0.1.RC1.el7.remi.x86_64: [Errno 5] [Errno 12] Cannot allocate memory
</code>
Salin selepas log masuk
Salin selepas log masuk

repo文件内容是这样的:
remi-php70.repo

<code>[remi-php70-test]
name=Remi's PHP 7.0 test RPM repository for Enterprise Linux 7 - $basearch
#baseurl=http://rpms.remirepo.net/enterprise/7/test70/$basearch/
mirrorlist=http://rpms.remirepo.net/enterprise/7/test70/mirror
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

[remi-php70-test-debuginfo]
name=Remi's PHP 7.0 test RPM repository for Enterprise Linux 7 - $basearch - debuginfo
baseurl=http://rpms.remirepo.net/enterprise/7/debug-test70/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi</code>
Salin selepas log masuk
Salin selepas log masuk

repo文件中用的下载网址是rpms.remirepo.net,
我猜想可能是这个网址的原因,在官网上有这么一段:
linux - yum下载php7的时候显示“Cannot allocate memory”不能分配内存?
红框中说rpms.remirepo.net限制了带宽,不要用这个网址下载。截图中左边有很多网址,可是那些网址找不到php,是我没找到?请大家帮说明一下怎么弄?

内存不够了,试着把nginx,mysql和一些无用的进程先停掉,等php装好再启动

我遇到过这个提示,当时的解决方法是添加了虚拟内存。然后就没有问题了。

Label berkaitan:
sumber:php.cn
Kenyataan Laman Web ini
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Tutorial Popular
Lagi>
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan