编译安装(nexus-2.14.4-03)后,添加系统(centos 7)开机启动项
注:亲测可用!
1. 上传nexus启动脚本
# cd /etc/init.d/
# cp /usr/local/nexus/bin/nexus nexus
2. 修改etc/init.d/nexus
NEXUS_HOME="/usr/local/nexus/"
RUN_AS_USER=root
3. 修改/usr/local/nexus/bin/jsw/conf/wrapper.conf
wrapper.java.command=/usr/local/jdk1.8.0_91/bin/java
4. chkconfig --add nexus
chkconfig --levels 345 nexus on
时间: 2024-11-03 19:52:08