zoukankan      html  css  js  c++  java
  • deepin(linux)系统安装tengine 依赖 openssl-devel

    deepin 系统安装 tengine(阿里版nginx)
    1.官网下载
    http://tengine.taobao.org/download.html
    如:http://tengine.taobao.org/download/tengine-2.3.2.tar.gz
    cd 到自己想把文件放置到的文件夹目录里面

    sudo wget http://tengine.taobao.org/download/tengine‐2.3.2.tar.gz

    解压缩:

    sudo tar ‐xvzf tengine‐2.3.2.tar.gz

    2.检查配置、编译和安装

    cd 到解压后的目录里面执行命令

    ./configure

    经过检查,如果最后提示需 OpenSSL library 如下
    /configure: error: SSL modules require the OpenSSL library.
    You can either do not enable the modules, or install the OpenSSL library
    into the system, or build the OpenSSL library statically from the source
    with nginx by using --with-openssl=<path> option.

     可以通过:sudo apt‐get install libssl‐dev
     安装成功后,再次
     sudo ./configure

    执行编译:

    make

    执行安装:

    make install

    为启动命令添加软引用(命令)

    1 为启动命令添加软引用
    2 ln ‐s /usr/local/nginx/sbin/nginx /usr/local/bin/

    安装成功。

    Nginx的运行命令

    nginx 启动
    nginx -s reload 重新启动
    nginx -s stop 停止
    ps -ef | grep nginx :查看nginx进程是否运行
    netstat -unltp | grep nginx :查看nginx端口监听情况
    备注:-s signal : send signal to a master process: stop, quit, reopen, reload

  • 相关阅读:
    N-Queens
    Pow(x, n)
    Maximum Subarray
    Spiral Matrix
    Jump Game
    Merge Intervals
    Insert Interval
    Length of Last Word
    Spiral Matrix II
    Amazon 面经
  • 原文地址:https://www.cnblogs.com/zhidong123/p/13214813.html
Copyright © 2011-2022 走看看