Start Nexus error report: Detected execution as "root" user.

[root@ztosin-maven bin]-sharp nexus start
WARNING: ************************************************************
WARNING: Detected execution as "root" user.  This is NOT recommended!
WARNING: ************************************************************
Starting nexus

it"s no use if I set up the nexus.rc file:
run_as_user=root

Apr.21,2022

solved it by yourself,

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

then su nexus executes: nexus start is successful

Menu