nexus-2.14.4添加系统启动项
更新:HHH   时间:2023-1-7


编译安装(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


返回建站服务器教程...