gpt4 book ai didi

ubuntu - 运行 Shiny 服务器时出错

转载 作者:行者123 更新时间:2023-12-04 18:26:29 26 4
gpt4 key购买 nike

我尝试在 Ubuntu 中从终端运行 Shiny 的服务器,但我收到此错误:

nik@nik-VirtualBox:~$ shiny-server
[2017-02-13 10:42:28.353] [INFO] shiny-server - Shiny Server v1.5.1.834 (Node.js v6.9.1)
[2017-02-13 10:42:28.362] [INFO] shiny-server - Using config file "/etc/shiny-server/shiny-server.conf"
[2017-02-13 10:42:28.508] [ERROR] shiny-server - Error loading config: The user 'nik' does not have permissions to run applications as one of the users in 'shiny'. Please restart shiny-server as one of the users in 'shiny'. (/etc/shiny-server/shiny-server.conf:2:1)
[2017-02-13 10:42:28.510] [INFO] shiny-server - Shutting down worker processes

如何在 shiny-server 中运行应用程序?

新错误:

nik@nik-VirtualBox:~$ sudo shiny-server
[sudo] password for nik:
[2017-02-14 01:56:52.913] [INFO] shiny-server - Shiny Server v1.5.1.834 (Node.js v6.9.1)
[2017-02-14 01:56:52.922] [INFO] shiny-server - Using config file "/etc/shiny-server/shiny-server.conf"
[2017-02-14 01:56:53.055] [WARN] shiny-server - Running as root unnecessarily is a security risk! You could be running more securely as non-root.
[2017-02-14 01:56:53.064] [INFO] shiny-server - Starting listener on 0.0.0.0:3838
[2017-02-14 01:56:53.080] [ERROR] shiny-server - HTTP server error (0.0.0.0:3838): listen EADDRINUSE 0.0.0.0:3838
[2017-02-14 01:56:53.081] [INFO] shiny-server - Shutting down worker processes

最佳答案

Shiny 服务器有一个配置文件。默认用户名是 shiny。您的系统中没有用户 shiny,因此服务器拒绝启动。我通过以下方式解决了这个问题。

sudo nano /etc/shiny-server/shiny-server.conf

有一行:

run_as shiny;

shiny 更改为合法的用户名,然后重新启动 shiny 服务器:

sudo systemctl restart shiny-server

关于ubuntu - 运行 Shiny 服务器时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42219495/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com