天玑阁

vuePress-theme-reco gqsu    2018 - 2021
天玑阁 天玑阁

Choose mode

  • dark
  • auto
  • light
主页
时间轴
文档
  • vuepress-reco
分类
  • elasticsearch
  • Hadoop
  • life
  • linux
  • note
  • Apache James
  • collection
  • Dubbo
  • git
  • jwt
  • k8s
  • mongodb
  • ali
  • netty-socketio
  • nginx
  • node
  • oracle
  • own
  • rabbitmq
  • shell
  • vuepress
  • springDataJpa
  • web
  • wechat
  • redis
  • springBoot
  • rabbitmq,springBoot
  • springCloud
  • sql
  • study
  • util
标签
author-avatar

gqsu

156

Article

42

Tag

    主页
    时间轴
    文档
    • vuepress-reco
    分类
    • elasticsearch
    • Hadoop
    • life
    • linux
    • note
    • Apache James
    • collection
    • Dubbo
    • git
    • jwt
    • k8s
    • mongodb
    • ali
    • netty-socketio
    • nginx
    • node
    • oracle
    • own
    • rabbitmq
    • shell
    • vuepress
    • springDataJpa
    • web
    • wechat
    • redis
    • springBoot
    • rabbitmq,springBoot
    • springCloud
    • sql
    • study
    • util
    标签

    nginx Categories

    vuePress-theme-reco gqsu    2018 - 2021
    • elasticsearch 20
    • Hadoop 2
    • life 6
    • linux 9
    • note 9
    • Apache James 2
    • collection 1
    • Dubbo 1
    • git 1
    • jwt 1
    • k8s 1
    • mongodb 1
    • ali 2
    • netty-socketio 2
    • nginx 2
    • node 3
    • oracle 1
    • own 1
    • rabbitmq 2
    • shell 1
    • vuepress 1
    • springDataJpa 1
    • web 2
    • wechat 2
    • redis 6
    • springBoot 27
    • rabbitmq,springBoot 1
    • springCloud 13
    • sql 6
    • study 24
    • util 5
    nginx配置文件超详解

    # nginx的基本配置nginx.conf

    在config目录下的.conf文件的配置,优先级是先加载的,即后加载的重复配置不会覆盖前面的。

    # 基本组成

    先贴一张常用设置:

    gqsu 2018/2/5上午10:09:39 nginx
    nginx安装与配置

    这里的安装为 yum 安装,源码安装方式参见 linux标签 栏目

    $ ./configure $ make $ sudo make install

    默认情况下,Nginx 会被安装在 /usr/local/nginx

    Nginx (engine x) 是一款轻量级的Web 服务器 、反向代理服务器及电子邮件(IMAP/POP3)代理服务器。

    # nginx安装

    1、安装

    $ yum install nginx  
    

    2、启动

    $ service nginx start  //也可以通过whereis nginx查看,默认启动项存放在第一个目录
    

    3、测试

    $ wget http://127.0.0.1  
    
    gqsu 2018/2/5上午9:25:52 nginx
    Prev 1 ... 1 ... 1 Next Jump To Go