蓝图湾
博客首页
博客主人
聚合订阅
标签列表
引用列表
控制面板
博客日历
« July 2025 »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
日志分类
[RSS] 默认分类 [6]
[RSS] 原创文章 [51]
[RSS] 随笔涂鸦 [4]
[RSS] 网文采撷 [58]
[RSS] 典藏软件 [21]
[RSS] 自编程序 [3]
[RSS] 学习笔记 [54]
[RSS] 内部资料 [5]
[RSS] 非技术类 [2]
日志排序
时间
点击
评论
引用
日志归档
三月, 2006
四月, 2006
五月, 2006
六月, 2006
七月, 2006
十月, 2006
十一月, 2006
十二月, 2006
一月, 2007
二月, 2007
三月, 2007
四月, 2007

全部...
搜索文章
高级搜索
搜索评论
最新评论
目前无任何评论
07-17 - System
更多...
博客统计
分类: 9
文章: 204
评论: 0
标签: 3
附件: 103
引用: 0
今日访问: 32388
总访问量: 25001893
友情连接
安全天使
天下网盟
河北电信测速
河北网通测速
世界网络
网世界
TT购物
sysinternals
analogx
LinuxTOY
中国站长站
中国网管论坛
mikrotik官网
鬼仔的Blog
可疑文件检测
异次元の世界
水晶泡泡淘宝店
够趣堂
死性不改
可疑文件检测2
Go Daddy
一人游走
一个空间
可疑文件检测3
腾讯哈勃分析系统
软件缘
微步云沙箱
安芯网盾
在线工具
网吧维护工具
程序版权
Powered by: SaBlog
执行时间: 0.066423  秒, 5 次查询
冀ICP备05030027号
浏览模式 标准模式 列表模式 所有时间均为 GMT +8:00 北京时间

Powered by Sablog SC中的start和type参数与注册表的对应值

使用sc创建服务时涉及到两个比较重要的参数,分别是type和start,它们的值可以是

type=----own, share, interact, kernel, filesys
关于建立服务的类型,选项值包括驱动程序使用的类型,默认是share。

start=----boot, system, auto, demand, disabled
关于启动服务的类型,选项值包括驱动程序使用的类型,默认是demand(手动)。

start类型在注册表中的对应值是:

system=1

boot=0

auto=2

demand=3

disabled=4

Submitted by 多情浪子 on 2014, March 13, 1:06 AM
阅读全文  |  学习笔记  |  评论(3)  |  引用(0)  |  附件:0  |  点击:2877
Powered by Sablog 将磁盘分区标为活动的以及取消活动的方法

系统分区必须是已为启动而标记为活动的主分区,并且必须位于启动系统时计算机访问的磁盘。同一磁盘同时只能有一个活动的系统分区。可以具有多个基本磁盘,每个磁盘各有一个活动分区。但是,只能通过某个指定的磁盘启动计算机。如果需要使用其他操作系统,则必须在重新启动计算机之前,先将其系统分区标记为活动。

  不能将现有的动态卷标记为活动。不过,可以将包含活动分区的基本磁盘转化为动态磁盘。磁盘转化后,该分区将成为活动的简单卷。如果活动分区不是当前的系统分区或引导分区,则它将成为简单卷并丢失其在分区表中的记录,这样,它也就不再是活动的。

  活动分区其实说白了就是写有引导数据的主分区,它可以完成与BIOS交接启动任务等一系列动作,以用来引导系统

  主分区最好只有一个,不然管理起来会比较麻烦,目前来说,小点的硬盘分10G就可以,大的可以考虑15--20G左右,太大了就没有意义了

 

将分区标记为活动分区(仅限于 32 位)

方法1:使用windows界面:
1. 在“运行”里输入"compmgmt.msc"(打开计算机管理);
2. 在控制台树种,单击"计算机管理"-"存储"-"磁盘管理";
3. 在需要标为活动的分区上,点击"右键",点击"将磁盘分区标为活动的"。

方法2:使用命令行:
1. 在"运行"里,输入"cmd";
2. 接着输入"diskpart";
3. 接着输入"list disk";
4. 接着输入"select disk 0"比如我们现在要将第1硬盘的第1分区做为活动的;
5. 接着输入"list partition";
6. 接着输入"select partition 1";
7. 最后输入"active"。

取消将磁盘分区标为活动的

取消的时候只能有命令行,因为windows界面的那个选项卡已经变为浅色的不可以勾选了。

1.命令行提示符,运行DISKPART,运行入提示符变成"DISKPART>";
2.使用"LIST DISK"命令确定你的移动硬盘的##号;
3.使用"Select DISK 0"将你的移动磁盘设置成当前操作磁盘;
4.使用"Select PARTITION 1"将第一个分区设置成当前的操作分区;
5.使用"INACTIVE"命令解除当前分区的活动状态。

Submitted by 多情浪子 on 2014, March 12, 7:25 PM
阅读全文  |  学习笔记  |  评论(1)  |  引用(0)  |  附件:0  |  点击:2716
Powered by Sablog 怎么样设置windows服务的依存关系
可以用修改注册表的方法
 
HKLM\System\CurrentControlSet\Services\Your_Service\DependOnService  
   
  REG_MULTI_SZ  
 
找到自己要要添加的依存服务,新建一个多字符串值名字叫DependOnService
把自己想要依存的服务写在里面就可以了!
 
     通过在2011的coreserver服务中加入speedserver的DependOnService就可以解决两个服务端口冲突导致后启动的服务无法正常使用,通过依存原则,speedserver始终会在coreserver前启动,就不会导致问题出现了。
Submitted by 多情浪子 on 2014, March 12, 7:25 PM
阅读全文  |  学习笔记  |  评论(0)  |  引用(0)  |  附件:0  |  点击:2859
Powered by Sablog utf-8签名引起的血案

因为开发个简单的后台,要用到xml输出,最初测试一切正常,后来输出中文是出现乱码,经过google以后发现文件编码使用utf-8可以解决输入输出中文的问题。果然解决了,不过后来包含数据库连接文件后问题出现了,只要使用包含文件,在xml页面编辑前就会出现“?”,每包含一个文件就多出一个问号,导致xml解析出错,非常郁闷中,只能在每个文件里写上包含文件的内容。今天花了大把力气发现使用ansi编码可以使用包含,但是输出地xml内容包含中文时又会出错,在查找php指定输入编码时发现了一篇文章,地址是:http://www.lao8.org/html/8/2011-4-9/PHP_include_kongbai.html 

我顿时恍然大悟,原来是utf-8签名惹的祸

Submitted by 多情浪子 on 2014, March 12, 7:23 PM
阅读全文  |  学习笔记  |  评论(1)  |  引用(0)  |  附件:0  |  点击:2933
Powered by Sablog win32k桌面堆栈分配失败

问题现象:

服务器运行一段时间以后,无法打开新的图形界面程序,很多图形程序的一些菜单或者按钮点击后无效,在系统日志中会看到win32k的警告,信息为桌面堆栈分配失败。

只要注销一下就可以解决问题,但是原因到底在哪里呢?

 引用下文:

如果你跟我一样,有4G以上的RAM,又喜欢在桌面同时开一缸子程式节省来回切换的时间,你应该有遇到以下情境的经验: 明明RAM还有剩很多,电脑却开始不听始唤: 新程式的画面出不来、程式视窗关不掉(按右上角的X没用)、选单项目不见、视窗一片空白、右键选单出不来... 设法关掉一些程式后,记忆体用得少了,系统就又恢复正常 被这问题困扰很久,也请教不少专家,都没得到明确的解答,大部分的人刻板印象是: Windows在记忆体用很多时,就会怪怪的,不太稳... 而关掉程式释放一些Memory后就会恢复,似乎也印证了这个讲法有几分道理。 一直以来,我除了接受这个笼统且对Windows带点歧视的结论之外,也没有其他选择。直到几前天,我很幸运地在事件检视器中发现这个错误讯息: Failed to create a desktop due to desktop heap exhaustion. 用这个错误讯息Goggle到相关文章,我才搞懂,RAM再多,Desktop Head Size却是固定的,用完了就有可能导致桌面不正常,例如: 新视窗开不起来。推敲了一下,我觉得这个限制极有可能就是造成RAM剩很多,桌面操作却开始不正常的元凶!! 另外,我还找到了dheapmon这个好工具,可以测量Desktop Head的用量,就待下回出问题时,再来好好地剖析一下。 昨天,桌面开了一堆东西,想开Word档案,却发现Word只出现外框,文件开不出来。机不可失,兴奋地用颤抖的手开启dheapmon检查: C:\Program Files\Debugging Tools for Windows\DskHeapMon\x86>dheapmon Desktop Heap Information Monitor Tool (Version 8.1.2925.0) Copyright (c) Microsoft Corporation. All rights reserved. ------------------------------------------------------------- Session ID: 0 Total Desktop: ( 6848 KB - 10 desktops) WinStation\Desktop Heap Size(KB) Used Rate(%) ------------------------------------------------------------- WinSta0\Default 3072 99.8 WinSta0\Disconnect 64 4.0 WinSta0\Winlogon 128 8.2 Service-0x0-3e7$\Default 512 13.6 Service-0x0-3e4$\Default 512 3.2 Service-0x0-3e5$\Default 512 1.2 SAWinSta\SADesktop 512 0.8 __X78B95_89_IW\__A8D9S1_42_ID 512 0.4 Service-0x0-1eefc$\Default 512 1.2 Service-0x0-27435$\Default 512 1.4 ------------------------------------------------------------- Bingo!!! 命中要害,Heap用掉99.8%,关掉一些程式,降到86%后,系统就又正常了。由此,我可以确认这个困扰已久的问题,就是肇因于Desktop Heap耗尽。依著MS KB的说明(看英文版比较好,"Out of Memory" error message = 「 邮件答录机的记忆体 」 错误讯息,算你狠!!),调成SharedSection=1024,8192,512(原来的值是3072[注: x64 OS预设20M起跳],原本只敢小小加到4096,但看到有人开到8192也没事,加上这个数字调大的影响似乎只会影响同时连线的Terminal Service Session数,对我的工作机不是问题,索性就一口气开上8M),从此就可以尽情地开视窗了,再也不怕桌面疯疯颠颠了。 【參考資料】

�}外話,很多時候,所謂的"不穩"、"怪怪的"、"見鬼了",多半另有隱情,搞通了就不再詭異,對系統的掌握度也就更上一層樓了。不過,是否真能揪出背後的元凶,跟追問�}者的積極度(像遇到我這種不信邪的瘋子)、錯誤訊息的明確性(例如: 只知桌面不知使喚,沒有任何警告或提示)、有無適當的偵測工具(dheapmon好棒),都很有關係。在本案例,要不是無意發現Desktop Heap耗盡的錯誤訊息,我對此問�}的認知,大概永遠只停留在"Windows桌面開很多東西就會不穩"的層次(没給User明確的訊息,Windows背負這個污名也是活該吧XD)。原來,對茶包射手來說,�\氣也很重要!!

测试后继续......

Submitted by 多情浪子 on 2014, March 12, 7:22 PM
阅读全文  |  学习笔记  |  评论(11)  |  引用(0)  |  附件:0  |  点击:5490
Powered by Sablog Desktop Heap Monitor 安装笔记

下载后解压缩,在cmd下执行对应的版本,你可以能会收到这个错误:

dheapinst - Win32k.sys symbol load error, correct symbol required
 
解决方法有三个:
Method 1: Access the Microsoft symbol server directly to obtain the correct symbol
If the destination computer is connected to the Internet, you may access the Microsoft symbol server directly to obtain the correct symbol. To do this, follow these steps:
Click Start, click Run, type cmd in the Open box, and then click OK.
At the command prompt, type dheapinst.exe -y srv*http://msdl.microsoft.com/download/symbols, and then press ENTER.
方法一、在连接互联网的情况下输入:
dheapinst.exe -y srv*http://msdl.microsoft.com/download/symbols
回车
Note If the installation is successful, you receive a message that is similar to the following:
dheapinst - Desktop Heap Monitor installed successfully
如果安装成功提示:
dheapinst - Desktop Heap Monitor installed successfully

After you receive the message that is mentioned in step 2, type dheapmon -l, and then press ENTER.
第二步在cmd下输入:
dheapmon -l然后回车,成功的话提示
Desktop Heap Information Monitor Tool (Version 8.0.2823.0) Copyright (c) 2003-2005 Microsoft Corporation. All rights reserved. Dheapmon - Driver loaded successfully
Note You receive a message that is similar to the following:
Desktop Heap Information Monitor Tool (Version 8.0.2823.0) Copyright (c) 2003-2005 Microsoft Corporation. All rights reserved. Dheapmon - Driver loaded successfully
After you receive this message, the necessary drivers are loaded, and you are ready to use the Desktop Heap Monitor tool.
Type exit, and then press ENTER to close the Command Prompt window.
Back to the top
然后执行dheapmon应该就可以了,可能会收到如下内容:
Desktop Heap Information Monitor Tool (Version 8.1.2925.0)
Copyright (c) Microsoft Corporation.  All rights reserved.
-------------------------------------------------------------
  Session ID:    0 Total Desktop: (  4288 KB -    5 desktops)
  WinStation\Desktop            Heap Size(KB)    Used Rate(%)
-------------------------------------------------------------
  WinSta0\Default                    3072             98.4
  WinSta0\Disconnect                   64              4.0
  WinSta0\Winlogon                    128              6.7
  Service-0x0-3e7$\Default            512              8.1
  Service-0x0-3e4$\Default            512              0.5
-------------------------------------------------------------
这里看得出,我的第一项超高了
 
Method 2: Specify the symbol server path in the _NT_SYMBOL_PATH environment variable
If the destination computer is connected to the Internet, you may specify the symbol server path in the _NT_SYMBOL_PATH environment variable. To do this, follow these steps:
Click Start, click Run, type cmd in the Open box, and then click OK.
At the command prompt, type set _NT_SYMBOL_PATH=symbol server path, and then press ENTER.
For example, you may specify the symbol server path as follows: set _NT_SYMBOL_PATH=symsrv*symsrv.dll*C:\Symbols*http://msdl.microsoft.com/download/symbols
Type dheapinst.exe, and then press ENTER to install the Desktop Heap Monitor tool.
Note The correct symbol is copied to the specified symbol folder from the symbol server. If the Microsoft End-User License Agreement (EULA) dialog box appears, click Yes to agree to the terms of the Microsoft Software License Terms. If the installation is successful, you receive a message that is similar to the following:
dheapinst - Desktop Heap Monitor installed successfully
After you receive the message that is mentioned in step 3, type dheapmon -l, and then press ENTER.
Note You receive a message that is similar to the following:
Desktop Heap Information Monitor Tool (Version 8.0.2823.0) Copyright (c) 2003-2005 Microsoft Corporation. All rights reserved. Dheapmon - Driver loaded successfully
After you receive this message, the necessary drivers are loaded, and you are ready to use the Desktop Heap Monitor tool.
Type exit, and then press ENTER to close the Command Prompt window.
Back to the top
Method 3: Set the correct symbol manually
If the destination computer is not connected to the Internet, you must obtain the correct symbol to install the Desktop Heap Monitor tool successfully. To do this, follow these steps:
Use another computer that is connected to the Internet to download the symbol package. To download the symbol package, visit the following Microsoft Web site:
http://www.microsoft.com/whdc/DevTools/Debugging/symbolpkg.mspx (http://www.microsoft.com/whdc/DevTools/Debugging/symbolpkg.mspx)
Install the Desktop Heap Monitor tool on the destination computer. To do this, follow these steps:
Click Start, click Run, type cmd in the Open box, and then click OK.
At the command prompt, type dheapinst -y symbol path, and then press ENTER.
Note In this step, symbol path is the path of the folder where the symbol package is installed. If the installation is successful, you receive a message that is similar to the following:
dheapinst - Desktop Heap Monitor installed successfully
After you receive the message that is mentioned in step b, type dheapmon -l, and then press ENTER.
Note You receive a message that is similar to the following:
Desktop Heap Information Monitor Tool (Version 8.0.2823.0) Copyright (c) 2003-2005 Microsoft Corporation. All rights reserved. Dheapmon - Driver loaded successfully
After you receive this message, the necessary drivers are loaded, and you are ready to use the Desktop Heap Monitor tool.
Type exit, and then press ENTER to close the Command Prompt window.
Note If a hotfix is installed on the destination computer, you must obtain the symbol from the hotfix package
Submitted by 多情浪子 on 2014, March 12, 7:21 PM
阅读全文  |  学习笔记  |  评论(0)  |  引用(0)  |  附件:0  |  点击:18279
Powered by Sablog 双网关可行性分析

测试目的:

主要是测试在主网关遭受攻击无法访问的情况下,第二网关能否实现无缝接管。

实现方法:

route   add   0.0.0.0   mask   0.0.0.0   192.168.0.2     metric   10 -p  

metric值小的来路由自己的信息,当192.168.0.1掉线,客户机会选择备用网关

测试环境:

Submitted by 多情浪子 on 2014, March 12, 7:20 PM
阅读全文  |  学习笔记  |  评论(0)  |  引用(0)  |  附件:0  |  点击:2937
Powered by Sablog Win7&Win2008优化

一、关闭UAC
1.开始--设置 --控制面板(切换成经典视图) --用户帐户--打开或关闭“用户账户控制”--取消选择 “使用用户控制帮助保护账户您的计算机”这个选项。确定重启系统就好了。

2.同时按下键盘的“Win + R”键,在运行对话框中输入“msconfig”,打开“系统配置”。找到“工具”标签中,选中“禁用UAC”,单击“启动(L)”即可禁用烦人的对话框--用户账户控制功能(UAC),需要重启系统

3.同时按下键盘的“Win + R”键,在运行对话框中输入“cmd”,或者开始 --程序 --附件--命令提示符,打开dos窗口,在里面输入下面这个命令:
cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
或者
cmd.exe /k reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f

重启系统

4.同时按下键盘的“Win + R”键,在运行对话框中输入“regedit”,打开注册表:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System,找到键值 EnableLUA   ,双击它,打开这个对话框,把基数修改成 十进制 ,将数值数据修改成 0。重启系统


二、关闭休眠
关闭UAC,重启电脑生效后,进入command模式后,输入powercfg -h off,不过这样做的后果是,你的电脑把休眠功能关掉了。要重新启用休眠的话,输入powercfg -h on不推荐关闭UAC你直接在“命令提示符”的快捷方式上点右键,有一个“以管理员方式运行”,然后输入powercfg -h off就好了,而且不用restart


三、去除考虑更改密码提示
控制面板-管理工具-本地安全策略-账户策略-密码策略,双击右边的“密码最长使用期限”,在弹出框中,将“密码过期天数”改为0就行了,也就是没有密码使用期限的限制了

四、操作中心小图标
打开组策略后依次打开:

用户配置------管理模板--------“开始菜单”和任务栏在里面找到 删除“操作中心”图标 选择启用,然后重新启动计算机或者注销重新登陆Windows7,一切清净了。

Submitted by 多情浪子 on 2013, November 5, 7:35 AM
阅读全文  |  学习笔记  |  评论(0)  |  引用(0)  |  附件:0  |  点击:2705

共有54条记录, 8条/页 « 1 2 3 4 5 6 7 »