Install Shiny Server in Ubuntu 14.04.1

转自:http://blog.csdn.net/lichangzai/article/details/39371867

Get the latest instructions and code from http://www.rstudio.com/shiny/server/install-opensource

We'll keep them here for posterity's sake, but you should not be using Shiny Server 0.3.x anymore.

Ubuntu 13.04 (or 12.10, 12.04)

# Install Node.js
sudo apt-get update
sudo apt-get install software-properties-common python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs

# Install R
sudo add-apt-repository "deb http://cran.rstudio.com/bin/linux/ubuntu $(lsb_release -cs)/"
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
sudo apt-get update
sudo apt-get install r-base r-base-dev

# Install Shiny in system-wide library
sudo su - \
-c "R -e \"install.packages('shiny', repos='http://cran.rstudio.com/')\""
# Install Upstart script
sudo wget\
  https://raw.github.com/rstudio/shiny-server/master/config/upstart/shiny-server.conf\
  -O /etc/init/shiny-server.conf

# Create a system account to run Shiny apps
sudo useradd -r shiny
# Create a root directory for your website
sudo mkdir -p /var/shiny-server/www
# Create a directory for application logs
sudo mkdir -p /var/shiny-server/log

# Start Shiny
sudo start shiny-server

# Optional: Install examples to test
sudo cp -R /usr/local/lib/R/site-library/shiny/examples /var/shiny-server/www/

Now open a browser to http://<hostname>:3838/examples/ and see if they work.


参考:

https://github.com/rstudio/shiny-server/wiki/Ubuntu-step-by-step-install-instructions
https://github.com/rstudio/shiny-server/wiki/Building-Shiny-Server-from-Source

http://rstudio.github.io/shiny-server/latest/#ubuntu-12.04


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值