One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
#user nobody; | |
worker_processes 4; | |
#error_log logs/error.log; | |
#error_log logs/error.log notice; | |
#error_log logs/error.log info; | |
#pid logs/nginx.pid; |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required |
cmake_minimum_required(VERSION 2.6) | |
project (foo) | |
#FXN_VERSION是为网友FXN定制的版本,增加了一些特殊功能,如果您不需要,可以去掉-DFXN_VERSION选项(默认不开启) | |
#-DFXN_VERSION | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -g -Wall -O0 -Wno-unused-variable -pthread") | |
link_directories( | |
${PROJECT_SOURCE_DIR}/lib |
env=Environment(CPPPATH='/usr/include/boost/', | |
CPPDEFINES=[], | |
LIBS=["pthread"], | |
CXXFLAGS="-std=c++0x -g -O0" | |
) | |
env.Program("app", ["app.cpp"]) |
https://yq.aliyun.com/articles/221687 |
upstream backend { | |
server backend1.example.com weight=5; | |
server backend2.example.com:8080; | |
server unix:/tmp/backend3; | |
server backup1.example.com:8080 backup; | |
server backup2.example.com:8080 backup; | |
} | |
server { |