我可以通过命令行启动appium服务器,通过命令行使用下面的命令,因为我使用npm安装了appium。
appium &
appium
//To change the default port
appium & --port 9090
appium --port 9090 正如我所观察到的,这两个命令都在执行相同的操作,所以它们是相同的还是有任何区别?
发布于 2019-12-20 17:03:11
appium &appium &在子subshell中运行Appium。
后果:
example.
control + c,您不能退出它们,您必须关闭整个终端来关闭会话,这样您可能会遇到更多的错误:)
Could not start REST http interface listener. The requested port may already be in use. Please make sure there is no other instance of this server running already.
Fatal Error: listen EADDRINUSE 127.0.0.1:4723这就是为什么我建议而不是在本地这样做的原因。(我认为在CI上这很好)
appiumappium在终端会话中运行Appium,本质上是将该进程“锁定”到该外壳。这样您就可以轻松地在control + c上退出MacOS上的程序。我推荐这个在当地。
https://stackoverflow.com/questions/59419626
复制相似问题