一.下载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

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-28
  • 2021-05-27
  • 2022-02-09
  • 2021-09-29
  • 2022-12-23
  • 2021-07-31
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-08
  • 2021-10-09
  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案