确保apache加载cgi模块
# mkdir /cgi
#cd /cgi/
# vim index.cgi
# chmod +x index.cgi
# cat index.cgi
#!/bin/bash
echo "Content-type: text/plain"
echo ""
date
echo "login users:"
who
# vim index.cgi
# chmod +x index.cgi
# cat index.cgi
#!/bin/bash
echo "Content-type: text/plain"
echo ""
date
echo "login users:"
who
转载于:https://blog.51cto.com/fengjixuchui/292211