欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

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

程序员文章站 2022-05-23 23:04:21
...

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

[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

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

[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

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

回复内容:

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

[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

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

[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

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

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

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

相关标签: php linux