您的位置:首页 > 运维架构 > Linux

Centos Install SonaType Nexus

2012-11-08 17:26 183 查看

cd /home/software

wget http://www.sonatype.org/downloads/nexus-2.1.2-bundle.tar.gz
tar zxvf nexus-2.1.2-bundle.tar.gz
cp  /home/software/nexus-2.1.2/bin/jsw/linux-x86-64/nexus /etc/init.d/nexus
编辑/etc/init.d/nexus文件,添加以下变量定义:
1 NEXUS_HOME=/home/nexus/nexus2 PLATFORM=linux-x86-643 PLATFORM_DIR="${NEXUS_HOME}/bin/jsw/${PLATFORM}"修改以下变量:1 WRAPPER_CMD="${PLATFORM_DIR}/wrapper"2 WRAPPER_CONF="${PLATFORM_DIR}/../conf/wrapper.conf"3 PIDDIR="${NEXUS_HOME}"
修改如下变量,设置启动用户为root:
1 RUN_AS_USER=root
执行命令添加nexus自启动服务
1 # chkconfig –add nexus2 # chkconfig –levels 345 nexus on
执行如下命令启动、停止nexus服务
1 # service nexus start
2 # service nexus stop
测试:http:localhost:8081:nexus
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: