goahead官方下載源碼:
http://embedthis.com/goahead/download.html
解壓並安裝
$tar -xvf goahead-4.0.0-src.tgz
$ cd goahead-4.0.0
$ make
$ sudo make install
安裝時出現如下錯誤:
goahead: 0: Unable to read key self.key
goahead: 0: Cannot initialize server. Exiting.
此時可執行:
$ cd goahead-4.0.0/src
$ cp self.crt self.key /etc/goahead/
將self.crt和self.key文件拷貝到/etc/goahead目錄。
然後運行goadhead
$ sudo goahead -v --home /etc/goahead /var/www/goahead
默認端口爲80 ,也可以自定義端口。
打開瀏覽器 輸入: http://127.0.0.1/index.html
之後構建goform
未完待續。。。。