安装maven私服-nexus

1、下载nexus
cd /home
wget http://www.sonatype.org/downloads/nexus-2.0.4-1-bundle.tar.gz

2、解压缩
tar xzvf nexus-2.0.4-1-bundle.tar.gz

3、直接启动
cd /home/nexus-2.0.4-1/bin/jsw/linux-x86-32/
sh nexus start
启动之后打开一下网址
http://{安装nexus的服务器ip}:8081/nexus
用户名密码 admin/admin123

我们可以将nexus配置成系统服务,使其开机直接启动

1、设置成系统服务
cd /etc/init.d
cp /home/nexus-2.0.4-1/bin/jsw/linux-x86-32/nexus ./nexus
chmod 755 nexus
chkconfig --add nexus
chkconfig --levels 345 nexus on

2、编辑/etc/init.d/nexus
添加变量
NEXUS_HOME=/home/nexus-2.0.4-1/
PLATFORM_DIR="${NEXUS_HOME}//bin/jsw/linux-x86-32/"
修改变量
WRAPPER_CMD="${PLATFORM_DIR}/wrapper"
WRAPPER_CONF="${PLATFORM_DIR}/../conf/wrapper.conf"
PIDDIR="${NEXUS_HOM}"
RUN_AS_USER=root

3、启动
service nexus start


猜你喜欢

转载自evan-shen.iteye.com/blog/1542135