网站建设与维护教学课件哪个网站是用php写的

web/2025/9/27 8:24:04/文章来源:
网站建设与维护教学课件,哪个网站是用php写的,嘉兴网站制作怎么添加按钮,十大门户网站K8S简单集群搭建 前提条件 windos11电脑#xff0c;内存16g以上安装vmware虚拟机软件安装三个centos7虚拟机#xff0c;分配硬盘40g,内存4g,CPU4核心网络均采用NAT模式#xff08;新建虚拟机默认的模式#xff09; centos7镜像下载#xff1a;https://mirrors.tuna.tsi…K8S简单集群搭建 前提条件 windos11电脑内存16g以上安装vmware虚拟机软件安装三个centos7虚拟机分配硬盘40g,内存4g,CPU4核心网络均采用NAT模式新建虚拟机默认的模式 centos7镜像下载https://mirrors.tuna.tsinghua.edu.cn/centos/7/isos/x86_64/CentOS-7-x86_64-Everything-2207-02.iso 我电脑上三个centos7虚拟机均采用最小化安装IP如下 名称IP地址k8s-master1192.169.94.132k8s-node1192.168.94.133k8s-node2192.168.94.134 其中硬盘分配 /boot 1024Mswap 2048M/ 37G 系统准备 如下命令没有特殊说明则在三个节点上都要执行一次 关闭防火墙 systemctl stop firewalld systemctl disable firewalld关闭selinux sed -i s/enforcing/disabled/ /etc/selinux/config # 永久 setenforce 0 # 临时关闭swap swapoff -a # 临时 sed -ri s/.*swap.*/#/ /etc/fstab # 永久设置主机名 在master虚拟机上执行 hostnamectl set-hostname k8s-master1在node1虚拟机上执行 hostnamectl set-hostname k8s-node1在node2虚拟机上执行 hostnamectl set-hostname k8s-node2添加hosts 在master虚拟机上执行 cat /etc/hosts EOF 192.168.94.132 k8s-master1 192.168.94.133 k8s-node1 192.168.94.134 k8s-node2 EOF将桥接的IPv4流量传递到iptables的链 cat /etc/sysctl.d/k8s.conf EOF net.bridge.bridge-nf-call-ip6tables 1 net.bridge.bridge-nf-call-iptables 1 EOF生效 sysctl --system时间同步 yum install ntpdate -y ntpdate time.windows.com可能的问题 无法使用ifconfig 命令 需要安装net-tools: yum install net-tools​ k8s安装 k8s的默认容器运行时CRI为docker,因此要先安装docker docker安装 wget https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo -O /etc/yum.repos.d/docker-ce.repoyum -y install docker-ce-18.06.1.ce-3.el7systemctl enable docker systemctl start docker验证docker是否安装好 docker --version如果下方出现了docker的版本则说明安装没问题。 设置docker的镜像拉取地址 cat /etc/docker/daemon.json EOF {registry-mirrors: [https://b9pmyelo.mirror.aliyuncs.com] } EOFkubeadm/kubelet/kubectl的安装 设置k8s的软件源 $ cat /etc/yum.repos.d/kubernetes.repo EOF [kubernetes] nameKubernetes baseurlhttps://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64 enabled1 gpgcheck0 repo_gpgcheck0 gpgkeyhttps://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg EOF安装 注意最好是指定版本因为坑已踩过 $ yum install -y kubelet-1.18.0 kubeadm-1.18.0 kubectl-1.18.0 $ systemctl enable kubelet初始化Master 在master1上执行集群的master节点初始化(指定阿里云镜像仓库) kubeadm init \--apiserver-advertise-address192.168.94.132 \--image-repository registry.aliyuncs.com/google_containers \--kubernetes-version v1.18.0 \--service-cidr10.96.0.0/12 \--pod-network-cidr10.244.0.0/16执行这句话之后控制台输出如下 [rootlocalhost ~]# kubeadm init \--apiserver-advertise-address192.168.94.132 \--image-repository registry.aliyuncs.com/google_containers \--kubernetes-version v1.18.0 \--service-cidr10.96.0.0/12 \--pod-network-cidr10.244.0.0/16 W1004 11:44:59.317714 70492 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io] [init] Using Kubernetes version: v1.18.0 [preflight] Running pre-flight checks[WARNING IsDockerSystemdCheck]: detected cgroupfs as the Docker cgroup driver. The recommended driver is systemd. Please follow the guide at https://kubernetes.io/docs/setup/cri/ [preflight] Pulling images required for setting up a Kubernetes cluster [preflight] This might take a minute or two, depending on the speed of your internet connection [preflight] You can also perform this action in beforehand using kubeadm config images pull [kubelet-start] Writing kubelet environment file with flags to file /var/lib/kubelet/kubeadm-flags.env [kubelet-start] Writing kubelet configuration to file /var/lib/kubelet/config.yaml [kubelet-start] Starting the kubelet [certs] Using certificateDir folder /etc/kubernetes/pki [certs] Generating ca certificate and key [certs] Generating apiserver certificate and key [certs] apiserver serving cert is signed for DNS names [k8s-master1 kubernetes kubernetes.default kubernetes.default.svc kubernetes.default.svc.cluster.local] and IPs [10.96.0.1 192.168.94.132] [certs] Generating apiserver-kubelet-client certificate and key [certs] Generating front-proxy-ca certificate and key [certs] Generating front-proxy-client certificate and key [certs] Generating etcd/ca certificate and key [certs] Generating etcd/server certificate and key [certs] etcd/server serving cert is signed for DNS names [k8s-master1 localhost] and IPs [192.168.94.132 127.0.0.1 ::1] [certs] Generating etcd/peer certificate and key [certs] etcd/peer serving cert is signed for DNS names [k8s-master1 localhost] and IPs [192.168.94.132 127.0.0.1 ::1] [certs] Generating etcd/healthcheck-client certificate and key [certs] Generating apiserver-etcd-client certificate and key [certs] Generating sa key and public key [kubeconfig] Using kubeconfig folder /etc/kubernetes [kubeconfig] Writing admin.conf kubeconfig file [kubeconfig] Writing kubelet.conf kubeconfig file [kubeconfig] Writing controller-manager.conf kubeconfig file [kubeconfig] Writing scheduler.conf kubeconfig file [control-plane] Using manifest folder /etc/kubernetes/manifests [control-plane] Creating static Pod manifest for kube-apiserver [control-plane] Creating static Pod manifest for kube-controller-manager W1004 11:45:44.142408 70492 manifests.go:225] the default kube-apiserver authorization-mode is Node,RBAC; using Node,RBAC [control-plane] Creating static Pod manifest for kube-scheduler W1004 11:45:44.143008 70492 manifests.go:225] the default kube-apiserver authorization-mode is Node,RBAC; using Node,RBAC [etcd] Creating static Pod manifest for local etcd in /etc/kubernetes/manifests [wait-control-plane] Waiting for the kubelet to boot up the control plane as static Pods from directory /etc/kubernetes/manifests. This can take up to 4m0s [apiclient] All control plane components are healthy after 14.503883 seconds [upload-config] Storing the configuration used in ConfigMap kubeadm-config in the kube-system Namespace [kubelet] Creating a ConfigMap kubelet-config-1.18 in namespace kube-system with the configuration for the kubelets in the cluster [upload-certs] Skipping phase. Please see --upload-certs [mark-control-plane] Marking the node k8s-master1 as control-plane by adding the label node-role.kubernetes.io/master [mark-control-plane] Marking the node k8s-master1 as control-plane by adding the taints [node-role.kubernetes.io/master:NoSchedule] [bootstrap-token] Using token: t6p6ko.ok8x7h1era4pq66e [bootstrap-token] Configuring bootstrap tokens, cluster-info ConfigMap, RBAC Roles [bootstrap-token] configured RBAC rules to allow Node Bootstrap tokens to get nodes [bootstrap-token] configured RBAC rules to allow Node Bootstrap tokens to post CSRs in order for nodes to get long term certificate credentials [bootstrap-token] configured RBAC rules to allow the csrapprover controller automatically approve CSRs from a Node Bootstrap Token [bootstrap-token] configured RBAC rules to allow certificate rotation for all node client certificates in the cluster [bootstrap-token] Creating the cluster-info ConfigMap in the kube-public namespace [kubelet-finalize] Updating /etc/kubernetes/kubelet.conf to point to a rotatable kubelet client certificate and key [addons] Applied essential addon: CoreDNS [addons] Applied essential addon: kube-proxyYour Kubernetes control-plane has initialized successfully!To start using your cluster, you need to run the following as a regular user:mkdir -p $HOME/.kubesudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/configsudo chown $(id -u):$(id -g) $HOME/.kube/configYou should now deploy a pod network to the cluster. Run kubectl apply -f [podnetwork].yaml with one of the options listed at:https://kubernetes.io/docs/concepts/cluster-administration/addons/Then you can join any number of worker nodes by running the following on each as root:kubeadm join 192.168.94.132:6443 --token t6p6ko.ok8x7h1era4pq66e \--discovery-token-ca-cert-hash sha256:c1b3fd084dac33494a27532c368c844181e6942c5c0d2007c2e683ac3ffea83a 注意最后这一句,这是初始化master几点生成的node加入时使用的token,默认为24小时,后面会用到 kubeadm join 192.168.94.132:6443 --token t6p6ko.ok8x7h1era4pq66e \--discovery-token-ca-cert-hash sha256:c1b3fd084dac33494a27532c368c844181e6942c5c0d2007c2e683ac3ffea83a当token过期后想其他的node节点加入可通过如下命令重新创建token: kubeadm token create --print-join-command部署CNI网络插件 在master节点上执行下载yml文件 wget https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml在master节点上应用文件 kubectl get pods -n kube-system可能出现问题拉取yml文件失败 wget https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml --2023-10-04 11:50:46-- https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml 正在解析主机 raw.githubusercontent.com (raw.githubusercontent.com)... ::1, 127.0.0.1 正在连接 raw.githubusercontent.com (raw.githubusercontent.com)|::1|:443... 失败拒绝连接。 正在连接 raw.githubusercontent.com (raw.githubusercontent.com)|127.0.0.1|:443... 失败拒绝连接。解决办法参考wget安装flannel插件-连接失败_Geray-zsg的博客-CSDN博客 在/etc/hosts 文件中添加如下解析 199.232.68.133 raw.githubusercontent.com再执行就可以正常下载了 k8s安装后测试 在k8s集群中创建一个pod: kubectl create deployment nginx --imagenginx暴露端口 kubectl expose deployment nginx --port80 --typeNodePort查看暴露的服务 [rootlocalhost etc]# kubectl get pod,svc NAME READY STATUS RESTARTS AGE pod/nginx-f89759699-hnhl9 1/1 Running 0 59mNAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE service/kubernetes ClusterIP 10.96.0.1 none 443/TCP 67m service/nginx NodePort 10.96.178.17 none 80:32377/TCP 46m 验证访问 http://192.168.94.132:32377 http://192.168.94.133:32377 http://192.168.94.134:32377 如果都能访问代表k8s集群部署正常

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/web/81053.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

如何查询网站备案进度查询张店制作网站

检索对象 review_chain的目标是回答有关患者在医院就医体验的问题。到目前为止,已经将患者对医院的评论作为问题的上下文。虽然能回答少量问题,但它不具有很好的扩展性。此外,即使将所有评论放入模型的上下文中,也不能保证它使用…

网站建设1000字高防手表网站

1. 前言 本文是《【0264】深入分析relcache(relation descriptor cache)缓存初始化第2阶段》 的前传。在该文中,我们得知PG内核初始化relcache时,一共有三个阶段: 阶段(1) RelationCacheInitialize()阶段(2) RelationCacheInitializePhase2()阶段(3) RelationCache…

东莞企网站建设制作网站教程

prep7/pnum,label,key!在有限元模块图形中显示号码。Label=欲显示对象的名称,node节点,elem元素,kp点,line线,area面积,volu体积;key0为不显示号码(系统默认),&#xff1…

着力加强网站内容建设临沂网站制作定制

基于springboot实现高校党务平台管理系统演示 Java技术 Java是由Sun公司推出的一门跨平台的面向对象的程序设计语言。因为Java 技术具有卓越的通用性、高效性、健壮的安全性和平台移植性的特点,而且Java是开源的,拥有全世界最大的开发者专业社群&#x…

苏州企业网站建设设计制作公司wordpress博客栏目设计

快速入口 👉向量数据库_大模型知识库_向量数据存储_向量数据检索- 腾讯云 (tencent.com) 文章目录 前言1. 向量数据库概念及原理1.1 向量数据库概念1.2 向量数据库核心原理1.3 向量数据库优缺点1.4 向量数据库与传统数据库的区别 2. 腾讯云向量数据库的基本特性及优…

珠海城乡建设网站怎么开网店呢

上一篇帖子【c】VSCode配置 c 环境(小白教程)_vscode配置c/c环境_StudyWinter的博客-CSDN博客 大火,但是依旧有很多小伙伴反应没有配好环境,今天打算重新写一个教程,希望对大家有帮助。 1 MinGW下载安装 在CSDN上传了…

59zwd一起做网站浙江百度推广开户

使用 pdb 进行调试 pdb 是 python 自带的一个包,为 python 程序提供了一种交互的源代码调试功能,主要特性包括设置断点、单步调试、进入函数调试、查看当前代码、查看栈片段、动态改变变量的值等。pdb 提供了一些常用的调试命令,详情见表 1。…

凉山州建设银行官方网站织梦免费源码

😀前言 本篇博文是关于MyBatis原生API&注解的使用,希望能够帮助到你😊 🏠个人主页:晨犀主页 🧑个人简介:大家好,我是晨犀,希望我的文章可以帮助到大家,您…

好上手的做海报网站好的网站具备

小米红米手机3有什么接口小米红米手机3有3.5mm耳机接口,microUSB充电和数据接口(采用5V/2A标准充电头)。那么小米红米手机3有什么接口?小米红米手机3采用金属机身,其背面由4166颗星星成菱形排列,设计灵感来自夜空中的繁星。当光线游走在圆点…

超简洁网站外贸网站推广策划

效果图 实现拖拽移动 首先我们给需要实现功能的元素加一个draggable"true"让元素能够被拖拽 先来认识两个搭配draggable属性一起使用的事件——ondragstart和ondragend,它们的定义分别为: ①. ondragstart 事件在用户开始拖动元素或选择的文…

创建企业营销网站包括哪些内容网址ip查询域名解析

近日,中国人工智能产业发展联盟(AIIA)在海口召开第十一次全体会议,作为该联盟成员单位,实在智能合伙人&核心算法负责人欧阳小刚受邀出席大会,并以《从RPA到智能体,数字员工的发展及在金融行…

html简单个人主页代码模板北京关键词seo

跨平台C开发:10年Qt开发经验覆盖100多个Qt开发技巧!-控件新闻-慧都网 (evget.com)

网站如何注册网站流量平台

目录 一、嵌入式系统的概念 二、通用计算机系统与嵌入式系统的比较 用途 硬件 软件 性能与功耗 开发与维护 三、嵌入式系统与物联网的关系 四、物联网的三层架构 1. 感知层(Perception Layer) 2. 网络层(Network Layer) …

关于茶文化网站建设的背景做网站要以单位

🌷🍁 博主猫头虎 带您 Go to New World.✨🍁 🦄 博客首页——猫头虎的博客🎐 🐳《面试题大全专栏》 文章图文并茂🦕生动形象🦖简单易学!欢迎大家来踩踩~🌺 &a…

网站建设文献综述知乎网站建设如何开单

问题描述 linux系统进入emergency mode模式 解决方法 查看问题原因 journalctl -xb -p3 使用fsck 不一定是sda2,也可能是其他,我的是/dev/sda6,然后接受所有的option,完毕后重启电脑 fsck /dev/sda2接受所有的选项&#xff…

福州网络营销网站搜索引擎推广软件

高效和安全的沟通是任何组织成功的核心。在我们关于电子邮件类型的系列文章的第二期中,我们将重点关注商业电子邮件在促进无缝交互中的关键作用。当你身处重要的工作场环境时,本系列的每篇文章都提供了电子邮件的不同维度的视角。 “2024年,全…

上海企业网站建设报海南明确2023年封岛

关于成吉思汗的书籍可谓汗牛充栋,而以今天的眼光考察这位伟人的却凤毛麟角。今年是蒙古统一800周年(1206—2006),世界范围内据说要展开一系列的纪念活动,所以有关成吉思汗的出版物会更多。成吉思汗的传记我首推法国历史…

高端网站定制费用是多少佛山市seo点击排名软件

将变量包装在对象中 不要使用 console.log(url, url2, baz),而是使用 console.log({ url, url2, baz })。 如果你比较这两者,你会发现这有多么有用:拥有 url 和 url2 键可以避免这两个 URL 之间的混淆。 在日志前加上唯一字符串前缀 在应用…

博物馆网站建设方案有没有做网站源代码 修改的

by fanxiushu 2023-07-26 转载或引用请注明原始作者。 其实使用本地镜像文件启动电脑,这个windows操作系统本身就是自带的功能。 win7以上的系统,制作 vhd或vhdx格式的镜像文件, 然后在镜像文件中安装windows操作系统,然后放到真实…

盐城市亭湖区城乡建设局网站免费制作自己的网站

文章目录 前言一、进制转换1、十进制转二进制2、二进制转十进制3、二进制乘除法 二、原码、反码、补码1、由补码计算十进制数2、计算某个负数的补码 前言 2023.8.13 天气晴 一、进制转换 1、十进制转二进制 整数:除以2,余数倒着写 小数:乘…