You could earn up to $300 by adding new articles!Get Started Now
This article will guide you through the process of installing Shiny Server on a CentOS 7.
sudo yum install epel-release sudo yum update sudo shutdown -r now
After the reboot, log in again as the same sudo user.
sudo yum install R
sudo su - -c "R -e \"install.packages(c('shiny', 'rmarkdown', 'devtools', 'RJDBC'), repos='http://cran.rstudio.com/')\""
If you need more R packages, you can install them in the same fashion.
Download and install Shiny Server:
cd wget https://download3.rstudio.org/centos5.9/x86_64/shiny-server-126.96.36.1996-rh5-x86_64.rpm sudo yum install --nogpgcheck shiny-server-188.8.131.526-rh5-x86_64.rpm
Note: The above wget download URL is up to date at the time of writing. You can always confirm the latest URL from the Shiny Server Download Page .
Start Shiny Server:
sudo systemctl start shiny-server sudo systemctl enable shiny-server
To allow people to use your Shiny apps, you need to modify firewall rules as below:
sudo firewall-cmd --permanent --zone=public --add-port=3838/tcp sudo firewall-cmd --reload
Now, you can open the following URL from your browser:
If all goes well, you would see the Shiny Server welcome page. On the right side of this page, you should also see a Shiny app and a Shiny Doc.
That concludes our tutorial. Thank you for reading.