什么是PHPPHP和ASP、JAVA等一样,是一门常用于Web编程的语言,它能运行在Windows、Linux等绝大多数操作系统环境中,常与开源免费的Web服务Apache和数据库Mysql配合使用于Linux平台上(简称LAMP),具有最高的性价比,号称“Web架构黄金组合”。为什么要学习PHP1...
分类:
Web程序 时间:
2014-11-29 15:50:48
阅读次数:
157
1.安装前的准备工作yum-yinstallgccyum-yinstallgcc-c++yum-yinstallmake查看开放端口号,是否有服务已经安装并启动(80、3306、11211等)netstat-ntl关闭SELinuxgetenforce(查看selinux是否启动)setenforce0(临时关闭selinux)vim/etc/selinux/configSELINUX=disabled修改后保存..
分类:
其他好文 时间:
2014-11-29 07:18:41
阅读次数:
164
接上节, 上节只有响应---cout, 本节获取地址栏的QUERY_STRING, 然后响应.一. req_resp.cpp.#include #include #include #include "fcgio.h"#include "fcgi_config.h"using namespace st...
分类:
Web程序 时间:
2014-11-27 20:21:29
阅读次数:
158
在fast-cgi源码的examples文件夹下有很多例子, 下面给出echo例子, 编译运行方法同上几节.fast-cgi的API google之.http://fossies.org/dox/fcgi-2.4.0/fcgiapp_8h.html#a32f6950798054a70404ce24c...
分类:
Web程序 时间:
2014-11-27 20:14:21
阅读次数:
359
首先说说LAMP:LAMP(Linux- Apache-MySQL-PHP)架构是目前国际流行的Web框架,该框架包括:Linux操作系统,Apache网络服务器,MySQL数据库,PHP编程语言,所有组成产品均是开源软件,是国际上成熟的架构框架,很多流行的商业应用都是采取这个架构,和 Java/J...
分类:
数据库 时间:
2014-11-27 16:07:18
阅读次数:
429
接上几节, 本节写有请求和响应的demo.一. myecho.cpp如下:#include #include #include "fcgio.h"#include "fcgi_config.h"using namespace std;int main (void){ int count = 0...
分类:
Web程序 时间:
2014-11-27 15:57:41
阅读次数:
207
centosminiinstall1.本地yum配置cd/etc/yum.repos.d/mvCentOS-Base.repoCentOS-Base.repo.bakviCentOS-Media.repo 将"enabled=0"改为"enabled=1" 尽量不要修改"baseurl=file:///media/CentOS/ file:///media/cdrom/ file:///media/cdrecorder/ ......."中的内容创建光盘..
分类:
其他好文 时间:
2014-11-27 06:58:19
阅读次数:
218
一.spawn_fastcgi的安装、部署与配置. 1. 下载spawn_fastcgi. https://github.com/lighttpd/spawn-fcgi 这里使用的是1.6.3的版本https://github.com/lighttpd/spawn-fcgi/release...
分类:
Web程序 时间:
2014-11-27 00:12:48
阅读次数:
321
源码安装最后老是有点报错,还是yum简单,,,。。。。。1首先查看下系统是否已经安装了apache[root@cc/]#rpm-qa|grephttpdhttpd-tools-2.2.15-29.el6.centos.x86_64httpd-2.2.15-29.el6.centos.x86_64删除系统自带的。[root@cc/]#rpm-e--nodepshttpd-tools-2.2.15-29.el6.cent..
分类:
其他好文 时间:
2014-11-26 19:21:57
阅读次数:
193