./configure: error: SSL modules require the OpenSSL library

2015-5-19 杜世伟 Linux

make: *** No rule to make target `build', needed by `default'. Stop. ./configure: error: SSL modules require the OpenSSL library. You can either do not enable the modules, or install the OpenSSL library into the system, or build the OpenSSL library statically from the source

with nginx by using --with-openssl= option.


yum -y install openssl openssl-devel

标签: openssl openssl-devel

评论(0) 浏览(4300)

用Linux命令行生成随机密码的十种方法

2014-6-7 杜世伟 Linux

用Linux命令行生成随机密码的十种方法

1、这种方法使用SHA算法来加密日期,并输出结果的前32个字符:

date +%s | sha256sum | base64 | head -c 32 ; echo
2、这种方法使用内嵌的/dev/urandom,并过滤掉那些日常不怎么使用的字符。这里也只输出结果的前32个字符:

< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-32};echo;
3、 这种方法使用openssl的随机函数。如果你的系统也许没有安装openssl,你可以尝试其它九种方法或自己安装openssl。

openssl rand -base64 32
4、 这种方法类似于之前的urandom,但它是反向工作的。Bash的功能是非常强大的!

阅读全文>>

标签: linux openssl passwd sha

评论(0) 浏览(18417)

Powered by emlog 沪ICP备2023034538号-1