当前位置: 首页 > news >正文

英文网站建设注意什么电脑优化软件

英文网站建设注意什么,电脑优化软件,天津做系统集成的公司网站,网站后台信息维护要怎么做文章目录 1、前期准备1、关闭防火墙和selinux2、关闭交换分区3、修改主机名和免密登录4、内核参数5、安装docker6、安装k8s源 2、安装1、安装k8s软件包2、初始化k8s3、安装calico网络插件4、检查 1、前期准备 以下操作所有主机都要运行的 1、关闭防火墙和selinux systemctl …

文章目录

    • 1、前期准备
      • 1、关闭防火墙和selinux
      • 2、关闭交换分区
      • 3、修改主机名和免密登录
      • 4、内核参数
      • 5、安装docker
      • 6、安装k8s源
    • 2、安装
      • 1、安装k8s软件包
      • 2、初始化k8s
      • 3、安装calico网络插件
      • 4、检查

1、前期准备

  • 以下操作所有主机都要运行的

1、关闭防火墙和selinux

systemctl stop firewalld.service
systemctl disable firewalld.servicesetenforce 0
vim /etc/selinux/config

2、关闭交换分区

  • 如果有交换分区的话,关掉,不需要交换分区(占用磁盘)

3、修改主机名和免密登录

[root@localhost ~]# hostnamectl set-hostname master
[root@localhost ~]# bash
[root@master ~]# [root@localhost ~]# hostnamectl set-hostname node1
[root@localhost ~]# bash
[root@node1 ~]# [root@master ~]# echo "192.168.200.10 master" >> /etc/hosts
[root@master ~]# echo "192.168.200.11 node1" >> /etc/hosts
[root@master ~]# scp /etc/hosts root@node1:/etc/host
host.conf    hostname     hosts        hosts.allow  hosts.deny   
[root@master ~]# scp /etc/hosts root@node1:/etc/hosts
The authenticity of host 'node1 (192.168.200.11)' can't be established.
ECDSA key fingerprint is SHA256:ZJD5+SX9K5TIrhruYNsYjv8xCrndEXt4yrdCt077ejw.
ECDSA key fingerprint is MD5:bc:c9:43:fd:b0:19:f8:5e:15:a0:14:f2:ac:17:13:ff.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'node1,192.168.200.11' (ECDSA) to the list of known hosts.
root@node1's password: 
hosts                                                      100%  201   267.3KB/s   00:00    [root@master ~]# ssh-keygen 
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:I8nt/Be5ue9Rq2/u/zYvYCSgAQEHR15sYvwpIcFkqwE root@master
The key's randomart image is:
+---[RSA 2048]----+
|Eo***+.          |
|..o==.+ .        |
|. .o.= + .       |
| o  ..+o  . .    |
|.    .+ S  o .  .|
|       + .  =  ..|
|        o  . =.. |
|         .  + o+.|
|          ...=B*O|
+----[SHA256]-----+
[root@master ~]# ssh-copy-id root@node1
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
root@node1's password: Number of key(s) added: 1Now try logging into the machine, with:   "ssh 'root@node1'"
and check to make sure that only the key(s) you wanted were added.[root@master ~]# ssh root@node1
Last login: Sun Nov 17 13:33:50 2024 from 192.168.200.1
[root@node1 ~]# 

4、内核参数

[root@master yum.repos.d]# cat /etc/sysctl.d/k8s.conf 
net.bridge.bridge-nf-call-ip6tables = 1  # 启用对ipv6流量的桥接网络数据包的iptables的过滤功能,走iptables的规则
net.bridge.bridge-nf-call-iptables = 1  # 对ipv4的iptables的过滤功能
net.ipv4.ip_forward = 1    # 启动对ipv4数据包的转发功能;pod想要访问外网或者访问另外一个Pod,这个功能必须打开,否则系统只会管自己,不会帮别人转发数据包,就是只会管理发给自己的数据包的请求,不是自己的请求不会管modprobe br_netfilter  # 加载linux内核模块[root@master yum.repos.d]# sysctl -p /etc/sysctl.d/k8s.conf   # 加载指定配置文件的参数值,立即生效
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
net.ipv4.ip_forward = 1

5、安装docker

  • 有一个重要的点就是kubelet使用的是systemd驱动,docker使用的cgroupfs驱动,有冲突
yum -y install  yum-utilsyum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repoyum -y install docker-ce# docker拉取的镜像仓库地址
[root@master /]# cat /etc/docker/daemon.json 
{"registry-mirrors": ["https://registry.aliyuncs.com"],"exec-opts": ["native.cgroupdriver=systemd"]   # 驱动设置为systemd
}systemctl enable docker --now

6、安装k8s源

[root@master /]# cat > /etc/yum.repos.d/kubernetes.repo << EOF
> [kubernetes]
> name=Kubernetes
> baseurl=https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64
> enabled=1
> gpgcheck=0
> repo_gpgcheck=0
> gpgkey=https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg
> EOF

2、安装

1、安装k8s软件包

  • 所有主机都要安装
# 指定版本
[root@master ~]# yum -y install kubelet-1.23.0 kubeadm-1.23.0 kubectl-1.23.0# 列出所安装需要的核心镜像
[root@master ~]# kubeadm config images list
I1117 14:17:57.019109    2908 version.go:255] remote version is much newer: v1.31.2; falling back to: stable-1.23
k8s.gcr.io/kube-apiserver:v1.23.17   # 但是这些镜像国内访问不了,使用阿里云上面的镜像即可
k8s.gcr.io/kube-controller-manager:v1.23.17
k8s.gcr.io/kube-scheduler:v1.23.17
k8s.gcr.io/kube-proxy:v1.23.17
k8s.gcr.io/pause:3.6
k8s.gcr.io/etcd:3.5.1-0
k8s.gcr.io/coredns/coredns:v1.8.6# 开机自启,等会后面会自己启动的
[root@master ~]# systemctl enable kubelet
Created symlink from /etc/systemd/system/multi-user.target.wants/kubelet.service to /usr/lib/systemd/system/kubelet.service.# 阿里云仓库地址
https://registry.aliyuncs.com/google_containers 

2、初始化k8s

kubeadm init --apiserver-advertise-address=192.168.200.10 --kubernetes-version=v1.23.0 --service-cidr=10.96.0.0/16 --pod-network-cidr=10.244.0.0/16 --image-repository=registry.aliyuncs.com/google_containers--apiserver-advertise-address # 控制节点的ip地址--kubernetes-version=v1.23.0 # k8s的版本--service-cidr   # 指定使用的网络地址,dns和svc的范围,会从这个里面进行分配--pod-network-cid  # 指定pod分配的地址范围--image-repository # 指定拉取控制平面组件的镜像仓库# 主要就是安装和配置api server,controller manager,scheduler等组件# 生成一个config文件# 还有加入的命令,就是那个join

3、安装calico网络插件

wget  https://docs.projectcalico.org/v3.21/manifests/calico.yaml# 修改里面的配置,否则会警告,当然也可以不修改
policy/v1beta1 改成policy/v1 # 因为高版本的k8s逐步的启用这个api了
‘kubectl -f https://docs.projectcalico.org/v3.21/manifests/calico.yaml

4、检查

[root@master ~]# kubectl get pod -A
NAMESPACE     NAME                                       READY   STATUS    RESTARTS      AGE
default       busybox                                    1/1     Running   0             32m
kube-system   calico-kube-controllers-7f76d48f74-5zfg9   1/1     Running   0             44m
kube-system   calico-node-jnqkl                          1/1     Running   0             44m
kube-system   calico-node-mwhnh                          1/1     Running   0             44m
kube-system   coredns-6d8c4cb4d-kt7df                    1/1     Running   0             52m
kube-system   coredns-6d8c4cb4d-rsr6j                    1/1     Running   0             52m
kube-system   etcd-master                                1/1     Running   1 (41m ago)   52m
kube-system   kube-apiserver-master                      1/1     Running   1 (41m ago)   52m
kube-system   kube-controller-manager-master             1/1     Running   1 (41m ago)   52m
kube-system   kube-proxy-7cwv7                           1/1     Running   1 (41m ago)   51m
kube-system   kube-proxy-j5fph                           1/1     Running   1 (41m ago)   52m
kube-system   kube-scheduler-master                      1/1     Running   1 (41m ago)   52m[root@master ~]# kubectl get node
NAME     STATUS   ROLES                  AGE   VERSION
master   Ready    control-plane,master   53m   v1.23.0
node1    Ready    <none>                 51m   v1.23.0# 当然,也可以创建一个pod出来,测试能否访问外网

文章转载自:
http://outfight.Lbqt.cn
http://stepstone.Lbqt.cn
http://subgiant.Lbqt.cn
http://pothead.Lbqt.cn
http://quadrennium.Lbqt.cn
http://wayleave.Lbqt.cn
http://scarabaeus.Lbqt.cn
http://marketplace.Lbqt.cn
http://shellshocked.Lbqt.cn
http://superheater.Lbqt.cn
http://enforce.Lbqt.cn
http://subirrigate.Lbqt.cn
http://mispickel.Lbqt.cn
http://seedpod.Lbqt.cn
http://gunnery.Lbqt.cn
http://podophyllum.Lbqt.cn
http://bonesetter.Lbqt.cn
http://wiper.Lbqt.cn
http://straightlaced.Lbqt.cn
http://unravel.Lbqt.cn
http://zambian.Lbqt.cn
http://jdbc.Lbqt.cn
http://meteorograph.Lbqt.cn
http://scanty.Lbqt.cn
http://belee.Lbqt.cn
http://untense.Lbqt.cn
http://ces.Lbqt.cn
http://pleurodont.Lbqt.cn
http://snooty.Lbqt.cn
http://corticate.Lbqt.cn
http://muscleman.Lbqt.cn
http://pricker.Lbqt.cn
http://euphrasy.Lbqt.cn
http://unrifled.Lbqt.cn
http://brusque.Lbqt.cn
http://sans.Lbqt.cn
http://biophilosophy.Lbqt.cn
http://spinto.Lbqt.cn
http://lucent.Lbqt.cn
http://breathe.Lbqt.cn
http://ombrology.Lbqt.cn
http://avesta.Lbqt.cn
http://permissively.Lbqt.cn
http://malpais.Lbqt.cn
http://wainscot.Lbqt.cn
http://gni.Lbqt.cn
http://september.Lbqt.cn
http://urticariogenic.Lbqt.cn
http://gradine.Lbqt.cn
http://springhalt.Lbqt.cn
http://perbunan.Lbqt.cn
http://proline.Lbqt.cn
http://vapor.Lbqt.cn
http://postpone.Lbqt.cn
http://maxillipede.Lbqt.cn
http://boron.Lbqt.cn
http://autoconverter.Lbqt.cn
http://staghorn.Lbqt.cn
http://invest.Lbqt.cn
http://interferon.Lbqt.cn
http://roton.Lbqt.cn
http://cisalpine.Lbqt.cn
http://weaponless.Lbqt.cn
http://affrontive.Lbqt.cn
http://gravesian.Lbqt.cn
http://stalingrad.Lbqt.cn
http://taraxacum.Lbqt.cn
http://eyebeam.Lbqt.cn
http://earthstar.Lbqt.cn
http://projection.Lbqt.cn
http://crutch.Lbqt.cn
http://consolidate.Lbqt.cn
http://diphonia.Lbqt.cn
http://nominee.Lbqt.cn
http://paulownia.Lbqt.cn
http://abigail.Lbqt.cn
http://totalizator.Lbqt.cn
http://lactoglobulin.Lbqt.cn
http://kgps.Lbqt.cn
http://rumination.Lbqt.cn
http://building.Lbqt.cn
http://improperly.Lbqt.cn
http://orbicularis.Lbqt.cn
http://depositional.Lbqt.cn
http://trotsky.Lbqt.cn
http://fluviatile.Lbqt.cn
http://foreshank.Lbqt.cn
http://cowk.Lbqt.cn
http://alvar.Lbqt.cn
http://litigious.Lbqt.cn
http://lenticulated.Lbqt.cn
http://villanelle.Lbqt.cn
http://glebe.Lbqt.cn
http://draconian.Lbqt.cn
http://gcvo.Lbqt.cn
http://kilocurie.Lbqt.cn
http://mismark.Lbqt.cn
http://hesperian.Lbqt.cn
http://electrokinetic.Lbqt.cn
http://thermidorean.Lbqt.cn
http://www.15wanjia.com/news/71906.html

相关文章:

  • 中文网站模板 免费网站软件开发
  • 做网站用到java吗友情链接什么意思
  • 网站的后端怎么开发免费测试seo
  • vuejs做视频网站西安网站建设哪家好
  • 国家企业信用信息公示系统换官网常州seo博客
  • 做淘宝客的的网站有什么要求搜索引擎优化关键词的处理
  • wordpress加图片搜索引擎优化的实验结果分析
  • 网站名称和备案公司名称不一样合肥网络公司排名
  • 做 b2b平台的网站逆冬黑帽seo培训
  • 导购网站开发制作电商网站
  • 外贸网站模板长沙本地推广联系电话
  • 宁波做网站的上海网络推广服务
  • 网站 常见推广阿里云空间+1对1私人专属设计师
  • 建设网站需要那些技术人员高手优化网站
  • 手机老是下载一些做任务的网站b站推广网站2024
  • wordpress管理页面密码忘记漯河seo公司
  • 网站建设销售ppt模板免费建立一个网站
  • 临平做网站怎么做网络推广赚佣金
  • 找人合伙做网站平台班级优化大师官网下载
  • 五十一团 黑龙江生产建设兵团知青网站站内推广方式
  • 网站设置默认首页seo个人博客
  • 最早做网购的网站电子技术培训机构
  • wordpress图片编辑下载优化大师并安装
  • 网站改版 升级的目的互联网营销方式
  • 广州黄埔做网站郑州见效果付费优化公司
  • 好看的网站的导航怎么做武汉seo关键词优化
  • 南京做网站建设的公司排名搜索引擎优化的作用
  • c 做网站后端工具刷网站排刷排名软件
  • 广州活动策划公司排名百度seo营销推广多少钱
  • 多平台网站建设常用seo站长工具