国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
<?php | |
/** | |
* nginx日志文件分析。 | |
* 根据配置的nginx日志格式,分析对应的日志内容。各变量 | |
*/ | |
class NginxLog { | |
protected static $br = "\n"; | |
/** |
//消除文件中的注释内容。支持以下两种格式 | |
//1. 以//开头单行注释 | |
//2. /**/块级注释 | |
//可用于清除配置文件中的注释 | |
package comment | |
func ClearLine(text []byte) []byte { | |
newText := []byte("") | |
n := byte('\n') | |
r := byte('\r') |
// Copyright 2012 Junqing Tan <[email protected]> and The Go Authors | |
// Use of this source code is governed by a BSD-style | |
// Part of source code is from Go fcgi package | |
// Fix bug: Can't recive more than 1 record untill FCGI_END_REQUEST 2012-09-15 | |
// By: wofeiwo | |
package fcgiclient | |
import ( |