- 工信部备案号 滇ICP备05000110号-1
- 滇公安备案 滇53010302000111
- 增值电信业务经营许可证 B1.B2-20181647、滇B1.B2-20190004
- 云南互联网协会理事单位
- 安全联盟认证网站身份V标记
- 域名注册服务机构许可:滇D3-20230001
- 代理域名注册服务机构:新网数码
CentOS7
Download
Nexus安装下载nexus-2.11.2-03-bundle.tar.gz
Install
安装
上传RPM文件到/tmp目录下
mkdir /opt/nexus
cd /opt/nexus
tar -zxvf /tmp/nexus-2.11.2-03-bundle.tar.gz
ln -sf /opt/nexus/nexus-2.11.2-03/opt/nexus/latest
ln -sf /opt/nexus/latest /opt/nexus/default
新建用户
useradd -r nexus --shell /bin/false
chown -hR nexus:/opt/nexus
开机启动
新建/etc/init.d/nexus
#!/bin/sh
# chkconfig: - 80 20
# Description: Nexus OSS
NEXUS_HOME=/opt/nexus/default
RUN_AS_USER=nexus
JAVA_HOME=/usr/java/default
export NEXUS_HOME RUN_AS_USER JAVA_HOME
"$NEXUS_HOME/bin/nexus"\
$1
exit $?
赋予执行权限
chmod +x /etc/init.d/nexus
设定
/opt/nexus/default/conf/nexus.properties
application-port=9083
nexus-webapp-context-path=/
设置开机启动
chkconfig nexus on
防火墙
新建文件/usr/lib/firewalld/services/jenkins.xml
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>Nexus</short>
<description>Nexus OSS</description>
<portprotocol="tcp"port="9083"/>
</service>
修改防火墙设定
firewall-cmd --permanent --add-service=nexus
firewall-cmd --reload
售前咨询
售后咨询
备案咨询
二维码
TOP