这几天在部署Django,需要安装的东西有点多,python3、pip3、openssl(pip依赖ssl环境),所以第一步是安装openssl,如何安装呢?主要有三步,随ytkah一起来看看吧
1.下载
1
|
wget https: / / www.openssl.org / source / openssl - 1.0 . 2h .tar.gz
|
2.解压
1
2
|
tar zxf openssl - 1.0 . 2h .tar.gz
cd openssl - 1.0 . 2h
|
3.安装
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
. / config shared zlib
make make install
mv / usr / bin / openssl / usr / bin / openssl.bak
mv / usr / include / openssl / usr / include / openssl.bak
ln - s / usr / local / ssl / bin / openssl / usr / bin / openssl
ln - s / usr / local / ssl / include / openssl / usr / include / openssl
echo “ / usr / local / ssl / lib” >> / etc / ld.so.conf
ldconfig - v
|
4.检测安装是否成功
1
|
openssl version - a
|
下一篇文章:centos安装Django之二:pip3安装