03 2022 档案

go语言学习笔记——map集合
摘要:1、创建map集合 //1.创建map集合 var newMap map [int] string fmt.Println(newMap) fmt.Println(len(newMap))//len()返回map集合中已有的键值对的个数 //打印结果 map[] 0 //创建map集合的第二种方式 阅读全文
posted @ 2022-03-31 20:13 无锡-小松 阅读(239) 评论(0) 推荐(0) 编辑
nginx安装
摘要:Nginx安装 [root@localhost src]# tar xf nginx-1.14.2.tar.gz [root@localhost src]# ls nginx-1.14.2 nginx-1.14.2.tar.gz [root@localhost nginx-1.14.2]# yum 阅读全文
posted @ 2022-03-07 23:14 无锡-小松 阅读(31) 评论(0) 推荐(0) 编辑
nginx配置详解(三)
摘要:nginx状态页: nginx状态页:基于nginx模块ngx_http_auth_basic_module实现,在编译安装nginx的时候需要添加编译参数--with-http-stub-status-module,否则配置完成后监测会提示语法错误。状态页用于输出nginx的基本信息 #配置如下: 阅读全文
posted @ 2022-03-07 21:36 无锡-小松 阅读(389) 评论(0) 推荐(0) 编辑
nginx配置文件详解(二)
摘要:location详解 在没有使用正则表达式的时候,nginx会先在server中的多个location选取匹配度最高的一个uri,uri是用户请求的字符串,即域名后面的web文件路径,然后使用该location模块中的正则url和字符串,如果匹配成功就结束搜索,并使用此location处理请求 语法 阅读全文
posted @ 2022-03-07 21:25 无锡-小松 阅读(154) 评论(0) 推荐(0) 编辑