Below you will find pages that utilize the taxonomy term “DevOps”
Post
Maven之私服搭建
安装 前置
# Linux CentOS 7 $ cat /etc/redhat-release CentOS Linux release 7.7.1908 (Core) # Java OpenJDK 8 $ yum install java-1.8.0-openjdk-devel $ java -version openjdk version "1.8.0_242" OpenJDK Runtime Environment (build 1.8.0_242-b08) OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode) 安装
# https://help.sonatype.com/repomanager2/download # 注意:国内网络可能无法下载,考虑科学上网,或者从其它网站下载 $ curl -OL https://download.sonatype.com/nexus/oss/nexus-latest-bundle.tar.gz # https://help.sonatype.com/repomanager2/installing-and-running $ tar zxvf nexus-2.14.16-01-bundle.tar.gz -C /opt # /opt/nexus-2.14.16-01 Nexus服务程序目录 # /opt/sonatype-work 数据(构件)存放目录 # 创建 nexus 用户,因为 Nexus 不推荐使用 root 用户运行服务 # 注:不能是禁止登录无home目录的虚用户(程序使用 su 切换用户) $ useradd nexus # 修改目录拥有者属性,因为后面将使用 nexus 用户来运行服务 $ chown nexus:nexus -R /opt/nexus-2.