- 博客(20)
- 资源 (1)
- 收藏
- 关注
原创 C #pragma once的作用
这里写自定义目录标题C #pragma once的作用二者的区别总结C #pragma once的作用在C/C++的使用过程中,为了防止出现同一个头文件被重复引用导致编译失败的问题,通常有两种方式:1)#ifndef2)#pragma once在能够支持这两种方式的编译器上,它们都可以使用,但还是一些差异。二者的区别#ifndef这种方式受C/C++语言标准支持。它不仅可以保证同一个文件不会被包含多次,也能保证内容完全相同的两个文件(或者代码片段)不会被不小心同时包含。当然,缺点就是
2022-01-17 10:35:01
286
翻译 nginx学习随笔--proxy_temp_path
nginx学习随笔–proxy_temp_path英文原文:Syntax: proxy_temp_path path [level1 [level2 [level3]]];Default: proxy_temp_path proxy_temp;Context: http, server, locationDefines a directory for storing temporar
2017-09-14 11:37:10
12707
1
翻译 nginx学习随笔--client_body_temp_path
nginx学习随笔–client_body_temp_path英文原文:Syntax: client_body_temp_path path [level1 [level2 [level3]]];Default: client_body_temp_path client_body_temp;Context: http, server, locationDefines a direct
2017-09-14 10:51:12
9170
翻译 nginx学习随笔--ssl_session_timeout
nginx学习随笔–ssl_session_timeout 英文原文: Syntax: ssl_session_timeout time; Default: ssl_session_timeout 5m; Context: http, serverSpecifies a time during which a client may reuse the session parame
2017-09-14 10:20:13
16428
翻译 nginx学习随笔--ssl_session_cache
nginx学习随笔–ssl_session_cache英文原文:Syntax: ssl_session_cache off | none | [builtin[:size]] [shared:name:size];Default: ssl_session_cache none;Context: http, serverSets the types and sizes of cache
2017-09-14 10:11:56
13411
翻译 nginx学习随笔--keepalive_requests
nginx学习随笔–keepalive_requests 英文原文:Syntax: keepalive_requests number;Default: keepalive_requests 100;Context: http, server, locationSets the maximum number of requests that can be served throug
2017-09-14 09:29:24
7460
翻译 nginx学习随笔--keepalive_timeout
nginx学习随笔–keepalive_timeout英文原文:Syntax: keepalive_timeout timeout [header_timeout];Default: keepalive_timeout 75s;Context: http, server, locationThe first parameter sets a timeout during which
2017-09-13 18:26:56
1734
原创 C 常用函数罗列(长期更新)
C 常用函数罗列(长期更新)void *memset(void *Dst,int val,size_t size); 用来对一段内存空间全部设置为某个字符,一般用在对定义的字符串进行初始化。
2017-09-13 11:24:42
262
翻译 nginx学习随笔--tcp_nodelay
nginx学习随笔–tcp_nodelay英文原文:Syntax: tcp_nodelay on | off;Default: tcp_nodelay on;Context: http, server, locationEnables or disables the use of the TCP_NODELAY option. The option is enabled only w
2017-09-12 19:18:42
449
翻译 nginx学习随笔--tcp-nopush
nginx学习随笔–tcp-nopush英文原文:Syntax: tcp_nopush on | off;Default: tcp_nopush off;Context: http, server, locationEnables or disables the use of the TCP_NOPUSH socket option on FreeBSD or the TCP_COR
2017-09-12 16:13:21
7820
翻译 nginx学习随笔--sendfile
nginx学习随笔–worker_connections英文原文:Syntax: worker_connections number;Default: worker_connections 512;Context: eventsSets the maximum number of simultaneous connections that can be opened by a w
2017-09-12 11:30:00
387
翻译 nginx学习随笔--multi_accept
nginx学习随笔–multi_accept 英文原文: Syntax: multi_accept on | off; Default: multi_accept off; Context: eventsIf multi_accept is disabled, a worker process will accept one new connection at a time. O
2017-09-11 17:34:16
14699
翻译 nginx学习随笔--connection processing methods
nginx学习随笔–connection processing methodsnginx支持多种连接处理方法。一个方法的有效性取决于他在什么平台上使用。一个平台如果支持多个方法,nginx会自动选择最有效的一种方法。如果需要的话,可以使用use指令来特别指定用哪一种连接处理方法。 有以下几种方法可以支持:select —— 标准方法。自动集成在缺少有效方法的平台上。可以用–with-selec
2017-09-11 15:51:48
408
翻译 nginx学习随笔--use
nginx学习随笔–use 英文原文: Syntax: use method; Default: — Context: eventsSpecifies the connection processing method to use. There is normally no need to specify it explicitly, because nginx will by
2017-09-11 15:00:06
663
翻译 nginx学习随笔--events
nginx学习随笔–events英文原文:Syntax: events { ... }Default: —Context: mainProvides the configuration file context in which the directives that affect connection processing are specified.中文翻译:为作用于指定的
2017-09-11 14:51:38
319
翻译 nginx学习随笔--worker_rlimit_core
nginx学习随笔–working_directory英文原文:Syntax: working_directory directory;Default: —Context: mainDefines the current working directory for a worker process. It is primarily used when writing a core
2017-09-11 14:37:26
2180
1
翻译 nginx学习随笔--worker_rlimit_nofile
nginx学习随笔–worker_rlimit_nofile英文原文:Syntax: worker_rlimit_nofile number;Default: —Context: mainChanges the limit on the maximum number of open files (RLIMIT_NOFILE) for worker processes. Used
2017-09-11 13:58:15
13797
翻译 nginx学习随笔--pid
nginx学习随笔–pid英文原文:Syntax: pid file;Default: pid nginx.pid;Context: mainDefines a file that will store the process ID of the main process.中文翻译:定义存储nginx主进程ID的文件。例如:pid logs/nginx.p
2017-09-11 13:36:15
418
翻译 nginx学习随笔--error_log
nginx学习随笔–error_log英文原文: Syntax: error_log file [level]; Default: error_log logs/error.log error; Context: main, http, mail, stream, server, locationConfigures logging. Several logs can
2017-09-11 13:17:46
1766
翻译 nginx学习随笔--worker_processes
nginx学习随笔–worker_processes简单介绍worker_processes的使用:nginx英文文档原文 Syntax: worker_processes number | auto; Default: worker_processes 1; Context: mainDefines the number of worker processe
2017-09-11 11:40:06
3014
RADIUS Accounting
2018-05-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人