zoukankan      html  css  js  c++  java
  • centos 7 编译安装nginx

    安装nginx也需要很多依赖包支持,但因为我们安装php的时候已经安装了大部分依赖包,所以只需要安装缺失的几个就行

    yum install gcc-c++
    

     下载nginx并解压

    wget http://nginx.org/download/nginx-1.15.8.tar.gz
    tar -zxvf nginx-1.15.8.tar.gz
    cd nginx-1.15.8

     然后配置,一般都配置在/usr/local/nginx

    ./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_gzip_static_module --with-http_realip_module --with-http_sub_module --with-http_ssl_module
    

     再编译安装

    make && make install
    

     运行nginx

    /usr/local/nginx/sbin/nginx
    

     报没有www用户组

    创建www用户

    /usr/sbin/groupadd -f www
    /usr/sbin/useradd -g www www
    

     再次启动nginx,然后查看进程

    nginx已经启动,安装成功。

  • 相关阅读:
    hinge loss
    KL散度
    pygame 学习
    pytorch 反向传播
    在线画数学函数图
    recover deleted files
    98个关键点的人脸
    Pytorch详解BCELoss和BCEWithLogitsLoss
    one hot vector
    Effective C++
  • 原文地址:https://www.cnblogs.com/sbman/p/7299981.html
Copyright © 2011-2022 走看看