无法在 RedHat AWS 上启动或停止 shiny-server
not able to start or stop shiny-server on RedHat AWS
我已经在 RedHat AWS EC2 实例上安装了闪亮的 运行。但是,它似乎永远是 运行,因为键入 stop shiny-server
或 start shiny-server
会导致错误:-bash: restart: command not found
。当我在 Ubuntu 实例上安装 shiny 时,我没有看到这个。有没有办法在 RedHat 上解决这个问题?
您可能正在使用 RedHat 7,因此您应该使用 systemd:
sudo systemctl start shiny-server
sudo systemctl stop shiny-server
sudo systemctl restart shiny-server
我已经在 RedHat AWS EC2 实例上安装了闪亮的 运行。但是,它似乎永远是 运行,因为键入 stop shiny-server
或 start shiny-server
会导致错误:-bash: restart: command not found
。当我在 Ubuntu 实例上安装 shiny 时,我没有看到这个。有没有办法在 RedHat 上解决这个问题?
您可能正在使用 RedHat 7,因此您应该使用 systemd:
sudo systemctl start shiny-server
sudo systemctl stop shiny-server
sudo systemctl restart shiny-server