防火墙启用,增加禁用端口提供给外部访问 @echo off color E2 title 关闭常见的危险端口 echo 正在开启Windows防火墙 echo. netsh advfirewall set currentprofile state on > nul netsh advfirewall set publicprofile state on > nul netsh advfirewall set allprofile state on > nul netsh advfirew
1.查看主机信息 # more /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 xyn-redhat localhost.localdomain localhost 2.查看进程 # ps -aux|grep java //显示所有进程名中包含java字符串的进