1.解压
tar zxvf nexus-2.1.2-bundle.tar.gz
2.设置为系统自启动服务
# cd /etc/init.d/
# cp -r /home/nexus/nexus/bin/jsw/linux-x86-64/nexus nexus #-r为递归拷贝
编辑/etc/init.d/nexus文件,添加以下变量定义:
NEXUS_HOME=/home/nexus/nexus
PLATFORM=linux-x86-64
PLATFORM_DIR="${NEXUS_HOME}/bin/jsw/${PLATFORM}"
修改以下变量:
WRAPPER_CMD="${PLATFORM_DIR}/wrapper"
WRAPPER_CONF="${PLATFORM_DIR}/../conf/wrapper.conf"
PIDDIR="${NEXUS_HOME}"ne
修改如下变量,设置启动用户为nexus:
RUN_AS_USER=root
执行命令添加nexus自启动服务
# chkconfig –add nexus
# chkconfig –levels 345 nexus on
执行如下命令启动、停止nexus服务
# service nexus start
# service nexus stop
查看防火墙端口是否打开
firewall-cmd --query-port=8081/tcp --zone=public
打开8081端口
firewall-cmd --zone=public --add-port=8081/tcp --permanent
重启防火墙端口
systemctl restatus firewalld
打开地址查看是否安装成功:http://192.168.83.3:8081/nexus 初始账户: admin 密码:admin123maven的settings.xml设置 F:\mylocalRepository org.mortbay.jetty org.jenkins-ci.tools nexus-releases admin admin123 nexus-snapshots admin admin123 nexus http://192.168.83.3:8081/nexus/content/groups/public/ true true nexus http://192.168.83.3:8081/nexus/content/groups/public/ true true shawn
tar zxvf nexus-2.1.2-bundle.tar.gz
2.设置为系统自启动服务
# cd /etc/init.d/
# cp -r /home/nexus/nexus/bin/jsw/linux-x86-64/nexus nexus #-r为递归拷贝
编辑/etc/init.d/nexus文件,添加以下变量定义:
NEXUS_HOME=/home/nexus/nexus
PLATFORM=linux-x86-64
PLATFORM_DIR="${NEXUS_HOME}/bin/jsw/${PLATFORM}"
修改以下变量:
WRAPPER_CMD="${PLATFORM_DIR}/wrapper"
WRAPPER_CONF="${PLATFORM_DIR}/../conf/wrapper.conf"
PIDDIR="${NEXUS_HOME}"ne
修改如下变量,设置启动用户为nexus:
RUN_AS_USER=root
执行命令添加nexus自启动服务
# chkconfig –add nexus
# chkconfig –levels 345 nexus on
执行如下命令启动、停止nexus服务
# service nexus start
# service nexus stop
查看防火墙端口是否打开
firewall-cmd --query-port=8081/tcp --zone=public
打开8081端口
firewall-cmd --zone=public --add-port=8081/tcp --permanent
重启防火墙端口
systemctl restatus firewalld
打开地址查看是否安装成功:http://192.168.83.3:8081/nexus 初始账户: admin 密码:admin123maven的settings.xml设置 F:\mylocalRepository org.mortbay.jetty org.jenkins-ci.tools nexus-releases admin admin123 nexus-snapshots admin admin123 nexus http://192.168.83.3:8081/nexus/content/groups/public/ true true nexus http://192.168.83.3:8081/nexus/content/groups/public/ true true shawn