
1.3.3 开启和关闭端口
默认情况下,Windows有很多端口是开放的,在用户上网时,网络病毒和黑客可以通过这些端口连接用户计算机。为了让计算机系统变得更加安全,应该封闭这些端口,主要有TCP 135、139、445、593、1025端口和UDP 135、137、138、445端口,一些流行病毒的后门端口(如TCP 2745、3127、6129端口)以及远程服务访问端口3389。

图 1.3.3-1
1.开启端口
在Windows系统中开启端口的具体操作步骤如下。
步骤1:在任务栏右键单击开始图标,在弹出菜单单击“控制面板”,如图1.3.3-1所示。
步骤2:在“控制面板”窗口,单击“管理工具”,如图1.3.3-2所示。
步骤3:打开管理工具窗口,双击“服务”选项,如图1.3.3-3所示。
步骤4:打开“服务”窗口,查看多种服务项目,如图1.3.3-4所示。

图 1.3.3-2

图 1.3.3-3

图 1.3.3-4
步骤5:右击要启动的服务,在弹出的列表中单击“属性”选项,如图1.3.3-5所示。
步骤6:在“启动类型”下拉列表中选择“自动”选项,然后单击“启动”按钮,启动成功后单击“确定”按钮,如图1.3.3-6所示。

图 1.3.3-5

图 1.3.3-6
步骤7:查看已启动的服务,可以看到该服务在状态一栏已标记为“正在运行”,如图1.3.3-7所示。
2.关闭端口
在Windows系统中关闭端口的具体操作步骤如下:
步骤1:打开“服务”窗口,查看多种服务项目,如图1.3.3-8所示。
步骤2:右击要关闭的服务,在弹出的列表中单击“属性”选项,如图1.3.3-9所示。
步骤3:在“启动类型”下拉列表中选择“禁用”选项,然后单击“停止”按钮,服务停止后单击“确定”按钮,如图1.3.3-10所示。

图 1.3.3-7

图 1.3.3-8

图 1.3.3-9

图 1.3.3-10
步骤4:查看已停止的服务,可以看到该服务启动类型已标记为“禁用”,状态栏也不再标记“已启动”,如图1.3.3-11所示。

图 1.3.3-11