![在 Chromebook Linux/Debian 终端上从 AWS EC2 实例启动 RStudio 服务器](https://linux22.com/image/758443/%E5%9C%A8%20Chromebook%20Linux%2FDebian%20%E7%BB%88%E7%AB%AF%E4%B8%8A%E4%BB%8E%20AWS%20EC2%20%E5%AE%9E%E4%BE%8B%E5%90%AF%E5%8A%A8%20RStudio%20%E6%9C%8D%E5%8A%A1%E5%99%A8.png)
因此,我能够安装并激活 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
任何帮助都将非常有帮助。