简体   繁体   English

无法在Linux服务器上通过OpenCpu创建临时文件

[英]Unable To Create Temp File by OpenCpu On Linux Server

Today we installed opencpu on Linux server. 今天,我们在Linux服务器上安装了opencpu。 After that all packages are properly loaded but temporary file is not getting created. 之后,所有软件包均已正确加载,但未创建临时文件。 If we pass value and converted into json like 如果我们传递值并转换成json之类的

-d 'x=10' -d'x = 10'

It is giving only encrypted URL like : - 它仅提供如下加密网址:-

http://hostname.server.com:8080/auth-sign-in?appUri=%2Fp%2F5656%2Focpu%2Flibrary%2Fmypack12%2FR%2Fhostname@example.com8080:~$

We refer below URL but gives same output as above 我们引用下面的URL,但是给出与上面相同的输出

If we work on local machine on windows, it is properly working. 如果我们在Windows上的本地计算机上工作,则它可以正常工作。 It would really help if someone can look into the above issue and suggest resolution or workaround. 如果有人可以研究以上问题并提出解决方案或解决方法,那将真的有帮助。

You should not be accessing the OpenCPU server via Hostname/p/5656/ocpu (which looks like the rstudio ide built-in proxy) but directly via http://Hostname/ocpu . 您不应通过Hostname/p/5656/ocpu (看起来像rstudio ide内置代理)访问OpenCPU服务器,而应直接通过http://Hostname/ocpu

It looks like your rstudio proxy server intercepts the api request to redirect to a authentication page. 看起来您的rstudio代理服务器拦截了api请求以重定向到身份验证页面。

The OpenCPU server builds on Apache2, you don't need RStudio at all. OpenCPU服务器基于Apache2构建,您根本不需要RStudio。 You can use RStudio to write R code if you like, but the two are completely unrelated. 如果愿意,可以使用RStudio编写R代码,但这两者是完全无关的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM