2023-3-24 myluzh
Windows
1.原因是林里面依旧残留宕机的主域信息,需要进行清除。
2.ntdsutil命令,这个是固定的进入到metadate cleanup 清理元数据模式。
3.Select operation target ——connections——connect to server 域名.com—quit。(这一些是固定命令)之后列出当前站点 list site,找到了代号为0的站点。
4.我们选择代号为0的站点,可以看到站点一项已经有了信息。
5.继续list domain 列出当前域,然后选择代号为0的域名 ,可以看到下面的域也已经有了信息。
6.接下来要列出当前域下面的服务器list servers for domain in site ,可以看到当前域下的所有域服务器,这里面只是显示出了两个代号分别为0和1.选择你要删除的域服务器,假设我们是代号为0的服务器。那么就select server 0.
7.这时候我们已经选定了要删除的域服务器,那么quit退出选择模式,用remove select server来删除损坏的服务器以及残留的元数据。
8.选择...
阅读全文>>
标签: 域控 ad
评论(0)
(253)
2023-3-8 myluzh
Linux
官方文档传送门:
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/index.html#plugins-in-ansible-builtin
ping模块 (检查主机连通性)
[root@master ansibleProject]# ansible -i ./inventory -m ping all
shell模块( 批量执行shell命令)
ansible 指定主机清单 主机组 指定模块 指定动作[参数]
ansible -i inventory node -m shell -a "hostname"
[root@master ansibleProject]# ansible -i inventory node -m shell -a "hostname"
...
阅读全文>>
标签: ansible
评论(0)
(169)
2023-3-8 myluzh
Linux
#创建inventory文件,vim /root/ansibleProject/inventory
[node134]
#手动在主机清单中指定这台机子的用户名密码
192.168.253.134 ansible_ssh_port=22 ansible_ssh_user=root ansible_ssh_pass="cisco123"
[node133]
192.168.253.133
[node130]
192.168.253.130
#把node130 133 134添加到 node组中
[node:children]
node130
node133
node134
#给node这个组设置账号密码
[node:vars]
ansible_ssh_port=22
ansible_ssh_user=root
ansible_ssh_pass="cisco123"
#使用-i 指定inventory文件位置,使用ping模块,指定主机node133
[root@master ansibleProject]# ansible -i ./inventory -m ping...
阅读全文>>
标签: ansible
评论(0)
(164)
2023-3-8 myluzh
Linux
https://blog.csdn.net/m0_64496909/article/details/124913290
#yum安装ansible需要先启动EPEL仓库,具体方法自行百度。
[root@master ~]# yum install ansible --nogpgcheck
#安装完成后使用--version 查看默认配置文件
[root@master ~]# ansible --version
ansible [core 2.14.2]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.9/site-packages/ansible
ansible collection location = /r...
阅读全文>>
标签: ansible
评论(0)
(159)
2023-3-8 myluzh
Linux
CentOS 6
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-6.10.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-6.10.repo
CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
CentOS 8
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
或者...
阅读全文>>
标签: yum epel repo
评论(0)
(218)
2023-1-18 myluzh
Linux
一般位于 /etc/sysconfig/network-scripts/ifcfg-eth0 或类似的文件中。
静态
TYPE=Ethernet
BOOTPROTO=none
NAME=eth0
DEVICE=eth0
ONBOOT=yes
IPADDR=<你的固定IP地址>
NETMASK=<你的子网掩码>
GATEWAY=<你的网关>
DNS1=<你的首选DNS服务器>
DNS2=<你的备用DNS服务器>
动态(dhcp获取)
如果你想使用动态获取IP地址的方式,你可以将BOOTPROTO的值更改为"dhcp"。以下是修改后的示例配置文件:
TYPE=Ethernet
BOOTPROTO=dhcp
NAME=eth0
DEVICE=eth0
ONBOOT=yes
请注意,当使用动态获取IP地址时,不需要指定IPADDR、NETMASK、GATEWAY和DNS服务器。这些值将由DHCP服务器自动提供。
阅读全文>>
标签: centos 网卡 静态 动态
评论(0)
(35)