启动Nexus报错:Detected execution as "root" user.

问题描述 

[nexus@instance-uv82em6w bin]$ ./nexus start
WARNING: ************************************************************
WARNING: Detected execution as "root" user.  This is NOT recommended!
WARNING: ************************************************************
Starting nexus

我设置了nexus.rc文件也没用:

run_as_user=root

问题解决 

1、添加nexus用户

useradd nexus
chown -R nexus:nexus /usr/local/nexus

重置nexus.rc文件

run_as_user=nexus

再次启动

启动Nexus报错:Detected execution as "root" user.

上一篇:如何彻底解决Androidstudio中运行通告栏时报Developer warning for package "com.example.my"Failed to post no


下一篇:英语学习