mysql_ssl_rsa_setup在哪里可以获取OpenSSL文件? [英] Where does mysql_ssl_rsa_setup get OpenSSL files?
问题描述
我从源代码安装了openssl和mysql,两者都保留了安装的默认路径(/ usr / local / openssl for openssl [我实际上将其从ssl重命名为openssl以查看是否是问题],/ usr / local / mysql for mysql)。
docs说它从PATH环境变量获取路径,但没有选项可以在命令行中指定它。什么是默认值?怎么改呢?我看到你可以修改/ etc / environment来添加PATH,但默认情况下文件为空。
4.4.5 mysql_ssl_rsa_setup - 创建SSL / RSA文件, mysql_ssl_rsa_setup
使用 openssl
命令行工具:
注意
mysql_ssl_rsa_setup使用openssl命令,因此它的使用在您的计算机上安装OpenSSL时,需要
。
什么是默认值?
OpenSSL的默认安装位置为 / usr / local / ssl
如何更改? / p>
配置库时,请使用 - openssldir
。另请参阅OpenSSL维基上的编译和安装。
您应该 在 / usr / bin $中安装OpenSSL c $ c>(以及
/ usr / lib
中的库)。它创建了太多的问题。
相反,让库安装在 / usr / local / ssl
中。那么你应该能够创建一个位于 / usr / local / bin / openssl
的shell脚本,执行以下操作:
$ cat / usr / local / bin / openssl
#!/ usr / bin / env bash
LD_LIBRARY_PATH = / usr / local / ssl / lib:$ LD_LIBRARY_PATH; / usr / local / ssl / bin / openssl$ @
确保 chmod a + x / usr / local / bin / openssl
。
验证使用的OpenSSL工具:
$ which openssl
/ usr / local / bin / openssl
如有需要,请将 / usr / local / bin
添加到您的路径:
$ cat〜/ .bash_profile
export PS1 =\\h:\\\ \\ W $
export UMASK = 0022
export EDITOR = emacs
export PATH =/ usr / local / bin:/ usr / local / sbin:/ bin: sbin:/ usr / bin:/ usr / sbin
...
Getting "openssl not installed on this system" when running mysql_ssl_rsa_setup.
I installed openssl and mysql from source, both times keeping the default paths for installation (/usr/local/openssl for openssl [I actually renamed it to openssl from ssl to see if that was the problem], /usr/local/mysql for mysql).
The docs say it gets the path from the PATH environment variable, but there's no option to specify it in the command line. What is the default? How to change it? I have seen that you can modify /etc/environment to add PATH there, but the file is empty by default.
According to 4.4.5 mysql_ssl_rsa_setup — Create SSL/RSA Files, mysql_ssl_rsa_setup
uses the openssl
command line tool:
Note
mysql_ssl_rsa_setup uses the openssl command, so its use is contingent on having OpenSSL installed on your machine.
What is the default?
OpenSSL's default installation location is /usr/local/ssl
How to change it?
Use --openssldir
when you configure the library. Also see Compilation and Installation on the OpenSSL wiki.
You should not install OpenSSL in /usr/bin
(and the libraries in /usr/lib
). Its creates too many problems.
Instead, let the library install itself in /usr/local/ssl
. Then you should be able to create a shell script located at /usr/local/bin/openssl
that performs the following:
$ cat /usr/local/bin/openssl
#!/usr/bin/env bash
LD_LIBRARY_PATH=/usr/local/ssl/lib:$LD_LIBRARY_PATH; /usr/local/ssl/bin/openssl "$@"
Be sure to chmod a+x /usr/local/bin/openssl
.
You can verify the OpenSSL tool being used with:
$ which openssl
/usr/local/bin/openssl
If needed, add /usr/local/bin
to your PATH:
$ cat ~/.bash_profile
export PS1="\\h:\\W$ "
export UMASK=0022
export EDITOR=emacs
export PATH="/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin"
...
这篇关于mysql_ssl_rsa_setup在哪里可以获取OpenSSL文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!