will the performance of nginx suffer if i compile all module
9 Replies
> but will the performance suffer if i do that?
Theoretically, yes.
> will it be less secure?
Theoretically, yes.
Since you're a n00b I doubt you're doing a high performance application in which case, neither of those issues should affect you.
@rymngh:
please help out a linux & nginx noob here, i want to compile nginx
Give me one reason why a "noob" needs to compile nginx from source. Are you using a source-based distribution like Gentoo? If not, why would you want to compile something that is readily available in the package repositories? Are you sure you can do a better job at keeping your nginx updated with security fixes than your distro's package maintainers can?
> why would you want to compile something that is readily available in the package repositories? Are you sure you can do a better job at keeping your nginx updated with security fixes than your distro's package maintainers can?
Maybe, he's such a n00b that he doesn't even understand the implications of what he is trying to do…
> Compiling from source is bad
Nobody said it was. But as a n00b you probably wouldn't want to start learning by compiling nginx from source. That would most likely lead to distress, confusion, loss of interest, etc.
@hybinet:
Give me one reason why a "noob" needs to compile nginx from source.
For fun, or to learn how to compile things from source.
There is no reason why he should not compile things from source and much to learn from doing so. Sure it's harder than installing a binary version but he would learn little from typing 'apt-get install nginx'?
@nehalem:
Nobody said it was.
Unless you missed it, I did.
@sednet:
Sure it's harder than installing a binary version but he would learn little from typing 'apt-get install nginx'?
From typing "apt-get install nginx", he'd learn best practices, the right way to do it.
Unfortunately, several Linode Library articles casually mention compiling nginx from source as an alternative to using distro packages. I think there should be a big red warning at the top of those sections, along the lines of "YOU WILL BE 100% RESPONSIBLE FOR SECURITY UPDATES IF YOU DO THIS."
@Guspaz:
@nehalem:Nobody said it was.
Unless you missed it, I did.
I totally misinterpreted what you said. You were talking to the OP and I read it as you "defending" the OP's choice. If that explanation makes sense to you.