Skip to content

Instantly share code, notes, and snippets.

@snailwalker
snailwalker / nginx_config.md
Created December 21, 2017 09:03 — forked from Mioke/nginx_config.md
Mac OS下安装及配置nginx

同事的内部分享, 个人觉得可以分享给大家,我很久前自己有个人部署和学习了解过zookeeper,但没太认真研究和思考,我知道,有机会,肯定还需要进一步学习zookeeper的

  1. 序言
  2. 目录规划
  3. 安装步骤 3.1 下载和解压 3.3 日志格式 3.4 配置文件 3.5 部署Zookeeper Server服务标识
  4. 启动和关闭
@snailwalker
snailwalker / nginx.conf
Created October 12, 2017 10:22 — forked from Stanback/nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your **location** block(s):
#
# include cors_support;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which
@snailwalker
snailwalker / nginx.conf
Created October 12, 2017 10:22 — forked from Stanback/nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your **location** block(s):
#
# include cors_support;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which
@snailwalker
snailwalker / elasticsearch.yml
Created August 3, 2017 11:02 — forked from reyjrar/elasticsearch.yml
ElasticSearch config for a write-heavy cluster
##################################################################
# /etc/elasticsearch/elasticsearch.yml
#
# Base configuration for a write heavy cluster
#
# Cluster / Node Basics
cluster.name: logng
# Node can have abritrary attributes we can use for routing