实际是通过c#编程方式调用了CMD命令行,然后调用netstat命令,然后将CMD命令的输出流转到了C#控制台程序上.也可以将结果输出到文件. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; namespace _19获得系统打开的端口和状态 { class Program { static void Main(strin
刚装上去的时候,可以打开xampp,但是重启的时候出现以后以下问题 13:49:02 [Apache] Error: Apache shutdown unexpectedly.13:49:02 [Apache] This may be due to a blocked port, missing dependencies, 13:49:02 [Apache] improper privileges, a crash, or a shutdown by another