云主机租户使用系统优化脚本后进不去系统排障 Linux
0x00 前言
接到用户报障,云主机ssh无法连接,并且主机状态不通。用户说在此之前运行过一个linux系统优化脚本init-server.sh。
0x01 尝试重启
通过后台vnc进入云主机后发现linux引导一直卡在:"ip_local_port_range: prefer different parity for start/end valu...
bat批处理UAC提升权限 Windows
在批处理中提升权限 (UAC开启状态下)
很简单,直接在批处理文件中前面加入下面这段
@echo off
:: BatchGotAdmin
:-------------------------------------
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\sy...
AD域控-VNCServer批量安装与激活 Windows
0x01 下载msi安装包
https://www.realvnc.com/en/connect/download/combined/
1.下载msi安装包,这边提供了两个版本的VNCServer msi安装包。
6.2.1版本下载地址
https://downloads.realvnc.com/download/file/perm.files/VNC-Pe...
AD域控-ntdsutil清理元数据 Windows
原因是林里面依旧残留宕机的主域信息,需要进行清除。
ntdsutil命令,这个是固定的进入到metadate cleanup 清理元数据模式。
Select operation target ——connections——connect to server 域名.com—quit。(这一些是固定命令)之后列出当前站点 list site,找到了...
Ansible-module常用模块 Linux
官方文档传送门:
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/index.html#plugins-in-ansible-builtin
ping模块 (检查主机连通性)
# ansible -i ./inventory -m ping all
shell模块(批量执...
Ansible-inventory主机清单 Linux
创建inventory文件
vim /root/ansibleProject/inventory
#手动在主机清单中指定这台机子的用户名密码
192.168.253.134 ansible_ssh_port=22 ansible_ssh_user=root ansible_ssh_pass="cisco123"
192.168.253.133
192...
Ansible-基础笔记 Linux
yum安装ansible需要先启动EPEL仓库,具体方法自行百度。
# yum install ansible --nogpgcheck
安装完成后使用--version 查看默认配置文件
# ansible --version
ansible
config file = /etc/ansible/ansible.cfg
configured mo...
CentOS6~8 配置阿里云yum源与epel源 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/re...