nexus在ubuntu下的配置
1.下载http://www.sonatype.org/downloads/nexus-latest-bundle.tar.gz
2.下载到/opt/nexus目录下,并解压:tar zxvf nexus-latest-bundle.tar.gz
3.修改/opt/Nexus/nexus-2.14.3-02/bin/nexus下的两项配置如下:
NEXUS_HOME="/opt/Nexus/nexus-2.14.3-02"
RUN_AS_USER='nexus'
4.建立nexus用户:
sudo adduser --no-create-home --disabled-login --disabled-password nexus
sudo passwd nexus
5.修改可执行权限:
cd /opt/Nexus/nexus-2.14.3-02/bin
sudo chmod a+x nexus
6.修改目录所有者:
sudo chown -R nexus:nexus /opt/nexus
ln -s /opt/Nexus/nexus-2.14.3-02/bin/nexus /etc/init.d/nexus
7.加入到启动项
rc-update nexus defaults
8.启动nexus
/etc/init.d/nexus start
9.错误
jvm 1 | 2017-03-30 15:37:31,431+0800 ERROR [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - Start failed
jvm 1 | java.net.BindException: Address already in use
原因是有服务已经占用了8081端口
修改:/opt/Nexus/nexus-2.14.3-02/conf/nexus.properties文件中的
application-port=8082
浙公网安备 33010602011771号