rstudio-server安装
#wget https://download2.rstudio.org/rstudio-server-rhel-1.1.463-x86_64.rpm
#yum install rstudio-server-rhel-1.1.463-x86_64.rpm
#rstudio-server start ---启动
#rstudio-server verify-installation --查看安装状态 默认端口是8787
shiny-server 安装
#wget https://download3.rstudio.org/centos6.3/x86_64/shiny-server-1.5.9.923-x86_64.rpm
#yum install shiny-server-1.5.9.923-x86_64.rpm
编辑配置文件
[root@t183 ~]# vim /etc/shiny-server/shiny-server.conf # Instruct Shiny Server to run applications as the user "shiny"
run_as shiny; # Define a server that listens on port 3838
server {
listen 3838 0.0.0.0;
# Define a location at the base URL
location / { # Host the directory of Shiny Apps stored in this directory
site_dir /opt/shiny-server; # Log all Shiny output to files in this directory
log_dir /var/log/shiny-server; # When a user visits the base URL rather than a particular application,
# an index of the applications available in this directory will be shown.
directory_index on;
}
}
启动
start shiny-server