在ubuntu上部署R以及shiny server

2021-08-29 04:15:13 字數 1318 閱讀 9100

ubuntu16.04 安裝r與rstudio

install ubuntu安裝rstudio server

我按官網的文件安裝,比較可靠,安裝的是r3.4,之前 用清華映象不知道怎麼就安裝3.2了。

ubuntu packages for r

其實整個過程參考這篇文章就可以了:

ubuntu下安裝r,公升級r版本,安裝rstudio,安裝rstudio server以及安裝shiny server

只需要一步命令:sudo apt-get install r-base

第一步給ubuntu指定ppa:sudo add-apt-repository ppa:marutter/rrutter

第二步:sudo apt-get update

第三步:sudo apt-get upgrade

第二步:sudo apt-get install gdebi

第三步:切換路徑cd ./downloads

第四步:sudo gdebi rstudio-server-1.0.143-amd.deb

第五步:http://localhost:8787 #8787是rstudio server的web埠

第六步:輸入ubuntu系統的帳號和密碼即可登入,如果在公司裡也可以讓在同一網段的同事電腦登入你的rstudio server。

第二步:首先輸入:sudo su - \

其次輸入:

-c "r -e \"install.packages('shiny', repos='')\""
安裝必須的r語言shiny包,可能要等好長時間。

第三步:sudo gdebi shiny-server-1.5.3.838-amd64.deb

第四步:http://localhost:3838 #3838是shiny server的web埠

shiny server professional v1.5.10 administrator』s guide

#檢視狀態

sudo systemctl status shiny-server

#開啟sudo systemctl start shiny-server

#停止sudo systemctl stop shiny-server

#重啟sudo systemctl restart shiny-server

參考文章

這裡的「hello」資料夾就是乙個shiny應用,包括乙個server.r檔案和乙個ui.r檔案。因些修改資料夾後面的路徑,就可以訪問不同shiny應用。

參考部落格

gearman 在Ubuntu上部署Gearman

wget tar zxvf gearmand 1.1.12.tar.gz cd gearmand 1.1.12 configure configure error could not find boost sudo apt get install libboost dev 接著重新執行 config...

在 Ubuntu 上部署 Snort 入侵檢測系統

目錄 1.介紹 2.安裝過程 3.總結 4.參考文章 1.介紹 snort的預設記錄是存放在 log 文字檔案中,而為了觀察監控方便起見,一般使用 acidbase 這個網頁控制台來檢視 好像 mysql 的 phpmyadmin 所以整個過程需要 安裝 snort 和相應包 安裝 lamp lin...

mysql資料庫在Ubuntu上部署

第1步 ubuntu介面按快捷鍵ctrl alt t進入命令終端 第2步 開啟 ubuntu 終端,使用下面sudo命令進入管理員許可權,執行 sudo su,輸入系統的密碼 第3步 ubuntu 上安裝 mysql 非常簡單只需要幾條命令就可以完成,執行 apt get install mysql...