Answer the question
In order to leave comments, you need to log in
How to make nginx executable smaller?
Good afternoon.
Why is the size of the executable file 843656 B when installing nginx from the repositories, but when compiling from source codes with fewer modules, the executable file is already 7548107 B?
Maybe there are keys to make to make the executable smaller?
Answer the question
In order to leave comments, you need to log in
Static vs dynamic linking
Alternatively, so that the study does not go to waste, connect the native nginx
deb + deb-src
repository, and build from the repository sortssudo apt-get source nginx
because maybe a command was applied to the executable file that cut out everything unnecessary, I don’t remember exactly what it’s called.
Well, it also depends on how you collected it with your hands, maybe you decided to assemble it with statics.
Well, src.rpm will give the best answer from there, you can take the spec file and see what's there and how.
As you can see from the output
, you have completely different versions and compilation directives. To compare correctly, start at least with the equation of versions and directives.
By the way, add repositories to have up-to-date binaries
wiki.nginx.org/Install
Good luck :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question