li
  当前位置:主页 > 基础知识 > 文章内容
li
高性能的 HTTP 和 反向代理 服务器Nginx
来源: www.ixdba.net  作者: IXDBA.NET官方    时间:2008-06-30   阅读:12  
本文章共4204字,分3页,当前第1页,快速翻页:
 

Nginx ("engine x") 是一个高性能的 HTTP 反向代理 服务器,也是一个 IMAP/POP3/SMTP 代理服务器。 Nginx 是由 Igor Sysoev 为俄罗斯访问量第二的 Rambler.ru 站点开发的,它已经在该站点运行超过两年半了。Igor 将源代码以类BSD许可证的形式发布。尽管还是测试版,但是,Nginx 已经因为它的稳定性、丰富的功能集、示例配置文件和低系统资源的消耗而闻名了.

IXDBA.NET技术社区

Nginx 是一个轻量级的 http server,也可作为 proxy server 使用,由一个俄罗斯哥们儿开发并在一些高负载的站点上跑了2年多。许多人用它来搭建 Rails 应用,有的评测性能已经超过 lightyNginx 能快速响应静态页面的请求,支持 fastcgisslvirtual hostrewriteHTTP Basic AuthGzip 等,功能比较完备,配置文件也是类似 lighty 那种很简介的形式。
Nginx
PHP 一起应用应该也是个不错的搭配.

nginx+tomcat来代替apache+jk+tomcat 

#wget http://sysoev.ru/nginx/nginx-0.6.26.tar.gz 
#tar zxvf nginx-0.6.26.tar.gz 
#cd nginx-0.6.26 
#[root@test nginx-0.6.26]# ./configure  
./configure: error: the HTTP rewrite module requires the PCRE library. 
You can either disable the module by using --without-http_rewrite_module 
option, or install the PCRE library into the system, or build the PCRE library 
statically from the source with nginx by using --with-pcre=<path> option. 
[root@test nginx-0.6.26]# rpm -qa|grep pcre 
pcre-6.6-1.1 
[root@test suantop]# rpm -ivh pcre-devel-6.6-1.1.i386.rpm  
warning: pcre-devel-6.6-1.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186 
Preparing...   ################################## [100%] 
   1:pcre-devel   ################################# [100%] 

[root@test suantop]# rpm -qa|grep pcre 
pcre-6.6-1.1 
pcre-devel-6.6-1.1 

等再次执行./configure 
[root@test nginx-0.6.26]# ./configure --with-http_stub_status_module 
[root@test nginx-0.6.26]# make 
[root@test nginx-0.6.26]# make install 
修改配置文件 /usr/local/nginx/conf/nginx.conf 
给出一些主要更改的地方 
user  nobody nobody; 
worker_processes  2; 
error_log  logs/error.log  notice; 
pid        logs/nginx.pid; 
events { 
    worker_connections  1024; 

http { 
    include       mime.types; 
    default_type  application/octet-stream; 
    include    /usr/local/nginx/conf/proxy.conf; 
#
上面这行是增加的 
    server { 



阅读更多内容1 · 2 · 3 · 下一页>>


  上一篇: 无法打开网站网页,但是QQ可以登录...   下一篇: apache下限制并发数、IP、带宽的...
li
 §相关评论  
 热点文章

·RewriteRule重写规则的语法:A
·apache配置文件httpd.conf参数
·Apache的配置文件http.conf参数
·HTTP协议中POST、GET、HEAD等参
·XAMPP命令之LAMPP
·Linux中安装XAMPP(LAMPP)服务器
·网页禁止右键、禁止复制等代码
·java.lang.OutOfMemoryError:
·Mysql数据库在Linux系统常用命
·mysql问答:MySQL数据库连接过多
·MySQL数据库中Show命令的用法
li
 编辑推荐
·RewriteRule重写规则的语法:A
·apache配置文件httpd.conf参数
·Apache的配置文件http.conf参数
·HTTP协议中POST、GET、HEAD等参
·XAMPP命令之LAMPP
·Linux中安装XAMPP(LAMPP)服务器
·网页禁止右键、禁止复制等代码
·java.lang.OutOfMemoryError:
·Mysql数据库在Linux系统常用命
·mysql问答:MySQL数据库连接过多
·MySQL数据库中Show命令的用法
li
 相关篇章
·无法打开网站网页,但是QQ可以登录...
·IBM DB2 9数据库恢复原理介绍
·MySQL数据库的基本使用指南
·利用linux rpm方式安装Mysql
·mysql数据库源码安装详解
·MySQL导入导出工具mysqlimport用...
·MySQL数据库中Show命令的用法
·mysql问答:MySQL数据库连接过多的...
·Mysql数据库在Linux系统常用命令...
·java.lang.OutOfMemoryError: al...
·apache下限制并发数、IP、带宽的...
·高性能http服务器Nginx,超牛的we...
·Nginx完全教程(必读)
·原创Nginx环境的搭建(支持正则)
·Nginx轻量级的HTTP服务器-理论篇
·Lighttpd+Squid+Apache搭建高效率...
·隐藏Apache,PHP版本和相关基本安...
·Apache Url Rewrite(mod_rewrite...
·apache中并发控制参数prefork理解...
·Apache2的httpd.conf经典翻译
 
li
设为首页 | 关于我们 | 技术服务 | 收藏本站 | 网站地图 | 联系方式 | 本站友情连接