apache cgi测试
test.cgi
#!/bin/sh
echo "Content-type: text/html"
echo ""
echo "<h1>Hello from a Mac CGI script!</h1>"
echo "<p>Current time is: $(date)</p>"ƒ%
放置目录 /opt/homebrew/Cellar/mapserver/8.4.0_1/bin
http://localhost/cgi-bin/test.cgi
test.cgi
#!/bin/sh
echo "Content-type: text/html"
echo ""
echo "<h1>Hello from a Mac CGI script!</h1>"
echo "<p>Current time is: $(date)</p>"ƒ%
放置目录 /opt/homebrew/Cellar/mapserver/8.4.0_1/bin
http://localhost/cgi-bin/test.cgi