2019独角兽企业重金招聘Python工程师标准>>>
问题一,启动提示设置RUN_AS_USER=root
但是,设置export或 /etc/profile未生效。
****************************************
WARNING - NOT RECOMMENDED TO RUN AS ROOT
****************************************
If you insist running as root, then set the environment variable RUN_AS_USER=root before running this script.
直接在nexus脚本中
vi bin/nexus
前面添加一句:
export RUN_AS_USER=root
问题二,启动提示JVM问题。
$ tail -f /path/to/nexus/logs/wrapper.log
wrapper | JVM exited while loading the application.
jvm 4 | wrapper | Unable to start JVM: No such file or directory (2)
wrapper | Reloading Wrapper configuration...
wrapper | Launching a JVM...
wrapper | Unable to start JVM: No such file or directory (2)
wrapper | JVM exited while loading the application.
jvm 5 | wrapper | Unable to start JVM: No such file or directory (2)
wrapper | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
wrapper | There may be a configuration problem: please check the logs.
wrapper | <-- Wrapper Stopped
打开配置文件,看注释,将java的绝对路径添加进wrapper.java.command,注意大小写
/bin/jsw/conf/wrapper.conf
# Set the JVM executable
# (modify this to absolute path if you need a Java that is not on the OS path)
#wrapper.java.command=java
wrapper.java.command=/opt/jdk1.7.0_79/bin/java
# The main class that JSW will execute within JVM