Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4242763
  • 博文数量: 1148
  • 博客积分: 25453
  • 博客等级: 上将
  • 技术积分: 11949
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-06 21:14
文章分类

全部博文(1148)

文章存档

2012年(15)

2011年(1078)

2010年(58)

分类: Python/Ruby

2011-06-27 00:00:00

建立方法: http://blog.ednchina.com/longhaihai/255858/message.aspx

bao.conf 配置文件 : boa_conf.rar  

我下载的也是 13版本,最新的是14版本。
在建立过程中有很多错误,网上都有解决问题

说说自己碰到的几个 难解决的问题

1. Your client does not have permission to get URL /cgi-bin/ from this server.

   设置权限, 将 cgi_test.cgi
                chmod  777 cgi_test.cgi

2. 访问输入 应该这样
  


测试代码: cgi_test.rar  
编译: gcc cgi_test.c -o cgi_test.cgi
  1. #include <stdio.h>
  2. #include <unistd.h>

  3. void main()
  4. {
  5.     printf("Content-type: text/html\n\n");
  6.     //注意这里要两个换行符,这是HTML的规定
  7.     printf("\n");
  8.     printf("CGI TEST");
  9.     printf("");
  10.     printf("

    BOA CGI TEST

    "
    );
  11.     printf("

    yuweixian

    "
    );
  12.     printf("Hello\n");
  13.     printf(" ");
  14. }









阅读(928) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~