zoukankan      html  css  js  c++  java
  • Centos6 Ngnix和fastcgi搭建

    一.下载Nginx 

    依赖pcre,zlib,openssl

    下载解压包,解压后进入

    ./configue

    make

    make install

    默认安装到/usr/local/ngnix

    可执行文件在/usr/local/ngnix/sbin中

    ngnix执行可选项:

            -c </path/to/config> 为 Nginx 指定一个配置文件,来代替缺省的。不输入则使用默认的配置文件。
            -t 不运行,而仅仅测试配置文件。nginx 将检查配置文件的语法的正确性,并尝试打开配置文件中所引用到的文件。
            -v 显示 nginx 的版本。
            -V 显示 nginx 的版本,编译器版本和配置参数。

    1.1检查配置文件

            sudo ./nginx -t
            nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
            nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful

    1.2 启动 - 默认和特殊

            /usr/local/nginx/sbin/nginx (默认启动方式)

            /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf (指定配置文件启动)

    二、安装spawn_fastcgi

     spawn_fastcgi下载地址  https://github.com/lighttpd/spawn-fcgi 

    build过程

    If ./configure is missing, run ./autogen.sh.
    
      ./configure
      make
      make install

    可执行文件在/usr/local/bin/spawn-fcgi

  • 相关阅读:
    算法-在字符串中删除特定的字符或字符串
    Linux 下的7种文件类型
    TCP/IP协议、三次握手、四次挥手
    8、VUE自定义组件
    7、VUE事件
    6、VUE指令
    Redis高级功能-1、高并发基本概述
    5、插值
    4、VUE生命周期
    3、Vue实例的属性
  • 原文地址:https://www.cnblogs.com/dj0325/p/9185564.html
Copyright © 2011-2022 走看看