Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用opencpu。我将opencpu安装为单用户模式。当会话过期时,链接会关闭,有时端口号会动态变化。我希望端口在每次运行期间保持不变,即使当前会话已过期。
您可以在启动单用户服务器时设置端口:
library(opencpu) opencpu$stop() opencpu$start(1234)
这将在端口 1234 上启动 opencpu。我建议您尝试云服务器,它始终在端口 80 (http) 和 443 (https) 上运行。