A simple walkthrough to install and configure an RStudio Webserver instance on Centos 7.
As always, this is as much documentation for me as it is intended to be a tutorial but suggested corrections, additions and omissions are welcomed.
Go to the downloads page and download the most current version, e.g.:
sudo wget https://download2.rstudio.org/rstudio-server-rhel-0.99.903-x86_64.rpm
Install, which also starts the service:
sudo yum install -y --nogpgcheck rstudio-server-rhel-0.99.903-x86_64.rpm
Check current status and enable for future boots.
sudo systemctl status rstudio-server.service sudo systemctl enable rstudio-server.service
Enable incoming TCP traffic to the port being served by RStudio, allowing you to access the webserver from anywhere on the LAN/VPN.
sudo firewall-cmd --permanent --zone=public --add-port=8787/tcp sudo firewall-cmd --reload
Now you should be able to use a browser to navigate to your IP on port 8787 to access the web server.
Updating is made unbelievably easy by RStudio. Simply running the install will automatically update and restart the server – saving all sessions:
wget https://download2.rstudio.org/rstudio-server-rhel-1.0.136-x86_64.rpm $ sudo yum install -y --nogpgcheck rstudio-server-rhel-1.0.136-x86_64.rpm