首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

装配maven私服-nexus

2012-07-18 
安装maven私服-nexus1、下载nexus cd /home wget http://www.sonatype.org/downloads/nexus-2.0.4-1-bundle

安装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


热点排行