How to set the opencpu default port for single use

2019-05-21 13:59发布

问题:

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).



标签: r opencpu