欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
Cygwin
来自开放百科 - 灰狐
(版本间的差异)
第24行: | 第24行: | ||
printf("</head>\n"); | printf("</head>\n"); | ||
printf("<body>\n"); | printf("<body>\n"); | ||
− | printf(" | + | printf("Hello, World\n"); |
printf("</body>\n"); | printf("</body>\n"); | ||
return 0; | return 0; |
2007年2月14日 (三) 16:03的版本
Cygwin is a Linux-like environment for Windows.It consists of two parts:
- A DLL (cygwin1.dll) which acts as a Linux API emulation layer providing substantial Linux API functionality.
- A collection of tools which provide Linux look and feel.
通过 setup.exe 进行 cywin 软件包的安装,其过程非常简单。
Apache and Cygwin
Using Apache with Cygwin - http://httpd.apache.org/docs/1.3/cygwin.html
Lighttpd and Cygwin
cd /etc/lighttpd cp lighttpd.conf.default lighttpd.conf /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
配置 cgi, 请参考 Lighttpd.conf examples
touch hello.c #include <stdio.h> int main(int argc, char *argv[])
{
printf("Content-type: text/html\n\n"); printf("<head>\n"); printf("<title>Hello, World</title>\n"); printf("</head>\n"); printf("<body>\n"); printf("Hello, World\n"); printf("</body>\n"); return 0; } gcc -o hello hello.c cp hello.exe /var/www/cg-bin http://localhost/cgi-bin/hello.exe :)
FastCGI and Cygwin
分享您的观点