zoukankan      html  css  js  c++  java
  • centos nginx

    1.下载  http://nginx.org/en/download.html

    2.解压   tar -zxvf xxxx.tar.gz

    3.安装依赖

    yum install gcc-c++

    yum install pcre-devel

    yum install zlib-devel

    4.安装

    ./configure --prefix=/opt/nginx  --with-http_ssl_module

    or

     sudo ./configure --prefix=/opt/nginx  --with-openssl=/usr/bin/openssl

    sudo make

    sudo make install

    5.服务

    sudo vim /usr/lib/systemd/system/nginx.service
    [Unit]
    Description=The nginx HTTP and reverse proxy server
    After=network.target remote-fs.target nss-lookup.target

    [Service]
    Type=forking
    PIDFile=/opt/nginx/logs/nginx.pid
    ExecStartPre=/usr/bin/rm -f /opt/nginx/logs/nginx.pid
    ExecStartPre=/opt/nginx/sbin/nginx -t
    ExecStart=/opt/nginx/sbin/nginx
    ExecReload=/bin/kill -s HUP $MAINPID
    KillSignal=SIGQUIT
    TimeoutStopSec=5
    KillMode=process
    PrivateTmp=true

    [Install]
    WantedBy=multi-user.target

  • 相关阅读:
    这之后的事。。。
    POJ
    POJ
    博客园的装饰
    高斯消元
    逆序数技巧
    各种小的 dp (精)
    最大区间和变形
    树dp 统计异或值
    dp
  • 原文地址:https://www.cnblogs.com/tttlan/p/10298042.html
Copyright © 2011-2022 走看看