Save this, make it executable (mode 755), and try visiting /cgi-bin/hello.cgi on your Web server.
保存该脚本,使它能够执行(模式为 755),然后尝试访问 Web 服务器上的 /cgi-bin/hello.cgi。
Strictly speaking, only the cgi-bin (/var/www/cgi-bin) and DBM (/var/www/db) directories are absolutely essential, since they hold the script executable and the voting data, respectively.
严格来说,只有 cgi-bin(/var/www/cgi-bin)和 DBM(/var/www/db)目录是绝对必需的,因为它们分别保存了脚本的可执行文件和投票数据。
Files should be in the cgi-bin directory. Only three nonstandard Perl modules are required; the process of installing them is presented in Listing 3 (see the modules' README files for more details).
我们只需要使用3个非标准的Perl模块;安装过程如清单3所示(更详细的信息,请参阅模块的README文件)。
应用推荐