How to set the opencpu default port for single user

陌路散爱 提交于 2019-12-22 17:56: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).



来源:https://stackoverflow.com/questions/32647584/how-to-set-the-opencpu-default-port-for-single-user

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!