【发布时间】:2023-04-01 06:33:01
【问题描述】:
我需要跑步:
node server.js
还有:
java -Xmx4g -cp 'libraries/corenlp/*' edu.stanford.nlp.pipeline.StanfordCoreNLPServer -serverProperties StanfordCoreNLP-french.properties -port 9000 -timeout 15000
我试过了:
node server.js; java -Xmx4g -cp 'libraries/corenlp/*' edu.stanford.nlp.pipeline.StanfordCoreNLPServer -serverProperties StanfordCoreNLP-french.properties -port 9000 -timeout 15000
或者
node server.js && java -Xmx4g -cp 'libraries/corenlp/*' edu.stanford.nlp.pipeline.StanfordCoreNLPServer -serverProperties StanfordCoreNLP-french.properties -port 9000 -timeout 15000
但是在这两种情况下,当我在节点应用程序中询问 java 服务器时,它都没有运行。但是,如果我在 2 个不同的控制台中同时运行这两个命令。 没有问题。 谢谢
编辑:我尝试在 npm start 中执行此操作
【问题讨论】:
-
您使用哪个操作系统来运行这些进程?
-
@KrishnaKuntala Debian
标签: java node.js linux npm package.json