Literally. It appears that there are already many people with similar problems. Maybe a question similar to my problem. But I don't find a solution yet, so I write it in detail.
I installed nexus on the Centos7 server as described in tutorial. The tutorial records the execStart
and execStop
commands in the service file incorrectly. I fixed it anyway. However, running Nexus will terminate immediately.
There were some answers to the previous question.
- The nexus execution account must have path permissions.(resolved)
- Root account should not run the nexus.(resolved)
However, the immediate termination is not resolved.
I think the only hint is the following. The official document contains information about the pid file.
If the service pid file cannot be written the service startup will silently fail, without any logging statements written to the nexus.log.
I cannot find the nexus.log
file. This means that the pid file cannot be created according to the above information. But it's just jvm.log
only exists. After connecting to the nexus account(created to run Nexus) and manually creating the file in /tmp
folder, it was possible to create and delete without any permission issues. However, if I manually turn on Nexus in that account, it will also shut down immediately.
How can you fix it? I'm waiting for help.