下载此文档

centos6+nginx1.2.7搭建图片缓存服务器.docx


文档分类:IT计算机 | 页数:约9页 举报非法文档有奖
1/9
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/9 下载此文档
文档列表 文档介绍
centos6+ 搭建图片缓存服务器 1. 最小化安装 centos 2. 编译环境前提# yum -y install gcc gcc-c++ make openssl-devel pcre-devel # groupadd -g 80 www # useradd -u 80 -g www -M -s /sbin/nologin — ngx_cache_purge- 3. Nginx 服务端安装# wget http:// nginx .org/download/ nginx - # wget http://labs./files/ngx_cache_purge- # tar zxvf nginx- # tar zxvf ngx_cache_purge- # cd nginx- # ./configure --add-module=../ngx_cache_purge- --prefix=/usr/local/nginx --user=www --group=www --with-http_ssl_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_sub_module && make && make install 4. 开机自启动脚本# vi /etc/ #!/bin/sh ## nginx - this script starts and stops the nginx daemon ## chkconfig: - 85 15 # description: Nginx is an HTTP(S) server, HTTP(S) reverse \ # proxy and IMAP/POP3 proxy server # processname: nginx # config: /etc/nginx/ # config: /etc/sysconfig/nginx # pidfile: /var/run/ # Source function library. . /etc//functions # working configuration. . /etc/work # Check working is up. [ "$NETWORKING" = "no" ] && exit 0 nginx="/usr/local/nginx/sbin/nginx" prog=$(basename $nginx) NGINX_CONF_FILE="/usr/local/nginx/conf/" [ -f /etc/sysconfig/nginx ] && . /etc/sysconfig/nginx lockfile=/var/lock/subsys/nginx start() {[ -x $nginx ] || exit 5 [ -f $NGINX_CONF_FILE ] || exit

centos6+nginx1.2.7搭建图片缓存服务器 来自淘豆网m.daumloan.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数9
  • 收藏数0 收藏
  • 顶次数0
  • 上传人511709291
  • 文件大小0 KB
  • 时间2016-06-18