T
T
teet2014-04-03 16:55:01
Nginx
teet, 2014-04-03 16:55:01

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

6 answer(s)
S
sim3x, 2014-04-03
@teet

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 sorts
sudo apt-get source nginx

M
mcleod095, 2014-04-03
@mcleod095

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.

N
Nazar Mokrinsky, 2014-04-03
@nazarpc

Maybe you have compiled a debug version?

L
luckyredhot, 2014-04-03
@luckyredhot

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 question

Ask a Question

731 491 924 answers to any question