Skip to content

Instantly share code, notes, and snippets.

global
log 137.0.0.1 local0 notice
#全局的日志配置 其中日志级别是[err warning info debug].local0 是日志设备,必须为如下24种标准syslog设备的一种:
#kern user mail daemon auth syslog lpr news
#uucp cron auth2 ftp ntp audit alert cron2
#local0 local1 local2 local3 local4 local5 local6 local7
maxconn 65535 #最大连接数
user haproxy #haproxy运行的用户和组
group haproxy
#nbproc 8 #创建4个进程进入deamon模式运行。此参数要求将运行模式设置为"daemon"
#定义Nginx运行的用户和用户组
user www www;
#nginx进程数,建议设置为等于CPU总核心数。
worker_processes 8;
#全局错误日志定义类型,[ debug | info | notice | warn | error | crit ]
error_log ar/loginx/error.log info;
#进程文件
{
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
//
// This is a options template for [JSHint][1], using [JSHint example][2]
// and [Ory Band's example][3] as basis and setting config values to
// be most strict:
//
// * set all enforcing options to true
@JeffreyZksun
JeffreyZksun / fg1.css
Created July 14, 2012 14:11
Css code
body {background-color: black; }
@JeffreyZksun
JeffreyZksun / fg.css
Created July 14, 2012 14:06
css code
body {background-color: black; }
@JeffreyZksun
JeffreyZksun / fg.js
Created July 14, 2012 13:59
js functions
function sum(x, y){
return x+y;
}
/*
12306 Auto Login => A javascript snippet to help you auto login 12306.com.
Copyright (C) 2011 Kevintop
Includes jQuery
Copyright 2011, John Resig
Dual licensed under the MIT or GPL Version 2 licenses.
http://jquery.org/license
Includes 12306.user.js