cgi路径配置:
在route.txt文件里的route uri=/cgi-bin dir=根路径 handler=cgi
设置根路径,最终的路径为:根路径/cgi-bin,如设置根路径为/mnt/nfs/goheah12/,则cgi文件存放的路径为/mnt/nfs/goheah12/cgi-bin。
网页文件创建,命名为update.html内容如下:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"