改名
This commit is contained in:
@@ -309,7 +309,7 @@ class ServerManager
|
||||
private function portIsAlready($port): bool|string
|
||||
{
|
||||
if (!Kiri::getPlatform()->isLinux()) {
|
||||
exec('lsof -i :' . $port . ' | grep -i "LISTEN" | awk "{print $2}"', $output);
|
||||
exec("lsof -i :" . $port . " | grep -i 'LISTEN' | awk '{print $2}'", $output);
|
||||
if (empty($output)) return false;
|
||||
$output = explode(PHP_EOL, $output[0]);
|
||||
return $output[0];
|
||||
|
||||
Reference in New Issue
Block a user