$ wget https://download2.rstudio.org/server/centos7/x86_64/rstudio-server-rhel-1.4.1717-x86_64.rpm
$ sudo yum install rstudio-server-rhel-1.4.1717-x86_64.rpm
修改配置文件 📋 /etc/rstudio/rserver.conf,添加以下内容:
rsession-which-r=/usr/local/R/bin/R
www-port=8787
修改配置文件 📋 /etc/rstudio/rsession.conf,添加以下内容:
www-port=8787
查看 RStudio Server 状态:
$ sudo rstudio-server status
启动 RStudio Server:
$ sudo rstudio-server start
关闭 RStudio Server:
$ sudo rstudio-server stop
修改 RStudio Server 字体,修改 📋 ~/.config/rstudio/rstudio-prefs.json
{
"initial_working_directory": "~",
"posix_terminal_shell": "zsh",
"server_editor_font_enabled": true,
"server_editor_font": "Hack Nerd Font",
"custom_shell_command": "~/.cargo/bin/nu",
"editor_theme": "Material"
}
修改完成之后,需要重启一下 RStudio Server.