在CentOS上安装和部署Shiny Server

1、安装R: sudo yum install R

2、安装Shiny的R包: sudo su - \ -c "R -e \"install.packages('shiny', repos='http://cran.rstudio.com/')\""

3、下载并安装Shiny Server:

wget http://download3.rstudio.org/centos-5.9/x86_64/shiny-server-1.3.0.403-rh5-x86_64.rpm
sudo yum install --nogpgcheck shiny-server-1.3.0.403-rh5-x86_64.rpm

4、控制命令

启动: sudo start shiny-server

停止: sudo stop shiny-server

重启: sudo restart shiny-server

5、配置文件

文件路径:/etc/shiny-server/shiny-server.conf

默认端口:3838

默认发布路径:/srv/shiny-server

参考资料:

http://www.rstudio.com/products/shiny/download-server/

http://rstudio.github.io/shiny-server/latest/