2016-08-08
Apache官方提供的 Apache for Windows 只有 Win32 版,沒有 Win64版
http://archive.apache.org/dist/httpd/binaries/win32/
而且目前只有到 Apache 2.2.x 版,沒有 2.4.x 版
2.2.x 版只到 2.2.25,沒到 2.2.31 版
基本上,個人不會很贊成把 Apache Httpd Web Server 安裝到 MS-Windows 上 (除非有特殊考量)
- 因為以前測試 for Windows 版尚未有自動下載更新版本的能力 (不知是否未來會有),安全性可能較差,CentOS 可以用 yum + 排程做自動更新
- for Windows 版本更新比 for Linux 慢,弱點修補慢,安全性可能較差
- for Win64 不是 Apache 官方提供的
Downloading Apache for Windows
https://httpd.apache.org/docs/current/platform/windows.html
提供5個網站下載 Apache for Windows
- ApacheHaus
- Apache Lounge
- BitNami WAMP Stack
- WampServer
- XAMPP
敝人去下載了
Apache 2.4.23 VC14httpd-2.4.23-x86-vc14.zip
安裝
把 httpd-2.4.23-x86-vc14.zip 解壓縮,把 Apache24 子目錄拷貝到 C:\
執行 httpd.exe -k install 安裝
httpd.exe 其他參數
c:\Apache24\conf\extra>httpd /?
Usage: httpd [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-w] [-k start|restart|stop|shutdown] [-n service_name]
[-k install|config|uninstall] [-n service_name]
[-v] [-V] [-h] [-l] [-L] [-t] [-T] [-S] [-X]
Options:
-D name : define a name for use in <IfDefine name> directives
-d directory : specify an alternate initial ServerRoot
-f file : specify an alternate ServerConfigFile
-C "directive" : process directive before reading config files
-c "directive" : process directive after reading config files
-n name : set service name and use its ServerConfigFile and ServerR
oot
-k start : tell Apache to start
-k restart : tell running Apache to do a graceful restart
-k stop|shutdown : tell running Apache to shutdown
-k install : install an Apache service
-k config : change startup Options of an Apache service
-k uninstall : uninstall an Apache service
-w : hold open the console window on error
-e level : show startup errors of level (see LogLevel)
-E file : log startup errors to file
-v : show version number
-V : show compile settings
-h : list available command line options (this page)
-l : list compiled in modules
-L : list available configuration directives
-t -D DUMP_VHOSTS : show parsed vhost settings
-t -D DUMP_RUN_CFG : show parsed run settings
-S : a synonym for -t -D DUMP_VHOSTS -D DUMP_RUN_CFG
-t -D DUMP_MODULES : show all loaded modules
-M : a synonym for -t -D DUMP_MODULES
-t -D DUMP_INCLUDES: show all included configuration files
-t : run syntax check for config files
-T : start without DocumentRoot(s) check
-X : debug mode (only one worker, do not detach)
c:\Apache24\conf\extra>
相關
Downloading Apache for Windows
http://httpd.apache.org/docs/current/platform/windows.html#down
Apache Haus Downloads
http://www.apachehaus.com/cgi-bin/download.plx
Apache Lounge
https://www.apachelounge.com/download/
Apache HTTP Server Version 2.4 SSL/TLS
https://httpd.apache.org/docs/2.4/ssl/ssl_faq.html
OPENSSL常用語法彙整
https://www.sslbuyer.com/index.php?option=com_content&view=article&id=129:openssl-command-intro&catid=25&Itemid=2595
沒有留言:
張貼留言