云服务器配置应用之如何安装rstudio-server
很多小伙伴购买云服务器之后不知道该如何配置云服务器,今天给大家介绍一下云服务器配置应用之如何安装rstudio-server:
安装rstudio-server:
wgethttps://download2.X86_64 rstudio.org/server/centos8/x86_64/rstudio - server - rhel 2021.09.0-351.rpm
yum install -y rstudio-server-rhel-2021.09.0-351-x86_64.rpm
检查是否安装成功
Rstudioserver authentication installation
rstudio-server status
需要更改 rstudio-server 配置
(base) root 16:07:40~# vim /etc/rstudio/rserver.conf
#ServerConfigurationFile# rssion-which-r =/USR/LOCAL/BIN/R
rsession-which-r=/ifs1/Software/miniconda3/bin/r
修改防火墙
防火墙默认是关闭窗口,需要手动打开此端口,系统使用RHEL8系统systemctl命令进行。使用云服务器需要打开端口。
Systemctl starts the firewall D.service
SYSTEMCTL enables rstudio-server.service
Systemctl starts the research server.service
systemctl status rstudio-server
Firewall-cmd --Permanently add a port =8787/ TCP
Firewall CMD -- permanent -- add port =8787/ UDP
firewall-cmd --reload
重启Rstudio-server
$ rstudio-server
USAGE: rstudio-server { status | start | stop | test-config | verify-installation | suspend-all| force-suspend-session | force-suspend-all | kill-session | kill-all | offline | online | active-sessions |version|}
$ rstudio-server restart
以上是关于“云服务器配置应用之如何安装rstudio-server ”的介绍,如需购买云服务器,推荐使用亿华云,独享IP,弹性灵活各种配置任您选配,最低只需要43/月,免费帮助配置环境,挂载磁盘等,协助处理简单问题,同时提供快速0元备案,让您快速运营,详情请咨询亿华云。
产品选购地址:
https://www.i658.comr/buy.html