Web 服务器配置
2023-09-14 09:12:06 时间
Web 服务器配置
在您进行 CGI 编程之前,请确保您的 Web 服务器支持 CGI,并已配置成可以处理 CGI 程序。所有由 HTTP 服务器执行的 CGI 程序,都必须在预配置的目录中。该目录称为 CGI 目录,按照惯例命名为 /var/www/cgi-bin。虽然 CGI 文件是 C++ 可执行文件,但是按照惯例它的扩展名是 .cgi。
默认情况下,Apache Web 服务器会配置在 /var/www/cgi-bin 中运行 CGI 程序。
1 #include <iostream> 2 #include <string.h> 3 /* run this program using the console pauser or add your own getch, system("pause") or input loop */ 4 using namespace std; 5 string name[50],num[50]; 6 int n; 7 int main(int argc, char** argv) { 8 void input_data(); 9 void search (string find_name); 10 string find_name; 11 cout <<"please input number of this class:"; 12 cin >>n; 13 input_data(); 14 cout <<"please input name you want find:"; 15 cin >>find_name; 16 search(find_name); 17 return 0; 18 } 19 20 void input_data() 21 { 22 int i; 23 for(i=0;i<n;i++) 24 { 25 cout <<"input name and number of student"<<i+1<<":"; 26 cin>>name[i]>>num[i]; 27 } 28 } 29 30 void search(string find_name) 31 { 32 int i; 33 bool flag=false; 34 for(i=0;i<n;i++) 35 if(name[i]==find_name) 36 { 37 cout <<name[i]<<"has been found,his number is"<<num[i]<<endl; 38 flag=true; 39 break; 40 } 41 if(flag==false)cout<<"can't find this name"; 42 }
相关文章
- 客户端和服务器 配置搭建
- 基于gitosis的Git云端服务器配置
- IIS7错误:“Web服务器被配置为不列出此目录的内容”的解决办法
- [OTA]制作OTA短信来配置手机与服务器同步
- Linux 配置rdate时间服务器方法
- jenkins 持续集成和交付 —— 邮箱服务器配置(九)
- oracle10g data guard 主备数据库配置参数说明
- scala maven完整pom文件:编译、打包插件配置等
- 配置并运行Activiti Explorer
- Atitit 前端测试最简化内嵌web服务器 php 与node.js 目录 1.1. php内置Web Server1 1.2. Node的2 Node的比较麻烦些。。Php更加简单
- atitit.动态加载数据库配置in orm hibernate mybatis
- SRS流媒体服务器低延时配置分析
- ubuntu服务器配置python笔记(详细步骤
- 如何配置svn服务器
- 005-spring cache-原理、缓存AOP机制、Spring Cache抽象集成机制、springboot自动配置机制
- linux服务器的所有服务web/dns/dhcp/vsftp-nfs-samba的配置
- 玩转华为ENSP模拟器系列 | 配置静态LSP示例
- lumen发送邮件配置
- 【云服务器 ECS 实战】专有网络 VPC、弹性网卡的概述与配置
- Nginx搭建与配置:打造高性能Web服务器和反向代理
- 【Linux入门篇】操作系统安装、网络配置
- 2023年咸阳市职业院校技能大赛网络搭建与应用赛项《服务器配置及应用竞赛报告单》
- apache 同一台服务器配置多个网站