Компилируем Nginx с последним OpenSSL


Это очень ленивая заметка. Честно говоря не знаю зачем я решил ее написать. Скорее просто для себя заметочка, чтобы потом не искать опции и сам метод.

Вообщем всвязи с последними дырами OpenSSL пришлось в срочном порядке поддерживать актуальную версию этого “добра”. Итак, качаем последние доступные исходные коды с официального сайта OpenSSL и Nginx с последующей распаковкой. Надеюсь, что вы умеете пользоваться wget и tar, потому что мне просто лень приводить пример как
это сделать.

Установим все что необходимо для компиляции(на примере Debian/Ubuntu):

aptitude install gcc  libpcre++-dev libpcre3 libpcre3-dev libpcrecpp0 libssl-dev zlib1g-dev

Следующим шагом заходим в каталог распакованного OpenSSL. Там все просто:

make install

Теперь заходим в каталог с распакованным nginx.

configure --with-cc-opt=-I../openssl-1.0.1j/include --with-ld-opt='-L../openssl-1.0.1j -Wl,-Bstatic -lssl -lcrypto -Wl,-Bdynamic -ldl' --with-openssl=../openssl-1.0.1j  --with-http_ssl_module
make install

Единственно на что стоит обратить внимание это переменные “../openssl-1.0.1j/” в команде конфигурирования. Это просто каталог, куда вы распаковали свежиспеченный OpenSSL. Когда выйдет следующее обновление просто заменим его на нужный путь и дело в шляпе.

PS Для дабавления в автозагрузку Ubuntu надо прописать в /etc/init/nginx.conf

# nginx

description "nginx http daemon"
author "George Shammas <[email protected]>"

start on (filesystem and net-device-up IFACE=lo)
stop on runlevel [!2345]

env DAEMON=/usr/sbin/nginx
env PID=/var/run/

expect fork
respawn limit 10 5
#oom never

pre-start script
        $DAEMON -t
        if [ $? -ne 0 ]
                then exit $?
end script

exec $DAEMON

Автозапуск можно проверить командой

initctl list | grep nginx

После чего запустить nginx

initctl start nginx

88 комментариев к “Компилируем Nginx с последним OpenSSL

  1. I?m amazed, I need to state. Truly rarely do I experience a blog that?s both instructional and also enjoyable, and also let me inform you, you have actually struck the nail on the head. Your concept is impressive; the issue is something that not enough people are talking smartly about. I am very delighted that I came across this in my look for something associating with this.

  2. Can I simply say what a relief to locate someone that actually understands what theyre discussing on the net. You absolutely recognize just how to bring a problem to light as well as make it important. Even more people need to read this and also recognize this side of the story. I angle believe youre not more prominent since you definitely have the present.

  3. I?m amazed, I have to say. Actually seldom do I run into a blog that?s both informative and also enjoyable, as well as let me inform you, you have actually hit the nail on the head. Your concept is superior; the concern is something that not enough people are talking wisely around. I am really pleased that I stumbled across this in my search for something connecting to this.

  4. This is the right blog for anybody who wishes to learn about this subject. You realize so much its almost hard to say with you (not that I really would want?HaHa). You definitely placed a brand-new spin on a subject thats been written about for many years. Terrific stuff, simply excellent!

  5. Hi, I do believe this is a great site. I stumbledupon it 😉 I’m going to revisit yet again since I saved as a favorite it. Money and freedom is the best way to change, may you be rich and continue to guide other people.

  6. This could be the proper blog for anybody who would like to discover this topic. You already know a great deal its practically tough to argue along (not too I really would want…HaHa). You certainly put the latest spin on the topic thats been revealed for several years. Great stuff, just excellent!

  7. It was a excitement getting to your site a short while ago. I came here today hoping to get interesting things. And I was not let down. Your ideas on new tactics on this subject material were helpful and an excellent help to my family. Thank you for creating time to write out these things as well as for sharing your thinking.

  8. It was any enjoyment discovering your site the other day. We arrived the following these days searching new things. I was not necessarily frustrated. Your ideas following fresh methods about this point have been beneficial plus an outstanding assist with individually. We value You taking away time for you to write out these products and then for uncovering your ideas.

  9. I intended to send you this very small word in order to thank you so much the moment again regarding the superb information you’ve featured here. It has been quite open-handed of you to allow easily precisely what many people would have distributed for an e book to generate some bucks for their own end, most importantly since you might have done it in case you decided. Those good tips in addition served like a easy way to comprehend many people have the identical fervor like mine to figure out a good deal more with respect to this matter. I am certain there are lots of more enjoyable opportunities in the future for folks who see your site.

  10. I am usually to blogging and also i actually value your web content. The post has truly peaks my interest. I am mosting likely to bookmark your website and also keep looking for new information.

  11. When I originally commented I clicked the -Notify me when new comments are added- checkbox and also currently each time a remark is added I get four emails with the exact same comment. Is there any way you can remove me from that solution? Thanks!

  12. I just want to say I’m very new to blogging and site-building and honestly liked this web site. Most likely I’m planning to bookmark your blog post . You amazingly come with incredible article content. Thanks a bunch for sharing your webpage.

  13. I’ve been surfing online more than 3 hours lately, but I by no means discovered any interesting article like yours. It¡¦s beautiful worth enough for me. In my view, if all site owners and bloggers made just right content as you probably did, the internet might be much more useful than ever before.

  14. Admiring the commitment you put into your blog and detailed information you offer. It’s awesome to come across a blog every once in a while that isn’t the same outdated rehashed information. Wonderful read! I’ve bookmarked your site and I’m adding your RSS feeds to my Google account.

  15. Hey! I know this is kind of off topic but I was wondering if you knew where I could locate a captcha plugin for my comment form? I’m using the same blog platform as yours and I’m having problems finding one? Thanks a lot!

  16. I simply want to tell you that I am very new to blogs and really loved you’re website. Very likely I’m likely to bookmark your site . You surely have impressive stories. Appreciate it for revealing your webpage.

  17. Can I simply say what a relief to search out somebody who really is aware of what theyre speaking about on the internet. You undoubtedly know tips on how to convey a difficulty to gentle and make it important. Extra people have to learn this and perceive this aspect of the story. I cant believe youre not more common because you undoubtedly have the gift.

  18. Nice blog! Is your theme custom made or did you download it from somewhere? A theme like yours with a few simple tweeks would really make my blog jump out. Please let me know where you got your design. Thank you

  19. The next time I read a blog, I hope that it does not fail me as much as this one. After all, I know it was my choice to read through, however I actually believed you’d have something interesting to talk about. All I hear is a bunch of whining about something that you could possibly fix if you were not too busy looking for attention.

  20. I just want to tell you that I am beginner to blogs and absolutely savored your blog site. Most likely I’m planning to bookmark your site . You absolutely have incredible articles and reviews. Thank you for sharing with us your web page.

  21. I’m more than happy to find this site. I need to to thank you for your time for this particularly wonderful read!! I definitely liked every part of it and i also have you saved as a favorite to look at new things on your site.

  22. I’m not sure exactly why but this weblog is loading incredibly slow for me. Is anyone else having this issue or is it a issue on my end? I’ll check back later on and see if the problem still exists.

  23. Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You definitely know what youre talking about, why throw away your intelligence on just posting videos to your weblog when you could be giving us something enlightening to read?

  24. I was just seeking this information for some time. After 6 hours of continuous Googleing, finally I got it in your site. I wonder what’s the lack of Google strategy that do not rank this type of informative web sites in top of the list. Usually the top websites are full of garbage.

  25. You’re so awesome! I do not believe I have read a single thing like this before. So wonderful to discover someone with a few unique thoughts on this subject. Really.. thank you for starting this up. This site is one thing that is required on the internet, someone with a bit of originality.

  26. I would like to thank you for the efforts you have put in writing this blog. I am hoping the same high-grade website post from you in the upcoming as well. In fact your creative writing abilities has inspired me to get my own website now. Really the blogging is spreading its wings fast. Your write up is a good example of it.

  27. I wanted to write a word to be able to thank you for these remarkable recommendations you are sharing on this website. My extensive internet lookup has now been honored with professional content to share with my family and friends. I ‘d assume that many of us readers actually are truly fortunate to exist in a fabulous place with many outstanding people with very helpful principles. I feel very much grateful to have used the weblog and look forward to plenty of more pleasurable moments reading here. Thank you again for all the details.

  28. Greetings! I know this is kind of off topic but I was wondering which blog platform are you using for this site? I’m getting tired of WordPress because I’ve had problems with hackers and I’m looking at options for another platform. I would be great if you could point me in the direction of a good platform.

  29. This is the perfect site for everyone who hopes to understand this topic. You understand a whole lot its almost hard to argue with you (not that I personally will need to…HaHa). You definitely put a fresh spin on a subject which has been written about for years. Excellent stuff, just excellent.

  30. Hello there! I could have sworn I챠ve been to this website before but after looking at many of the articles I realized it챠s new to me. Regardless, I챠m certainly pleased I discovered it and I챠ll be book-marking it and checking back regularly!

  31. I’m extremely impressed with your writing skills and also with the layout on your weblog. Is this a paid theme or did you modify it yourself? Anyway keep up the excellent quality writing, it is rare to see a great blog like this one nowadays..

  32. Admiring the hard work you put into your blog and in depth information you offer. It’s awesome to come across a blog every once in a while that isn’t the same old rehashed information. Great read! I’ve saved your site and I’m including your RSS feeds to my Google account.

  33. Awesome blog! Do you have any tips for aspiring writers? I’m planning to start my own website soon but I’m a little lost on everything. Would you propose starting with a free platform like WordPress or go for a paid option? There are so many options out there that I’m totally overwhelmed .. Any tips? Cheers!

  34. Somebody necessarily lend a hand to make critically posts I might state. That is the very first time I frequented your web page and thus far? I surprised with the analysis you made to create this particular put up extraordinary. Fantastic process!

Оставить ответ

Ваш адрес email не будет опубликован. Обязательные поля помечены *