Linux查找openssl文件夹,Linux下OpenSSL 安装详解 +图解
安装环境:
操作系统:redhat 12.0
OpenSSL Version:openssl-0.9.8l
Download
安装包(Linux source) :openssl-0.9.8l.tar.gz(or the latest version of openssl)下载地址:
在linux下解压缩下载到的安装包,命令如下.....tar -xzf openssl-xxx.tar.gz
Our Configuration
Install to : /usr/local/ssl
Module type : dynamically and staticly loaded modules, *.so *.a
Build Instructions
Configure
.../openssl-0.9.8l]# ./config --prefix=/usr/local/ssl-0.9.8l shared zlib-dynamic enable-camellia
--prefix=/usr/local/ssl-0.9.8l[this is the installation location; default is '/usr/local/ssl' -- which we will symlink]
shared[in addition to the usual static libraries, create shared libraries]
zlib-dynamic[like "zlib", but has OpenSSL load the zlib library dynamically when needed]
enable-camellia[enables the symmetric cipher 'Camellia' (128-bit, 192-bit, 256-bit key versions), which is now available for royalty-free use]
display guess on system made by './config'...
.../openssl-0.9.8l]# ./config -t
Build and Install
.../openssl-0.9.8l]# make depend[step required since extra cipher was enabled]
.../openssl-0.9.8l]# make
.../openssl-0.9.8l]# make test
.../openssl-0.9.8l]# make install
Symlink
Form symlink from '/usr/local/ssl-0.9.8l' to '/usr/local/ssl'(...]代表“/usr/local/”)
...]# cd /usr/local
/usr/local]# ln -s ssl-0.9.8l ssl
Update the Run-time Linker
ld.so.cache will need to be updated with the location of the new OpenSSL shared libs: libcrypto.so.0.9.8 and libssl.so.0.9.8
Sometimes it is sufficient to just symlink or copy these two files to /lib, but we recommend you follow these instructions instead.
Edit /etc/ld.so.conf, add to paths...(修改效果如下图1,当然也可以直接在/etc/ld.so.conf.d文件夹下再创建一个.conf文件,把/usr/local/ssl/lib拷贝到里面,另外也可以在现有的.conf文件中添加这个路径,反正ld.so.conf中包含了这个文件夹下的所有.conf文件)
图1
/usr/local/ssl/lib
Update the run-time linker...
...]# ldconfig
Update the PATH
Edit /root/.bash_profile, add to PATH variable...
(若原来没有安装openssl的旧版本,则放在PATH中的任何位置都可以,但是记住要用冒号分隔开,而不是分号分隔,详见后面的截图,若想查看当前的PATH环境变量都设置了什么,可以使用如下的命令实现:
[root@localhost local]# echo $PATH
/usr/local/ssl/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
)
NOTE:一般在root下直接是看不见.bash_profile(一般为隐藏文件)的,可以在该目录下使用ls –a命令来显示隐藏了的文件。然后用VI或emacs编辑器来修改其中的内容。编译完成后若要立刻看到效果,可以用命令:source .bash_profile,若要长期起作用,需要重新登录(当我首次安装的时候是出现的情况是这样的~~~
/usr/local/ssl/bin
Re-login.
[sanity check] OpenSSL
Verify that binary 'openssl' is linking against the correct ssl libraries...
[root@localhost /]# cd /usr/local
[root@localhost local]# ldd /usr/local/ssl/bin/openssl
linux-gate.so.1 =>(0x00c4b000)
libssl.so.0.9.8 => /usr/local/ssl-0.9.8l/lib/libssl.so.0.9.8 (0x00d5b000)
libcrypto.so.0.9.8 => /usr/local/ssl-0.9.8l/lib/libcrypto.so.0.9.8 (0x00110000)
libdl.so.2 => /lib/libdl.so.2 (0x005b2000)
libc.so.6 => /lib/libc.so.6 (0x00447000)
/lib/ld-linux.so.2 (0x0042a000)
...]# which openssl
/usr/local/ssl/bin/openssl
...]# openssl version
OpenSSL 0.9.8l 5 Nov 2009
If another path, or an older version is shown, your system contains a previously installed OpenSSL that is first [relative to the newer openssl] in the path.
Repeate the steps in section 'Update the PATH', except place the specified location at the start of the PATH variable.(在/root/.bash_profile中将PATH设置为如下的顺序,即把当前安装上的openssl的版本放在环境变量的前面,这样优先使用的就是新安装的最新的版本的OpenSSL了)
图2
Note that the older openssl, on most systems, is located under /usr/bin
The location of 'openssl' can be found with...(用下面的命令你就可以查到你的openssl的安装目录了~~~)
...]# which openssl
以上只是我在刚开始学习的时候的安装过程,若有不对的地方或还有更好的方法,欢迎大家批评指正~~~
Linux查找openssl文件夹,Linux下OpenSSL 安装详解 +图解相关推荐
- linux 查找只读文件夹,Linux系统中查找命令find的使用方法(二)
今天达内Linux培训小编要继续跟大家分享关于Linux系统中中查找命令find的使用方法的文章.在上文中小编提到,Linux查找命令是Linux系统中很重要也是很常用的命令之一.Linux的查找命令 ...
- Windows 下OpenSSL 安装详解 +图解
Windows 下OpenSSL 安装详解 +图解 转载于:https://www.cnblogs.com/zhujiabin/p/5088646.html
- 电脑上的linux是什么文件夹,linux删除文件夹,详细教您电脑的linux怎么样删除文件夹...
上期小编讲解了重装系统win7旗舰版64位教程,本次正特手机网小编给大家讲解一下linux删除文件夹,详细教您电脑的linux怎么样删除文件夹,linux主要是做什么用的?有用户在网上提出这样的提问, ...
- linux 4g大小文件夹,Linux: 如何分割文件,不再被 4G 大小限制了
单文件 4G 限制 FAT32 4G 限制 百度网盘超出 4G 限制 单文件分割与合并 单文件,如:archive.tar.gz 分割 split -b 3000M -d -a 1 archive.t ...
- linux scp 过滤文件夹,linux中使用scp远程拷贝文件及文件夹
linux中使用scp远程拷贝文件及文件夹 linux scp远程拷贝文件及文件夹,需要的朋友可以参考下 1.拷贝本机/home/wtf/test整个目录至远程主机192.168.100.1的/roo ...
- linux挂载一个文件夹,linux挂载一个文件夹到另一个文件夹
linux 挂载一个文件夹到另一个文件夹 Most Linux and Unix file systems don't allow hard links to directories (except ...
- linux移动新建文件夹,Linux(centos)新建,删除,移动文件夹和文件的命令
1.新建文件夹 mkdir 文件名 新建一个名为test的文件夹在home下 view source1 mkdir /home/test 2.新建文本 在home下新建一个test.sh脚本 vi / ...
- linux find 删除文件夹,linux中find与rm实现查找并删除目录或文件linux操作系统 -电脑资料...
在linux中find是查找搜索文件而rm是删除文件,下面我们来看一篇linux中find与rm实现查找并删除目录或文件的实例,希望文章对大家会有所帮助, 删除指定目录下指定文件 find 要查找的目 ...
- linux 删除tmp文件夹,Linux下tmp文件夹的文件自动删除的问题(转)
场景: 近日发现有一台机器tmp文件夹下放置的文件无辜丢失,而且排查发现是自动丢失,并且,只是删除10天之前的文件. 本来以为是哪位写了一个自动执行脚本, find了一下10天前的文件删除了. 结果, ...
最新文章
- 怎么自学python自动化测试-Python实现性能自动化测试竟然如此简单
- Docker渐入佳境
- c语言如何输出无限小数,printf的格式控制(C语言)
- 斐波那契数列大数的压位c语言,HDU 1568 Fibonacci(大数前4位)
- java笔试题型_JAVA笔试必备题
- Python Itertools
- Nginx + keepalived 实现高可用
- 【前端】相信你会用到的一篇笔记---HTML篇
- 电脑运行很慢怎么办_为什么电脑用久了,就算重新安装系统也会变得很慢?
- 世界读书日 | 技术人不要错过的好书(IT前沿技术)
- latex 双箭头,花体
- 记录自己的CAN学习过程(念念不忘,必有回响)
- android 6.1 app闪退,手机软件闪退怎么办 具体解决方法【图文】
- 前端pc端、手机端适配基本知识
- 中国防静电塑料卷轴市场深度研究分析报告
- PSV 黑商店 pkgj 无法刷新列表 显示HttpError 的解决办法
- 三跨考研浙江大学计算机,浙江大学交互设计考研经历分享(原来跨考这么受欢迎)...
- 痛过,才坚强;傻过,才成长
- Java——设计模式(结构型模式)
- BUUCTF-九连环
热门文章
- 无法打开运行空间池,服务器管理器winrm插件可能已损坏或丢失解决办法
- 图(Graph)-最短路径
- mysql wait millis_sql 连接数不释放 ,Druid异常:wait millis 40000, active 600, maxActive 600...
- 债券研究系列之三——债券指数
- 178.分数排名(数据库)
- 通过sendmail服务器配置域外转发到qq邮箱
- android wifi 网桥,史上最全无线网桥知识,收藏这一篇就够了!
- 第10章第14节:使用iSlide的图表库往幻灯片中插入精美的图表 [PowerPoint精美幻灯片实战教程]
- 初识结构体、分支及循环
- 免费版CDH环境搭建(附带免费下载地址)