I am trying to connect R from a browser using opencpu js. I cannot have opencpu in local mode and I need it to run in remote host so that my javascript based app server can be access by multiple users from where bunch of input data needs to be sent to openCPU server and R modules should work independently for each user.
I have a centOS6 instance where I have R installed properly. I have managed to install openCPU as well using the rpm binary https://archive.opencpu.org/centos-6/. The installation was successful but ended with:
sudo rpm -ivh opencpu-server-2.1.0-rpm0.x86_64.rpm
Preparing... ########################################### [100%]
1:opencpu-server ########################################### [100%]
/var/tmp/rpm-tmp.T2qZY9: line 13: systemctl: command not found
/var/tmp/rpm-tmp.T2qZY9: line 14: systemctl: command not found
/var/tmp/rpm-tmp.T2qZY9: line 13: systemctl: command not found
/var/tmp/rpm-tmp.T2qZY9: line 14: systemctl: command not found
,which means the stage where after successful installation the server gets started, has failed as systemctl is not present in centOS.
So my questions are: - what is the best way to start the openCPU server ? - how can i change the port as i don't have all ports open ? - Is this approach of connecting remote openCPU server instance from browser feasible or am I in a wrong direction?
Any pointers would be very helpful.
Thanks in advance.