Hello everybody, I installed Nginx on CentOS 7 by following link: https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-centos-7 [root@centos-512mb-nyc3-01 ~]# sudo yum install nginx But the system show errors: Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile
Is this ok [y/d/N]: y Downloading packages: Failed to download prestodelta for repository updates: [Errno 5] [Errno 12] Cannot allocate memory Error downloading packages: 1:openssl-1.0.2k-16.el7_6.1.x86_64: [Errno 5] [Errno 12] Cannot allocate memory 1:nginx-filesystem-1.12.2-2.el7.noarch: [Errno 5] [Errno 12] Cannot allocate memory 1:nginx-all-modules-1.12.2-2.el7.noarch: [Errno 5] [Errno 12] Cannot allocate memory 1:openssl-libs-1.0.2k-16.el7_6.1.x86_64: [Errno 5] [Errno 12] Cannot allocate memory 1:nginx-mod-http-geoip-1.12.2-2.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory 1:nginx-mod-stream-1.12.2-2.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory 1:nginx-1.12.2-2.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory 1:nginx-mod-http-xslt-filter-1.12.2-2.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory 1:nginx-mod-http-image-filter-1.12.2-2.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory 1:nginx-mod-mail-1.12.2-2.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory 1:nginx-mod-http-perl-1.12.2-2.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory
What will I have to do now?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi
Your server doesn’t have enough memory to complete the installation of Nginx.
1:openssl-1.0.2k-16.el76.1.x8664: [Errno 5] [Errno 12]** Cannot allocate memory**
Try stopping the nodejs service while you install Nginx to free up memory for this particular task. Otherwise you’ll need to upgrade RAM.
Cheers
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.