摘要:
[root@k8s-master ~]# kubectl get ep ##查看service关联的pod 虚拟的负载均衡器 NAME ENDPOINTS AGE java-demo 10.244.169.140:8080 6d21h kubernetes 192.168.115.71:6443 1 阅读全文
摘要:
cat 段文件 more 长文件 [root@ol85 ~]# head -n 15 anaconda-ks.cfg [root@ol85 ~]# tail -n 10 anaconda-ks.cfg [root@ol85 ~]# cat anaconda-ks.cfg | tr [a-z] [A- 阅读全文
摘要:
构建一个镜像 [root@ol85 ~]# mkdir dockerfile[root@ol85 ~]# cd dockerfile/ FROM centos:7RUN yum install epel-release -y && \ yum install nginx -y CMD ["nginx 阅读全文
摘要:
[root@ol85 ~]# ip addr [root@ol85 ~]# docker run -itd busybox docker使用iptables实现网络通信 [root@ol85 ~]# ss -antp |grep 88 外部访问容器 [root@ol85 ~]# iptables - 阅读全文
摘要:
[root@ol85 ~]# docker exec -it web bashroot@web:/# cd /usr/share/nginx/html/root@web:/usr/share/nginx/html# root@web:/usr/share/nginx/html# echo "<h1> 阅读全文
摘要:
[root@ol85 ~]# docker run --help [root@ol85 ~]# docker ps [root@ol85 ~]# docker exec -it 6e7e651ec0a2 bash [root@ol85 ~]# docker run -d -e env=prod -p 阅读全文
摘要:
[root@ol85 ~]# docker run -d nginx 配置镜像加速器 [root@ol85 ~]# vi /etc/docker/daemon.json [root@ol85 ~]# cat /etc/docker/daemon.json{ "registry-mirrors": [ 阅读全文
摘要:
参考文档:https://docs.docker.com/engine/install/centos/ sudo yum install -y yum-utils 默认仓库 ls /etc/yum.repos.d/ wget https://download.docker.com/linux/cen 阅读全文
摘要:
语法: [ OFFSET offset { ROW | ROWS} ] [ FETCH { FIRST | NEXT }[ { rowcount | percent PERCENT } ] { ROW| ROWS } { ONLY | WITH TIES } ] fetch 返回 emp表中sal最 阅读全文
摘要:
ocp 阅读全文