解决方案有2种 1:去掉/usr/local/bin/apachectl startssl启动的pass phrase,用空pass phrase启动apache (while preserving the original file): $ cp server.key server.key.org $ openssl rsa -in server.key.org -out server.key 确认server.key 文件为root可读 $ chmod 400 server.key 参考http://www.chinaunix.net/jh/13/599604.html 2:编辑 vi /usr/local/apache2/conf/extra/httpd-ssl.conf 注释SSLPassPhraseDialog builtin 在后添加 SSLPassPhraseDialog exec:/usr/local/apache2/conf/apache_pass.sh vi /usr/local/apache2/conf/apache_pass.sh #!/bin/sh echo "密码" chmod +x /usr/local/apache2/conf/apache_pass.sh 然后重启apache [root@localhost conf]# /home/apache2/bin/apachectl start [root@localhost conf]# 然后从起服务器,就可以运行了 |