Why the server software in Linux needs to compile and install _linux

Source: Internet
Author: User

Why does the server software need to compile the installation? A widely circulated saying is that the compiler installation performance is better, in fact, this is a rumor

Server CPU facts have been monopolized by Intel, and there are only a few models that are compiled to produce the same machine code. Intel promotes its own compilation tools Intel C + + Compiler has a 10%-20% performance boost compared to GCC, which is an advertisement where production environments rarely employ it, not to mention it charges

Performance is really not a problem, such as the Strip command can greatly reduce the size of the executable file, but I installed thousands of times the software, did not see anyone in the installation script to use.

The real reasons for the software to compile the installation are as follows: 3.

1. Software needs to be configured during compilation , such as Nginx, to specify which Module,php,apache are included when compiling.
The same is true of the database, MySQL is installed by compiling because the storage engine is to be customized (whether InnoDB is supported. , and SQLite is rarely compiled, are directly downloaded binary files to use.

2. The software needs to unify the installation path , each team will own the installation directory stipulation, some likes installs under the/opt/, some likes to install in/usr/local/, the compilation installs may conveniently specify these paths (configure--PREFIX=XXX)

3. The need for the latest version , the software warehouse version is generally relatively low, this reason is not sufficient, the production environment tends to conservative, not the latest version, but for geek, this may be the most important reason
After you figure out why, it's easy to tell whether you're compiling or downloading:

Nginx/apache/php/mysql Compilation Installation
Python/ruby/java Direct Download

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.