CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.

您好!感谢您提供的信息。对于您遇到的问题,“CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.”,这意味着Supervisor以root权限运行,但未在配置文件中指定用户。

为了避免此提示信息,您可以按照以下步骤操作:

  1. 找到Supervisor的配置文件:通常位于"/etc/supervisor/supervisord.conf"或"/etc/supervisor/conf.d/"目录中。

  2. 修改配置文件:打开配置文件,在"[supervisord]“部分中添加或修改"user=root"行。如果想要以root身份运行,可以将"user"参数设置为"root”。

  3. 保存并重新加载配置:保存配置文件,并重新加载Supervisor配置,使更改生效。您可以使用以下命令重新加载配置文件:

sudo supervisorctl reread
sudo supervisorctl update

请注意,以root权限运行Supervisor可能存在安全风险。建议您根据实际需求选择适当的用户来运行Supervisor。

如果您在操作中遇到任何问题或需要进一步的帮助,请随时提供更多信息,我将尽力为您解答。