配置文件 -- 6




配置文件解析在一个工程中,配置文件的解析是一个非常重要的工作,为工程的实践提供了巨大的便捷性与灵活性ngx_memzero(&conf, sizeof(ngx_conf_t)); /* STUB: init array ? */ // 保存配置文件中所有指令 conf.args = ngx_array_create(pool, 10, sizeof(ngx_str_t)); if (conf.args == NULL) { ngx_destroy_pool(pool); return NULL; } conf.temp_pool = ngx_create_pool(NGX_CYCLE_POOL_SIZE, log); if (conf.temp_pool == NULL) { ngx_destroy_pool(pool); return NULL; } conf.ctx = cycle->conf_ctx; conf.cycle = cycle; conf.pool = pool; conf.log = log; conf.module_type = NGX_CORE_MODULE; conf.cmd_type = NGX_MAIN_CONF; #if 0 log->log_level = NGX_LOG_DEBUG_ALL; #endif /
#技术帖    #配置文件    #龙潭书斋    #服务器   
# # Minimal Sphinx configuration sample (clean, simple, functional) # source src_all { type = mysql sql_host = localhost sql_user = root sql_pass = zeyu2032 sql_db = zeyu_blog sql_port = 3306 # optional, default is 3306 sql_query = \ SELECT article_id, lower(draft) FROM article; sql_attr_uint = article_id } index all { source = src_all path = /usr/local/sphinx/var/data/zeyu_blog/all mlock = 0 morphology = none docinfo = extern min_word_len = 1 html_strip = 0 #stopwords = /path/to/stowords.txt的位置 charset_type = zh_cn.utf-8 ngram_len
#技术帖    #linux    #配置文件    #mysql   

200x200


[Pastel on Black] text(bold)=ffffff magenta(bold)=8080c0 text=ffffff white(bold)=ffffff green=00ff00

#技术帖    #linux    #unix    #配置文件   
bashrc# ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples # If not running interactively, don't do anything [ -z "$PS1" ] && return # don't put duplicate lines in the history. See bash(1) for more options # ... or force ignoredups and ignorespace HISTCONTROL=ignoredups:ignorespace # append to the history file, don't overwrite it shopt -s histappend # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) HISTSIZE=1000 HISTFILESIZE=2000 # check the window size after ea
#技术帖    #linux    #unix    #配置文件   
term"VIMRC"{{{ autocmd! bufwritepost _vimrc source % set nocompatible source $VIMRUNTIME/vimrc_example.vim syntax enable set showmatch set fenc=utf-8 set fencs=utf-8,gbk,usc-bom,chinese,latin-1 set tags=./tags,./../tags,./../../tags,./../../../tags,./../../../../tags,./../../../../../tags set nu! set hlsearch set ignorecase set smartcase set autoindent set tabstop=4 set shiftwidth=4 set foldmethod=marker set guifont=monaco:h12 set fileencoding=utf-8 set encoding=utf-8 set langmenu=zh_CN.UTF-8 colorscheme peachpuff set nobackup "set backupext=.bak "set patchmode=.beg "s
#技术帖    #linux    #unix    #配置文件   



京ICP备15018585号