亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
最近訪問(wèn)板塊 發(fā)新帖
查看: 6331 | 回復(fù): 7
打印 上一主題 下一主題

apache 重啟 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2007-01-30 02:12 |只看該作者 |倒序?yàn)g覽
10可用積分
在ubutu和debian下的apache2是不是默認(rèn)設(shè)置會(huì)一周重啟一次阿?
一般情況是沒(méi)有問(wèn)題的,但是設(shè)置了ssl以后,重啟要輸入密碼,這會(huì)導(dǎo)致apache沒(méi)法重啟,
什么地方可以取消這個(gè)重啟阿?
我看了cron里(weekly, dairly)都沒(méi)有任務(wù)要求apache重啟阿

謝謝大家?guī)兔?/td>

最佳答案

查看完整內(nèi)容

對(duì),然后你是否已經(jīng)參考該篇 faq 重制一份不用 pass phrase 的憑證 ?http://www.modssl.org/docs/2.8/ssl_faq.html#ToC31--

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2007-01-30 02:12 |只看該作者
原帖由 tiw 于 2007-1-30 02:45 發(fā)表于 3樓  
是 pass phrase,不知道怎么翻譯
在apache的log中出錯(cuò)信息是:
  Init: Unable to read pass phrase
  SSL Library Error: 218710120 error:0D094068:asn1 encoding routines:d2i_ASN1_SET:bad tag
  SSL ...


對(duì),然后你是否已經(jīng)參考該篇 faq 重制一份不用 pass phrase 的憑證 ?

http://www.modssl.org/docs/2.8/ssl_faq.html#ToC31

--

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2007-01-30 02:24 |只看該作者
原帖由 tiw 于 2007-1-30 02:12 發(fā)表于 1樓  
在ubutu和debian下的apache2是不是默認(rèn)設(shè)置會(huì)一周重啟一次阿?
一般情況是沒(méi)有問(wèn)題的,但是設(shè)置了ssl以后,重啟要輸入密碼,這會(huì)導(dǎo)致apache沒(méi)法重啟,
什么地方可以取消這個(gè)重啟阿?
我看了cron里(weekly,  ...


ssl 要輸入密碼 ? 那表示你制作憑證流程不大對(duì),最后沒(méi)有把密碼去掉轉(zhuǎn)換處理。

請(qǐng)閱讀:

http://www.modssl.org/docs/2.8/ssl_faq.html#ToC31

--

論壇徽章:
0
4 [報(bào)告]
發(fā)表于 2007-01-30 02:45 |只看該作者
是 pass phrase,不知道怎么翻譯
在apache的log中出錯(cuò)信息是:
[Sun Jan 28 06:25:51 2007] [error] Init: Unable to read pass phrase [Hint: key introduced or changed before restart?]
[Sun Jan 28 06:25:51 2007] [error] SSL Library Error: 218710120 error:0D094068:asn1 encoding routines:d2i_ASN1_SET:bad tag
[Sun Jan 28 06:25:51 2007] [error] SSL Library Error: 218529960 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Sun Jan 28 06:25:51 2007] [error] SSL Library Error: 218595386 error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error
[Sun Jan 28 06:25:51 2007] [error] SSL Library Error: 218734605 error:0D09A00D:asn1 encoding routines:d2i_PrivateKey:ASN1 lib

論壇徽章:
1
技術(shù)圖書徽章
日期:2013-12-05 23:25:45
5 [報(bào)告]
發(fā)表于 2007-01-30 09:10 |只看該作者
啟動(dòng)密碼:
http://w.yi.org/ftp/FAPM/apache/Apache2/zh/ssl/ssl_faq.html
How can I get rid of the pass-phrase dialog at Apache startup time?

Apache手冊(cè)說(shuō)了如和具體操作,只是很多人不看。

另外,你怎么知道自動(dòng)重啟的?




  1. How can I get rid of the pass-phrase dialog at Apache startup time?
  2. The reason why this dialog pops up at startup and every re-start is that the RSA private key inside your server.key file is stored in encrypted format for security reasons. The pass-phrase is needed to be able to read and parse this file. When you can be sure that your server is secure enough you perform two steps:

  3. Remove the encryption from the RSA private key (while preserving the original file):

  4. $ cp server.key server.key.org
  5. $ openssl rsa -in server.key.org -out server.key


  6. Make sure the server.key file is now only readable by root:

  7. $ chmod 400 server.key


  8. Now server.key will contain an unencrypted copy of the key. If you point your server at this file it will not prompt you for a pass-phrase. HOWEVER, if anyone gets this key they will be able to impersonate you on the net. PLEASE make sure that the permissions on that file are really such that only root or the web server user can read it (preferably get your web server to start as root but run as another server, and have the key readable only by root).

  9. As an alternative approach you can use the ``SSLPassPhraseDialog exec:/path/to/program'' facility. But keep in mind that this is neither more nor less secure, of course.

復(fù)制代碼

論壇徽章:
0
6 [報(bào)告]
發(fā)表于 2007-01-30 16:07 |只看該作者

回復(fù) #1 tiw 的帖子

導(dǎo)致apache重啟的原因是 logrotate

這個(gè)服務(wù)是定期備份、壓縮某些服務(wù)的日志文件,這個(gè)需要先關(guān)閉服務(wù),而apache的策略是每周備份,有52個(gè)(即一年)。

在Debian系統(tǒng)中,大部分服務(wù)都支持這個(gè),比如syslog 是每天都會(huì)備份的。

更具體的信息,請(qǐng)查看 /etc/logrotate.d/ 的目錄。

論壇徽章:
0
7 [報(bào)告]
發(fā)表于 2007-01-30 16:56 |只看該作者
多謝kenduest 、HonestQiao  幫我解決了問(wèn)題
更多謝achaoge 讓我知道了原因

to HonestQiao:
我知道apache重啟是因?yàn),每周apache都當(dāng)?shù)簦鲥e(cuò)如上面我貼的出錯(cuò)信息

論壇徽章:
0
8 [報(bào)告]
發(fā)表于 2007-01-30 16:56 |只看該作者
多謝kenduest 、HonestQiao  幫我解決了問(wèn)題
更多謝achaoge 讓我知道了原因

to HonestQiao:
我知道apache重啟是因?yàn),每周apache都當(dāng)?shù)簦鲥e(cuò)如上面我貼的出錯(cuò)信息
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過(guò)ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP