摘要: 在开始处理一个http请求时,nginx会取出header头中的host,与nginx.conf中每个server的server_name进行匹配,以此决定到底由哪一个server块来处理这个请求。 server_name与host匹配优先级如下: 1、完全匹配 2、通配符在前的,如*.test.c 阅读全文
posted @ 2020-12-02 19:19 ascertain 阅读(330) 评论(0) 推荐(0) 编辑
摘要: Usage函数 function Usage() { cat <<-delimiter Usage: command [-x] [-v] [-z] [files] A short explanation of the operation goese here It might be a few li 阅读全文
posted @ 2020-12-02 15:24 ascertain 阅读(94) 评论(0) 推荐(0) 编辑
摘要: RANDOM 0-32767 2^15-1 $((RANDOM%91+10)) $[$RANDOM%91+10] /etc/rc.d/rc.local 设置全局开机启动选项 四种过滤空格和注释方法: grep -v '^#\|^$' sudo.conf grep -v -e '^#' -e '^$' 阅读全文
posted @ 2020-12-02 01:29 ascertain 阅读(870) 评论(0) 推荐(0) 编辑