centos编辑新增 nginx.repo 安装nginx , nginx-htpd基础(域名-LB-K8S-nginx-ingress必备) 开源 LB metallb
CentOS7$ vi /etc/yum.repos.d/nginx.repo[nginx]name=nginx repobaseurl=http://nginx.org/packages/centos/7/$basearch/gpgcheck=0enabled=1CentOS6$ vi /etc/yum.repos.d/nginx.repo[nginx]name=nginx repobaseur
·
# http 协议 理解; nginx-htpd基础(域名-LB-K8S-nginx-ingress必备):
# 关键点 1 一定是先做DNS解析 再开始TCP连接 2 一定是先做完TCP的三次握手,在TCP协议的基础之上,再开始走七层httpd超文本传输协议
# 延伸阅读 http和https区别:
HTTP 和 HTTPS 的区别(面试常考题)_Tyler_Zx的博客-CSDN博客_http和https的区别
HTTP和HTTPS协议,看一篇就够了_不一样的博客-CSDN博客_https
简单图示理解 TCP-SSL-HTTP协议
# CentOS7 安装repos官方 nginx源
# 用cat EOF会丢掉变量 $releaserver
vim /etc/yum.repos.d/nginx.repo
[nginx-stable]
name=nginx stable repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key
[nginx-mainline]
name=nginx mainline repo
baseurl=http://nginx.org/packages/mainline/centos/$releasever/$basearch/
gpgcheck=1
enabled=0
gpgkey=https://nginx.org/keys/nginx_signing.key
yum -y install nginx # 安装
#rm -rf /etc/nginx/conf.d/default.conf # 删除默认nginx页面
# CentOS6 repo
$ vi /etc/yum.repos.d/nginx.repo
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/6/$basearch/
gpgcheck=0
enabled=1
更多推荐
已为社区贡献59条内容
所有评论(0)