在 ubuntu 中停止或重新启动 R CMD Rserve

stop or restart the R CMD Rserve in ubuntu

实际上我想停止或重新启动 Rserve 我读过这个 但我想如果我杀了它,它会关闭并且我无法再次启动它。

我只想刷新它,让它识别我安装或升级的包。 当我尝试 运行 时,如下所示:

R CMD Rserve

R version 3.3.3 (2017-03-06) -- "Another Canoe"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

Rserv started in daemon mode.

##> SOCK_ERROR: bind error #98(address already in use)

我收到这个错误,有人知道我应该怎么做吗?

请注意,在 ubuntu 上,此命令行不起作用

R CMD something

谢谢

"address already in use" 表示您在同一个端口上已经 Rserve 运行。关闭 Rserve 最简单的方法是通过

killall -INT Rserve

关闭后,您可以使用 R CMD Rserve 重新启动它。