Centos7升级openssl

升级openssl

1.下载最新版openssl

https://www.openssl.org/source/openssl-1.1.1-pre8.tar.gz

2.编译安装

cd openssl-1.1.1-pre8
./config --prefix=/usr/local/openssl no-zlib #不需要zlib
make
make install

3.备份原配置

[root@s2-hadoop-test ~]# mv /usr/bin/openssl /usr/bin/openssl.bak

[root@s2-hadoop-test ~]

# mv /usr/include/openssl/ /usr/include/openssl.bak

4.新版配置

#将安装好的openssl 的openssl命令软连到/usr/bin/openssl

[root@s2-hadoop-test ~]

# ln -s /usr/local/openssl/include/openssl /usr/include/openssl#软链到升级后的libssl.so

[root@s2-hadoop-test ~]

# ln -s /usr/local/openssl/lib/libssl.so.1.1 /usr/local/lib64/libssl.so#将安装好的openssl命令软连到/usr/bin/openssl ln –s /usr/local/openssl/bin/openssl /usr/bin/openssl

5.修改系统配置

#写入openssl库文件的搜索路径
echo "/usr/local/openssl/lib" >> /etc/ld.so.conf
#使修改后的/etc/ld.so.conf生效 
ldconfig -v

6.查看openssl版本

openssl version
OpenSSL 1.1.1-pre8 (beta) 20 Jun 2018

重新安装python

注意:需要指定openssl的安装路径,--with-openssl

./configure --prefix=/usr/local/python37 --with-openssl=/usr/local/openssl
make
make install
分享到:

208 条评论

昵称
  1. steroide kaufen

    Valuable information. Lucky me I found your web site by accident, and I’m shocked why this accident didn’t happened earlier! I bookmarked it.

  2. You have observed very interesting points! ps decent website.

  3. fantastic points altogether, you simply received a logo new reader. What could you recommend about your post that you simply made some days ago? Any sure?

  4. Utterly written written content, thankyou for information .

  5. Hello, you used to write wonderful, but the last few posts have been kinda boring?K I miss your great writings. Past few posts are just a little out of track! come on!

  6. I really like your blog.. very nice colors & theme. Did you create this website yourself or did you hire someone to do it for you? Plz answer back as I’m looking to construct my own blog and would like to know where u got this from. cheers

  7. This site is my intake, rattling superb style and perfect subject material.

  8. Russ

    I’m really impressed with your writing talents as neatly as with the structure in your blog.

    Is that this a paid subject matter or did you modify it your self?

    Anyway keep up the nice quality writing, it’s uncommon to
    look a nice blog like this one these days..

  9. Norris

    I’ll right away seize your rss as I can not find your e-mail subscription link or e-newsletter service.
    Do you’ve any? Kindly permit me understand in order that I may just subscribe.

    Thanks.

  10. A powerful share, I simply given this onto a colleague who was doing somewhat analysis on this. And he in reality bought me breakfast as a result of I discovered it for him.. smile. So let me reword that: Thnx for the treat! However yeah Thnkx for spending the time to discuss this, I really feel strongly about it and love studying extra on this topic. If potential, as you become experience, would you thoughts updating your weblog with more particulars? It’s extremely useful for me. Big thumb up for this blog put up!

  11. Hurrah, that’s what I was searching for, what a data!

    existing here at this web site, thanks admin of this web
    page.

  12. Frank Gould

    I enjoy what you guys are usually up too.
    Such clever work and exposure! Keep up the superb works guys
    I’ve incorporated you guys to our blogroll.

  13. Lindsay Conner

    I will right away take hold of your rss feed as I can not
    to find your email subscription link or newsletter service.
    Do you have any? Please allow me know so that I could subscribe.
    Thanks.

  14. 4chan porn

    Wonderful story, reckoned we could combine a handful of unrelated data, nevertheless actually worth taking a look, whoa did one discover about Mid East has got a lot more problerms at the same time

  15. Here are some of the websites we advocate for our visitors

  16. visit the site

    Exactly what I was looking for, thanks for putting up.

  17. moved here

    You are my intake, I possess few blogs and rarely run out from to brand.

  18. although web sites we backlink to below are considerably not connected to ours, we feel they are in fact worth a go via, so have a look

  19. Every once inside a when we choose blogs that we study. Listed beneath are the most current internet sites that we pick

  20. just beneath, are various totally not associated web sites to ours, nevertheless, they may be certainly worth going over

  21. clit vibrator

    usually posts some incredibly exciting stuff like this. If youre new to this site

  22. Sites of interest we’ve a link to

  23. the time to read or go to the subject material or web pages we have linked to below the

  24. The info mentioned inside the write-up are a number of the top readily available

  25. Cure de slabit

    Throughout the awesome design of things you get an A+ just for hard work. Where you actually confused everybody ended up being in your specifics. You know, people say, the devil is in the details… And it could not be more accurate right here. Having said that, let me say to you just what exactly did deliver the results. The text is definitely rather engaging and this is possibly why I am making an effort in order to opine. I do not really make it a regular habit of doing that. Secondly, while I can certainly see the leaps in logic you make, I am definitely not convinced of exactly how you appear to connect your ideas which inturn produce your final result. For now I will, no doubt yield to your position however trust in the future you link your facts better.

  26. Good write-up, I am normal visitor of one¦s site, maintain up the nice operate, and It’s going to be a regular visitor for a long time.

  27. Fast money

    usually posts some extremely intriguing stuff like this. If youre new to this site

  28. we prefer to honor several other world-wide-web web sites around the net, even when they arent linked to us, by linking to them. Underneath are some webpages really worth checking out