Compile MySQL, half of the time error, C + + dead

Source: Internet
Author: User

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/8E/20/wKioL1i2fdbRTjc-AAA7VbIb0Ec269.png "title=" C + +. PNG "alt=" Wkiol1i2fdbrtjc-aaa7vbib0ec269.png "/>

compiling MySQL when the error is half-time, C + + die because the memory is too small to create a swap partition or to increase memory recompilation.

Set 2G Swap partition to use the next :

# dd If=/dev/zeroof=/swapfile bs=1k count=2048000-- gets the added 2G of the SWAP File Block

# mkswap/swapfile-- Create SWAP file

# swapon/swapfile-- Activate SWAP file

# swapon-s-- View SWAP information is correct

# echo "/var/swapfile swap swap defaults 0 0" >>/etc/fstab-- Add to Fstab file to start automatically when the system boots

Note , Swapfile the path to the file is /var/ under

when you are finished compiling , If you don't want to swap partitions, , can delete :

This article is from the "11027868" blog, please be sure to keep this source http://11037868.blog.51cto.com/11027868/1902355

Compile MySQL, half of the time error, C + + dead

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.