zoukankan      html  css  js  c++  java
  • windows设置笔记

    1. 使用Sudo提升权限

    http://www.alexblair.org/user-alexblair-post-1046.html

    新建 sudo.js 放到 C:windows下面,内容如下:

    var command = WScript.Arguments.Item(0);
    var argument = "";
    for (var i = 0; i < WScript.Arguments.Count(); ++i) {
        argument += WScript.Arguments.Item(i) + " ";
    }
    try {
        var shellapp = new ActiveXObject("Shell.Application");
        shellapp.ShellExecute(command, argument, null, "runas", 1);
    } catch(e) {
        WScript.Echo("Something wrong: " + e.description + " By http://www.alexblair.org");
    }

    2. sublime text

    官网:http://www.sublimetext.com/

    扩展:https://packagecontrol.io/installation

    3.添加使用Vs2013打开

    使用注册表实现,参考:http://jingyan.baidu.com/article/1e5468f9c84326484961b72d.html

    4. gpt安装 windows2012R2

    GPT知识:http://yuedu.biz/gpt-partition-on-a-gpt-partition-basics-and-how-to-install-win7/

    先使用 BIOS 启动,做Raid10,完成之后,再修改BIOS,使用 UEFI 启动,安装 windows 2012R2

    在选择分区时,把分区转换为 GPT,使用 Shift+F10打开DOS,执行以下命令:

    DiskPart

    List Disk

    Select Disk 0

    clean

    convert gpt

    create partition efi size=200

    create partition msr size=200

    create partition primary size=200000

    5.服务器设置

    关闭禁用以下服务:

    Remote Registry

    Print Spooler

    Themes

    6. 命令打开端口

    rem Open TCP Port 80 inbound and outbound
    netsh advfirewall firewall add rule name="Zoo TCP Port 80" dir=in action=allow protocol=TCP localport=80
    netsh advfirewall firewall add rule name="Zoo TCP Port 80" dir=out action=allow protocol=TCP localport=80
  • 相关阅读:
    Hbase数据库简介
    v8引擎详解
    TCP、UDP和HTTP详解
    关于websocket的代码,实现发送信息和监听信息(前端 后端(node.js))
    浏览器的渲染流程
    事件的各个阶段
    回流和重绘
    Nginx入门教程
    解决浏览器跨域
    TCP三次握手
  • 原文地址:https://www.cnblogs.com/newsea/p/4759194.html
Copyright © 2011-2022 走看看