1

启动 apache httpd 提示输入密码字符串文本,如下所示

$ echo -n "mypassword" | /web/apps/perf/apache/2.4.46/https-model/bin/apachectl -k start
Apache/2.4.46 mod_ssl (Pass Phrase Dialog)
Some of your private key files are encrypted for security reasons.
In order to read them you have to provide the pass phrases.

Private key model.com:443:0 (/web/apps/perf/apache/2.4.46/https-model/ssl/model.key)
Enter pass phrase:

我尝试了以下选项以非吸引人的方式传递密码,但它们都不起作用。

  1. echo -n "mypassword" | /web/apps/perf/apache/2.4.46/https-model/bin/apachectl -k start
  2. echo "mypassword" >> /web/apps/perf/apache/2.4.46/https-model/bin/apachectl -k start
  3. /web/apps/perf/apache/2.4.46/https-model/bin/apachectl -k start << echo "mypassword"
  4. /web/apps/perf/apache/2.4.46/https-model/bin/apachectl -k start << cat mypasswordfile(其中 mypasswordfile 是具有密码的文件。)

你能建议吗?

4

0 回答 0