#零 修订记录 | 序号 | 修订内容 |修订时间 | | | | | | 1 | 新增 |2021/2/6| #一 摘要 前文linux 基于三台物理机安装ceph nautilus 介绍了 ceph 在centos 7.6 上的安装。 ceph nautilus 横向扩容 介绍了ceph 横向扩 ...
分类:
其他好文 时间:
2021-02-08 11:45:21
阅读次数:
0
查看CentOS-Base.repo部分内容,文件路径 /etc/yum.repos.d/CentOS-Base.repo [base] baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ mirrorlist=http ...
分类:
其他好文 时间:
2021-02-05 10:29:54
阅读次数:
0
将可执行的开机启动脚本加入到/etc/init.d/目录下,并利用chkconfig配置开机自启动,重启生效 1)、切换到/etc/init.d/ [root@www ~]# cd /etc/init.d/ 2)、编辑开机启动服务脚本 nano xxxx.sh #!/bin/sh#配置Tomcat开 ...
分类:
其他好文 时间:
2021-02-04 12:23:33
阅读次数:
0
集群划分 192.168.8.121 Rancher-Server、K8S(etcd、control)、Harbor、NFS-Server 192.168.8.122 Rancher-Agent、K8S(worker) 192.168.8.123 Rancher-Agent、K8S(worker) ...
分类:
Web程序 时间:
2021-02-03 11:04:33
阅读次数:
0
环境说明 系统:Centos7 版本:CentOS-7-x86_64-Minimal-1908 ISO下载链接:http://mirrors.aliyun.com/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1908.iso Centos7源中包含以下版 ...
分类:
其他好文 时间:
2021-02-03 11:00:30
阅读次数:
0
A traveler's map gives the distances between cities along the highways, together with the cost of each highway. Now you are supposed to write a progra ...
分类:
其他好文 时间:
2021-02-02 11:30:56
阅读次数:
0
1.查看当前系统版本 cat /etc/redhat-release 2.查看端口使用 netstat -lnpt 3.检查端口被哪个进程占用 netstat -lnpt|grep 22 4.查看进程信息 ps 1091 5.终止进程 kill -9 1091 ...
分类:
系统相关 时间:
2021-02-02 11:04:47
阅读次数:
0
1、CentOS 6 ①、修改防火墙配置文件vi /etc/sysconfig/iptables ②、添加要开启的端口 例如开放端口2888,则添加如下代码到下图红色方框中-A INPUT -m state --state NEW -m tcp -p tcp --dport 2888 -j ACCE ...
分类:
系统相关 时间:
2021-02-02 11:02:39
阅读次数:
0
1.概述 2.对象回收算法 执行垃圾回收之前,要判断哪些内存需要回收,在JVM垃圾回收机制中主要体现为两种对象回收算法。 2.1 引用计数算法 给对象添加一个引用计数器,难以解决循环引用的问题,因此主流的java虚拟机基本上没有选用引用计数算法来管理内存的。 从图中可以看出,如果不小心直接把 Obj ...
分类:
其他好文 时间:
2021-02-02 10:37:48
阅读次数:
0
迭代器: 迭代的过程中不能增删元素,否则会产生并发修改异常。 注意 迭代 和 迭代器 的区别,迭代器 是用来 迭代 集合 的工具。 练习:某公司有多个人,每个人有不同数量的钱,用迭代器求出公司里所有男人钱的总数: (注意:next方法做两件事:返回当前指向的元素,并指向下一个元素) class Em ...
分类:
编程语言 时间:
2021-02-01 12:27:33
阅读次数:
0