可以在单个虚拟机web管理界面管理多台虚拟机,前提是,负责建立集群的主机名称与各台加入集群的主机名称都不能相同,而且加入集群的主机下都不能有虚拟机。 如果已经相同了,那么可以逐个修改加入集群的主机名。 修改/etc/hostname和/etc/hosts 这两个文件就ok ...
分类:
其他好文 时间:
2020-07-01 17:31:57
阅读次数:
185
转:https://blog.csdn.net/nauwzj/article/details/6733135 一. 单机改主机名需更改以下文件: /etc/hosts /etc/hostname.hme0(根据主网口更改) /etc/nodename /etc/net/ticots/hosts /e ...
分类:
其他好文 时间:
2020-06-29 13:36:59
阅读次数:
48
1、 centos6的网卡重启方法: service network restart centos7的网卡重启方法: systemctl restart network 2、DNS配置文件:cat /etc/resolv.conf 设置主机和IP绑定信息:cat /etc/hosts 设置主机名:c ...
分类:
其他好文 时间:
2020-06-28 11:14:20
阅读次数:
50
今天安装docker registry, 并且加上tls证书和用户名密码登录 0. 准备两个vm: node1, node2 两个vm的 /etc/hosts加上 192.168.x.x node1.org node1.org就是registry用的域名。 2020.6.27 node1上操作: 1 ...
分类:
其他好文 时间:
2020-06-27 09:58:18
阅读次数:
83
添加本地域名解析 sudo gedit /etc/hosts 127.0.0.1 mail .test.lab test sudo gedit /etc/hostname test 重启后用以下命令检测是否生效hostnamehostname -f 安装postfix sudo apt-get in ...
分类:
其他好文 时间:
2020-06-24 20:09:02
阅读次数:
58
/etc/hosts:主机名查询静态表,是ip地址与域名快速解析的文件。ip地址与主机名之间的映射,包括主机的别名。 通常将常用的域名和ip地址映射加入到hosts文件中,实现快速方便的访问。 如果没有域名解析(DNS),操作系统需要查询该文件来解析对应主机名的ip地址;如果有域名解析(DNS),也 ...
分类:
其他好文 时间:
2020-06-24 14:09:11
阅读次数:
187
vim /etc/hosts.allowsshd:192.168.31.109:allow //只允许192.168.31.109登录vim /etc/hosts.denysshd:ALL //开启白名单,只允许192.168.31.109登录systemctl restart sshd ,重启ss ...
分类:
其他好文 时间:
2020-06-23 13:43:28
阅读次数:
195
在学习DNS的时候,了解到/etc/hosts这个文件也是能做域名解析这个工作,但是当服务器既配置了hosts,有配置了DNS的时候,会先执行哪个呢?查阅资料后发现了/etc/nsswitch.conf。 1、nsswithch.conf:服务搜索顺序 文件/etc/nsswitch.conf(na ...
分类:
其他好文 时间:
2020-06-21 19:37:19
阅读次数:
77
1.Hadoop平台: 1.理论概念:结构组成: 1. HDFS分布式文统.2.MapReduce计算大数据. 3Yarn任务调度与资源管理. 2. 伪分布式环境搭建: 网络配置: 配置网卡信息: vi /etc/sysconfig/network 配置主机的虚拟域名: vi /etc/hosts ...
分类:
其他好文 时间:
2020-06-21 11:26:51
阅读次数:
96
卸载ambari脚本 #!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH #取得集群的所有主机名,这里需要注意:/etc/hosts配置的IP和主机名只能用一个 ...
分类:
其他好文 时间:
2020-06-12 11:08:46
阅读次数:
52