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
未完待续。。。。