02 2021 档案

docker 设置容器自动启动 docker update rabbitmq --restart=always
摘要:docker update rabbitmq --restart=always 阅读全文

posted @ 2021-02-28 09:30 及途又八 阅读(329) 评论(0) 推荐(0)

docker 安装 rabbitMQ
摘要: 阅读全文

posted @ 2021-02-28 09:19 及途又八 阅读(47) 评论(0) 推荐(0)

K8S kubectl 常用命令 - 升级回滚,弹性伸缩
摘要:# yaml文件内容 apiVersion: apps/v1 kind: Deployment metadata: creationTimestamp: null labels: app: xxxxxxxxxxx name: xxxxxxxxxxx spec: replicas: 2 # 2 副本 阅读全文

posted @ 2021-02-27 22:03 及途又八 阅读(194) 评论(0) 推荐(0)

k8s kubectl 常用命令,使用yaml部署
摘要:# 生成命令对应的yaml文件(资源清单)kubectl create deployment xxxxxxxxxxx --image=nginx --dry-run -o yamlkubectl create deployment xxxxxxxxxxx --image=nginx --dry-ru 阅读全文

posted @ 2021-02-27 21:41 及途又八 阅读(822) 评论(0) 推荐(0)

K8S kubectl 常用命令
摘要:################### # 查看节点污点kubectl describe node k8s-master-01 | grep Taintkubectl describe node k8s-work-01 | grep Taint # 设置污点(value=[NoSchedule、Pr 阅读全文

posted @ 2021-02-27 21:05 及途又八 阅读(113) 评论(0) 推荐(0)

k8s对work node打标签
摘要:$ kubectl label node k8s-work01 env_role=prod 阅读全文

posted @ 2021-02-26 22:00 及途又八 阅读(158) 评论(0) 推荐(0)

k8s kubectl命令生成yaml文件
摘要:1、kubectl create 生成yaml $ kubectl create deployment web --image=nginx -o yaml --dry-run > my1.yaml 2、kubectl get 导出yaml $ kubectl get deploy nginx -o= 阅读全文

posted @ 2021-02-26 21:12 及途又八 阅读(6257) 评论(2) 推荐(1)

nginx bad 400
摘要:1 server { 2 listen 80; 3 server_name product.yuffie132.edu; 4 5 location /static { 6 root html; 7 } 8 9 location / { 10 root html; 11 index index.htm 阅读全文

posted @ 2021-02-26 09:29 及途又八 阅读(69) 评论(0) 推荐(0)

K8S部署后测试nginx
摘要:mkdir -p $HOME/.kube sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config sudo chown $(id -u):$(id -g) $HOME/.kube/config # 查看节点 $ kubectl get nod 阅读全文

posted @ 2021-02-25 20:44 及途又八 阅读(356) 评论(0) 推荐(0)

kube-flannel.yml
摘要:https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml apiVersion: policy/v1beta1 kind: PodSecurityPolicy metadata: na 阅读全文

posted @ 2021-02-25 20:21 及途又八 阅读(189) 评论(0) 推荐(0)

centos7部署K8S
摘要:准备三台centos7服务器 一台 master node (主机名 k8s-master-01) 两台 work node(主机名 k8s-work-01、k8s-work-02) 【环境准备】(k8s-master-01、k8s-work-01、k8s-work-02 都要执行) 设置固定IP: 阅读全文

posted @ 2021-02-25 17:23 及途又八 阅读(367) 评论(0) 推荐(0)

CentOS7 防火墙 firewall 相关命令(启动、停止、状态)
摘要:查看状态: systemctl status firewalld.service 关闭: systemctl stop firewalld.service 开机禁用 : systemctl disable firewalld.service 启动:systemctl start firewalld. 阅读全文

posted @ 2021-02-23 11:32 及途又八 阅读(234) 评论(0) 推荐(0)

docker 启动 nginx 报错 docker0: iptables: No chain/target/match by that name
摘要:原文:https://blog.csdn.net/newtelcom/article/details/79548152 在CentOS 7下使用类似nginx之类的web server,启动docker时有时会报以下错误: docker0: iptables: No chain/target/mat 阅读全文

posted @ 2021-02-23 11:26 及途又八 阅读(1322) 评论(0) 推荐(0)

docker 部署 nginx
摘要:先启动一个临时nginx docker run -p 5080:80 --name temp-nginx -d nginx 将nginx相关配置文件从docker复制到本地,b4cc12141323 为容器ID docker container cp b4cc12141323:/etc/nginx 阅读全文

posted @ 2021-02-22 20:33 及途又八 阅读(103) 评论(0) 推荐(0)

K8S环境准备
摘要:关防火墙(master 和 work 执行) systemctl stop firewalld systemctl disable firewalld 关SeLinux(master 和 work 执行) # 查看状态 [root@192 ~]# getenforce Enforcing # 临时关 阅读全文

posted @ 2021-02-21 17:13 及途又八 阅读(146) 评论(0) 推荐(0)

docker运行elasticsearch和kibana
摘要:[root@host-132 ~]# mkdir -p /mydata/elasticsearch/config [root@host-132 ~]# mkdir -p /mydata/elasticsearch/data [root@host-132 ~]# mkdir -p /mydata/el 阅读全文

posted @ 2021-02-21 14:38 及途又八 阅读(126) 评论(0) 推荐(0)

使用mysql命令行工具登录mycat报错:ERROR 1045 (HY000): Access denied for user 'mycat', because password is error
摘要:修改server.xml <property name="nonePasswordLogin">1</property> <!-- 0为需要密码登陆、1为不需要密码登陆 ,默认为0,设置为1则需要指定默认账户--> 阅读全文

posted @ 2021-02-10 22:09 及途又八 阅读(1576) 评论(0) 推荐(0)

远程连接mongodb,Connection refused的解决办法
摘要:原贴 https://blog.csdn.net/longweizhe/article/details/82047954 环境:centos 6.7,virtualbox虚机安装,basic server,IP地址为192.168.0.104。 用户:新建用户mongodb。 安装步骤: 1、wge 阅读全文

posted @ 2021-02-10 18:24 及途又八 阅读(1457) 评论(0) 推荐(0)

解决 intelliJ idea maven 项目 target bytecode version 自动变化的问题
摘要:maven编译项目不会按照系统环境变量JAVA_HOME对应的版本编译,而是默认代码版本为java 5(或者 6),需要在pom.xml中配置如下 <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <arti 阅读全文

posted @ 2021-02-08 22:37 及途又八 阅读(1444) 评论(0) 推荐(0)

CentOS7安装Mysql8
摘要:新装的的CentOS虚拟机,先安装一些常用软件 yum -y install vim yum -y install lrzsz yum -y install net-tools yum -y update 到mysql官网下载rpm文件 安装刚刚下载的rpm yum -y install mysql 阅读全文

posted @ 2021-02-02 14:16 及途又八 阅读(82) 评论(0) 推荐(0)

导航