If you are insist running as root, then set theenvironment variable run_as_user=root before this script.
Enter the command when configuring Nexus./nexus start appears "If you insist running as root, then set thee nvironment variable Run_as_user=root, before Running this script. "Warning message. Presumably: If you want to use root, you should set the environment variable "Run_as_user=root" before running the start script.
Solving method
There are two solutions to this problem, one is a temporary solution, the other is a permanent solution.
1. Temporary Methods
Input: Export run_as_user=root after execution./nexus start operation results are as follows:
2. Permanent Method
In the system configuration can be, input: Vi/etc/profile to add exportrun_as_user=root, after the change to save exit, the following figure
After the modification, first close the Nexus, and then start, the following figure
Just a few simple steps, OK.