• Windows相关技巧


    本文只记录有关Windows相关知识点

    1.添加删除固定路由规则

    添加 route add 15.0.32.0(要去访问的网段)  mask 255.255.255.0 -p 15.50.112.93

    删除 route delete 15.0.32.0 mask 255.255.255.0 -p 15.50.112.93

    查看路由规则

    route print

    -p含义为永久添加到路由表。-p后面的ip是该网络设置的网关(如15.0.32.0设定的网关是15.50.112.93)。

    2.安装多个jdk,但无法生效问题

    今天遇到一个特别无语的问题。之前安装了jdk1.7,后面又安装了jdk1.8。环境变量配置的是1.7的路径,结果java -version一直是1.8。
    怎么配置都无效,最终解决方式为:将Path变量的 jdk,jre放到system32前面即可。

    3.EXCEL拼接字符串

    • 选一列作为拼接后的字符串存放地址。
    • 该列不能设置为字符串格式。
    • 该列的某一行 输入="asd"&A2&","&B2
    • 下拉即可自动生成升序拼接。

    4.WINDOWS下idea

    • 安装idea后,进行注册。需要下载JetbrainsIdesCrack-4.2-release-sha1.jar并放到idea bin目录下。

        修改idea.exe.vmoptions idea64.exe.vmoptions文件,在最后追加-javaagent:D:ideaIntelliJ IDEA 2018.1.2inJetbrainsIdesCrack-4.2-release-sha1.jar

        即jar所在的目录,之后选择activation code区域填写如下的注册码,注册成功。

    SPCBJ78MO0-eyJsaWNlbnNlSWQiOiJTUENCSjc4TU8wIiwibGljZW5zZWVOYW1lIjoieXUgbWVuZyIsImFzc2lnbmVlTmFtZSI6IiIsImFzc2lnbmVlRW1haWwiOiIiLCJsaWNlbnNlUmVzdHJpY3Rpb24iOiIiLCJjaGVja0NvbmN1cnJlbnRVc2UiOmZhbHNlLCJwcm9kdWN0cyI6W3siY29kZSI6IklJIiwicGFpZFVwVG8iOiIyMDIwLTAyLTIxIn0seyJjb2RlIjoiQUMiLCJwYWlkVXBUbyI6IjIwMjAtMDItMjEifSx7ImNvZGUiOiJEUE4iLCJwYWlkVXBUbyI6IjIwMjAtMDItMjEifSx7ImNvZGUiOiJQUyIsInBhaWRVcFRvIjoiMjAyMC0wMi0yMSJ9LHsiY29kZSI6Ikd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PndJwfe0YkS5nY72SHnNdbPhEnN8wcB2Kz+OIG0lih3yz5EqFhld03bGp222ZQCIghCTVL6QBNadGsiN/lWLl4JdR3lJkZzlpFdiHijoVRdWeSWqM4y0t23c92HXKrgppoSV18XMxrWVdoSM3nuMHwxGhFyde05OdDtLpCv+jlWf5REAHHA201pAU6bJSZINyHDUTB+Beo28rRXSwSh3OUIvYwKNVeoBY+KwOJ7WnuTCUq1meE6GkKc4D/cXmgpOyW/1SmBz3XjVIi/zprZ0zf3qH5mkphtg6ksjKgKjmx1cXfZAAX6wcDBNaCL+Ortep1Dh8xDUbqbBVNBL4jbiL3i3xsfNiyJgaZ5sX7i8tmStEpLbPwvHcByuf59qJhV/bZOl8KqJBETCDJcY6O2aqhTUy+9x93ThKs1GKrRPePrWPluud7ttlgtRveit/pcBrnQcXOl1rHq7ByB8CFAxNotRUYL9IF5n3wJOgkPojMy6jetQA5Ogc8Sm7RG6vg1yow==
    • 修改快捷键:从eclipse转过来的可以直接修改为eclipse默认。

      file-setting-keymap 搜索basic,修改为指定的提示快捷键。如果有冲突,就将冲突的快捷键改掉。

    • 修改类头注释:file->setting->Editor->Filr and Code Templates File选项卡,选中Class。

    /**
    * @program: ${PROJECT_NAME}
    * @description: ${description}
    * @author: CHX
    * @create: ${DATE} ${TIME}
    **/

      在live templates里点击加号,添加一个group。再添加一个live template
      在abbrevation里填写喜欢的快捷键。如/** 将expandwith改为enter

    5.快捷键篇。

    • F2重命名(包括绝大多数软件都是)
    • Ctrl+y还原(即与撤销相反的操作)
    • 运行指令:
    • calc计算器
    • control控制面板
    • gpedit.msc组策略
    • services.msc本地服务设置
    • mstsc远程
    • winver查看Windows版本

     6.运行calc提示<需要使用新应用以打开此ms-Calculator>

    Win+x 选择Windos Powershell管理员

    如果连应用商店也删除了,则需要运行

    Get-AppXPackage *WindowsStore* -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)AppXManifest.xml"}
    

    执行恢复计算器的命令

    Get-AppxPackage *calculator* -AllUsers| Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)AppXManifest.xml"}
    

    如果需要恢复相机命令

    Get-AppxPackage *camera* -AllUsers| Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)AppXManifest.xml"}
  • 相关阅读:
    ELK
    alerta 集中化告警信息 -zabbix
    Python安装第三方模块出错 No module named setuptools
    Centos7 搭建bind9.9
    DNS 处理模块 dnspython
    varnish 项目实战
    中文版Postman测试需要登陆才能访问的接口(基于Cookie)
    fireFox模拟 post请求、上传插件,火狐浏览器中文postman插件
    MySQL单表最大记录数不能超过多少?
    ApiPost(中文版postman)如何发送一个随机数或者时间戳?
  • 原文地址:https://www.cnblogs.com/chxwkx/p/12168143.html
Copyright © 2020-2023  润新知