Ver código fonte

修改为更加准确的提示信息

upliu 11 anos atrás
pai
commit
a34d776656
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      workerman/Core/Lib/Checker.php

+ 1 - 1
workerman/Core/Lib/Checker.php

@@ -294,7 +294,7 @@ class Checker
         
         if(!is_writeable($pid_dir))
         {
-            exit("\n\033[31;40mYou should start the server as root\033[0m\n\n\033[31;40mWorkerman start failed\033[0m\n\n");
+            exit("\n\033[31;40m$pid_dir is not writeable, can't write pid file\033[0m\n\n\033[31;40mWorkerman start failed\033[0m\n\n");
         }
     }
 }