在 Chromebook Linux/Debian 终端上从 AWS EC2 实例启动 RStudio 服务器

在 Chromebook Linux/Debian 终端上从 AWS EC2 实例启动 RStudio 服务器

因此,我能够安装并激活 rstudio-server,但我不确定如何启动服务器,以便我可以开始通过本地主机编写和运行脚本,如中所述https://indicatrix.org/post/running-rstudio-server-on-amazon-ec2/使用以下代码,但它对我来说不起作用:

ssh -N -L localhost:8787:localhost:8787 -i ~/.ssh/aws2.pem ubuntu@<aws-ip>

-bash: syntax error near unexpected token `newline'
systemctl status rstudio-server.service
● rstudio-server.service - RStudio Server
   Loaded: loaded (/etc/systemd/system/rstudio-server.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2020-10-07 17:27:17 UTC; 31min ago
  Process: 17108 ExecStart=/usr/lib/rstudio-server/bin/rserver (code=exited, status=0/SUCCESS)
 Main PID: 17109 (rserver)
   CGroup: /system.slice/rstudio-server.service
           └─17109 /usr/lib/rstudio-server/bin/rserver

任何帮助都将非常有帮助。

相关内容