我和Mono提出了一个申请。在这个应用程序中,我将使用以下命令启动xsp4 WebServer:
string exe = "xsp4";
string args = "--root " + Path.Combine(Path.Combine(FSys.AppPath, "support"), "webapp");
args += " --port " + _activePort;
Process _procServerMac = new Process();
_procServerMac.EnableRaisingEvents = true;
_procServerMac.StartInfo.FileName = exe;
_procServerMac.StartInfo.Arguments = args;
_procServerMac.StartInfo.UseShellExecute = false;
_procServerMac.StartInfo.CreateNoWindow = true;
_procServerMac.Start();
如果我运行.app文件,从终端启动它,那么一切都能正常工作,但是如果我双击运行.app (所以没有终端窗口),进程就会立即退出,xsp将永远不会启动。
这怎么可能呢?
发布于 2015-02-06 14:49:29
溶液
现在添加这一行工作了:args += " --nonstop ";
https://stackoverflow.com/questions/28342911
复制相似问题