I am working with opencpu. I installed the opencpu as a single user mode. When the session is expired the link is down and sometimes the port number is changing dynamically. I would like the port to be constant during every run even the current session is expired.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can set the port when you start the single user server:
library(opencpu)
opencpu$stop()
opencpu$start(1234)
This will start opencpu on port 1234. I recommend you try the cloud server, which always runs on port 80 (http) and 443 (https).