• ubuntu 安装 nginx


    1、nginx 安装需要4个软件(openssl-fips-2.0.10.tar.gz、zlib-1.2.11.tar.gz、pcre-8.44.tar.gz、nginx-1.18.0.tar.gz)

       (1)依次下载、安装

         http://www.openssl.org/source/openssl-fips-2.0.10.tar.gz

         http://zlib.net/zlib-1.2.11.tar.gz

         https://ftp.pcre.org/pub/pcre/pcre-8.44.tar.gz

         http://nginx.org/download/nginx-1.18.0.tar.gz

         (2) openssl安装

        tar -xzvf openssl-fips-2.0.10.tar.gz
    cd openssl-fips-2.0.10
    ./config && make && make install
    (3) pcre安装
      tar -xzvf pcre-8.44.tar.gz
      cd pcre-8.44
    ./configure && make && make install

         (4)zlib安装

              tar -xzvf zlib-1.2.11.tar.gz

              cd zlib-1.2.11

              ./configure && make && make install

      (5) nginx安装

       tar -xzvf nginx-1.18.0.tar.gz
    cd nginx-1.10.2
    ./configure && make && make install

    2、配置参照 我的另一篇博客 windows 下配置 ubuntu,地址 https://www.cnblogs.com/spqin/p/12996576.html
      备注:使用 whereis nginx 查看 nginx的安装位置,再进行配置

    3、启动命令

    /usr/local/nginx/sbin/nginx


    学习备忘,节约时间。





  • 相关阅读:
    jquery height
    正则表达式的一点奇怪
    this和call
    ajax views
    史上变态的模块
    在php中有什么用
    localhost访问不了
    $.extend abc
    $.extend
    和人沟通的一个要点
  • 原文地址:https://www.cnblogs.com/spqin/p/13106737.html
Copyright © 2020-2023  润新知