2019年7月9日

Nginx-(四)基本模块2

摘要: nginx常用模块介绍(二) ngx_http_rewrite_module模块配置 (1) rewrite regex replacement [flag]; 将请求的url基于正则表达式进行重写; a) regex:正则表达式,用于匹配用户请求的url; b) replacement:重写为的结 阅读全文

posted @ 2019-07-09 14:33 HowOldAreYou 阅读(174) 评论(0) 推荐(0)

nginx常用模块(三)

摘要: Nginx常用模块(三) ngx_http_proxy_module模块配置(http或https协议代理) 应用上下文:location, if in location, limit_except a) proxy_pass后面的路径不带uri时,其会将location的uri传递给后端的主机;下 阅读全文

posted @ 2019-07-09 14:33 HowOldAreYou 阅读(287) 评论(0) 推荐(0)

nginx(二):基本应用

摘要: 配置文件详解 event段配置 每个worker进程所能够响应的最大并发请求数量; nginx最大并发响应数=worker_proceses * worker_connections 注意,nginx的worker_connections也受到worker_rlimit_nofile number的 阅读全文

posted @ 2019-07-09 14:32 HowOldAreYou 阅读(197) 评论(0) 推荐(0)

nginx-(三)基本模块1

摘要: nginx常用模块介绍 ngx_http_access_module模块的配置(基于IP的访问控制) a) 应用上下文:http, server, location, limit_except b) eg: location / { deny 192.168.1.1; allow 192.168.1 阅读全文

posted @ 2019-07-09 14:32 HowOldAreYou 阅读(148) 评论(0) 推荐(0)

nginx一:安装和基本应用

摘要: Nginx: 目录 Nginx:... 1 NGINX简介和安装... 1 网站... 1 全称... 2 二次开发版... 2 Nginx的特性... 2 基本功能... 2 web服务相关的功能... 2 Nginx的基本架构:... 3 模块类型... 3 nginx主要用途... 3 ngi 阅读全文

posted @ 2019-07-09 14:31 HowOldAreYou 阅读(241) 评论(0) 推荐(0)

2019年3月14日

内网环境搭建NTP服务器

摘要: 说在前面:ntp和ntpdate区别 ①两个服务都是centos自带的(centos7中不自带ntp)。ntp的安装包名是ntp;ntpdate的安装包是ntpdate。他们并非由一个安装包提供。 ②ntp守护进程为ntpd,配置文件是/etc/ntp.conf ③ntpdate用于客户端的时间矫正 阅读全文

posted @ 2019-03-14 17:16 HowOldAreYou 阅读(29624) 评论(0) 推荐(1)

2019年3月13日

/proc/cpuinfo文件解读(超易理解)

摘要: 在linux系统中,提供了/proc目录下文件,显示系统的软硬件信息。如果想了解系统中CPU的提供商和相关配置信息,则可以查/proc/cpuinfo。但是此文件输出项较多,不易理解。例如我们想获取,有多少颗物理CPU,每个物理cpu核心数,以及超线程是否开启等信息,下面我们就看来一步一步的去探索。 阅读全文

posted @ 2019-03-13 15:22 HowOldAreYou 阅读(22156) 评论(0) 推荐(1)

2019年3月4日

LVM扩容之xfs文件系统

摘要: LVM的基础请见:https://www.cnblogs.com/wxxjianchi/p/9698089.html 一、放大LV的容量。放大容量是由内而外来操作的。 1、设置新的lvm分区:用fdisk设置新的System ID为8e的分区。 补充:添加一块新的磁盘,使用partx [device 阅读全文

posted @ 2019-03-04 18:03 HowOldAreYou 阅读(5693) 评论(0) 推荐(1)

2019年2月13日

/etc/security/limits.conf配置文件详解

摘要: 这个文件主要是用来限制用户对系统资源的使用。是/lib64/security/pam_limits.so模块对应的/etc/serurity/pam_limits的配置文件。 ################补充##############一、使用数据库如mysql的时候遇到two many ope 阅读全文

posted @ 2019-02-13 16:14 HowOldAreYou 阅读(9929) 评论(0) 推荐(0)

linux-PAM

摘要: PAM(Pluggable Authentication Modules)即可插拔式认证模块,一种用户级别的认证方式,它也是当前Linux服务器普遍使用的认证方式。 PAM认证原理:参考资料来自http://blog.51cto.com/tyjhz/1436175 一般遵循这样的顺序:Service 阅读全文

posted @ 2019-02-13 16:14 HowOldAreYou 阅读(1252) 评论(0) 推荐(0)

导航