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

  • 相关阅读:
    Unity NGUI实现技能CD效果
    Unity NGUI中Anchor的用法
    Unity 技能按钮触发特效
    Unity NGUI 图集Atlas制作
    Unity NGUI 创建简单的按钮
    Unity 地形
    Unity GUI编程
    Unity 随机数的使用
    linux命令之pssh命令
    MySQL中SQL语句2
  • 原文地址:https://www.cnblogs.com/dj0325/p/9185564.html
Copyright © 2011-2022 走看看