2021年3月

修改文件:/opt/unetlab/html/includes/functions.php
function listRoles() {

    $results = Array();
    $results['admin'] = 'Administrator';
    $results['editor'] = 'Editor';
    $results['user'] = 'User';
    return $results;

}

Windows 7专业版通过kms在线激活
slmgr.vbs -ipk FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4
slmgr.vbs -skms 10.1.45.9:1688
slmgr.vbs -ato

一、windows server 2019零售版永久激活码:

Windows Server 2019 Datacenter Retail:
[Key]:RC4VN-4GQBW-WYPTV-3BD66-FVXR6

Windows Server 2019 Standard Retail:
[Key]:N3P28-TW9C9-69PWP-YQVC3-YBKR4

Windows Server 2019 Essential Retail:
[Key]:NMB98-MKJBC-FTVQ9-J3XK6-QYKTQ

二、Windows Server 2019批量授权版KMS客户端安装密钥Volume:GVLK

Windows Server 2019 Datacenter
[Key]:WMDGN-G9PQG-XVVXX-R3X43-63DFG

Windows Server 2019 Standard
[Key]:N69G4-B89J2-4G8F4-WWYCC-J464C

Windows Server 2019 Essential
[Key]:WVDHN-86M7X-466 P 6-VHXV7-YY726

三 windows 2008R2 datacenter
74YFP-3QFB3-KQT8W-PMXWJ-7M648

http://officecdn.microsoft.com/pr/492350f6-3a01-4f97-b9c0-c7c6ddf67d60/media/zh-cn/HomeStudent2019Retail.img

office2019初体验与kms服务器搭建
请输入链接描述

第一个产品密钥:NJGKK-J79GM-KBY96-9YYD4-843R8

  第二个产品密钥:NJ367-Y4HQ4-4XR7Y-3Q3BT-TJFPJ

  第三个产品密钥:QNQXG-2WDWH-8HWJM-WKPFW-D9MVH

  Microsoft Office 2019 Vol版Gvlk密钥(KMS激活专用) 产品秘钥

  Office Professional Plus 2019:NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP

  Office Standard 2019:6NWWJ-YQWMR-QKGCB-6TMB3-9D9HK

  Project Professional 2019:B4NPR-3FKK7-T2MBV-FRQ4W-PKD2B

  Project Standard 2019:C4F7P-NCP8C-6CQPT-MQHV9-JXD2M

  Visio Professional 2019:9BGNQ-K37YR-RQHF2-38RQ3-7VCBB

  office2019激活码

  Visio Standard 2019:7TQNQ-K3YQQ-3PFH7-CCPPM-X4VQ2

  Access 2019:9N9PT-27V4Y-VJ2PD-YXFMF-YTFQT

  Excel 2019:TMJWT-YYNMB-3BKTF-644 FC-RVXBD

  Outlook 2019:7HD7K-N4PVK-BHBCQ-YWQRW-XW4VK

  PowerPoint 2019:RRNCX-C64HY-W2MM7-MCH9G-TJHMQ office2019专业版激活码 产品秘钥 Publisher 2019:G2KWX-3NW6P-PY93R-JXK2T-C9Y9V

  Skype for Business 2019:NCJ33-JHBBY-HTK98-MYCV8-HMKHJ

  Word 2019:PBX3G-NWMT6-Q7XBW-PYJGG-WXD33

@echo off
color 0a
title 修改Windows 2003/2008远程桌面服务端口号
echo *
echo *
echo 正在修改端口为 13389,请稍候
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp" /v PortNumber /t reg_dword /d 13389 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v PortNumber /t reg_dword /d 13389 /f
netsh firewall set opmode mode = enable
rem netsh firewall set portopening all 80 web enable
rem netsh firewall set portopening all 3389 remote-pre enable
netsh firewall set portopening all 13389 remote enable
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t reg_dword /d 1 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t reg_dword /d 0 /f
echo 正在自动重新启动电脑以便端口生效!
shutdown -r -t 1
pause
exit

SSH 免密登录

1.客户端生成公私钥
本地客户端生成公私钥:
ssh-keygen

上面这个命令会在用户目录.ssh文件夹下创建公私钥
ls ~/.ssh
列出下面文件两个密钥:
id_rsa (私钥)
id_rsa.pub (公钥)

2.上传公钥到服务器root用户下
ssh-copy-id -i ~/.ssh/id_rsa.pub root@服务器IP
此时需要输入远程服务器root的密码
ssh-copy-id 将公钥key写到远程服务器的 ~/ .ssh/authorized_key.文件中

3.测试免密登录
ssh root@服务器IP