linux nexus 使用问题

问题一,启动提示设置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

转载于:https://my.oschina.net/kenzheng/blog/859622

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值