Nginx
共 3 篇文章
使用nginx搭建文件下载服务器
nginx.conf配置如下: user root; worker_processes 8; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; tcp_nopush on; keepalive_timeout 65; server { listen 8009; server_name localhost; autoindex on; autoindex_exact_size off; autoindex_local…
2015-11-20 10:55 · Nginx
安装Nginx
首先是依赖关系 1. gzip module requires zlib library 是提供数据压缩用的函式库 下载地址http://zlib.net/ 或者直接http://zlib.net/zlib-1.2.7.tar.gz 2. rewrite module requires pcre library pcre (Perl Compatible Regular Expressions) 包括 perl 兼容的正规表达式库 下载地址http://pcre.org/ 可以查看相关现在地址。或者直接 ftp://ftp.csx.cam.ac.uk/pub/software/program…
2014-10-30 20:48 · Nginx
Nginx安装部署
Nginx ("engine x") 是一个高性能的 HTTP 和 反向代理 服务器,也是一个 IMAP/POP3/SMTP 代理服务器。 Nginx 是由 Igor Sysoev 为俄罗斯访问量第二的 Rambler.ru 站点开发的,第一个公开版本0.1.0发布于2004年10月4日。其将源代码以类BSD许可证的形式发布,因它的稳定性、丰富的功能集、示例配置文件和低系统资源的消耗而闻名。2011年6月1日,nginx 1.0.4发布。 一般我们都需要先装pcre, zlib,前者为了重写rewrite,后者为了gzip压缩。 1.选定源码目录 选定目录 /usr/local/ cd /u…
2014-10-30 20:47 · Nginx