谁能帮我?该程序的目标是杀死在端口 443 上运行的进程,然后xampp
自动启动。
我所做的:
#include <stdio.h>
#include <stdlib.h>
main() {
system("netstat -tulpn | grep :443");
/* If 443 is busy (kill all)*/
/*next -> */ system("/opt/lampp/xampp start");
}
Run Code Online (Sandbox Code Playgroud)