diff --git a/docs/index.html b/docs/index.html index 66adae3..15198d0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -278,6 +278,7 @@ } + diff --git a/docs/linux/soft/nexus-ops.md b/docs/linux/soft/nexus-ops.md index fa65f4f..992d036 100644 --- a/docs/linux/soft/nexus-ops.md +++ b/docs/linux/soft/nexus-ops.md @@ -12,22 +12,24 @@ -- [安装 Nexus](#安装-nexus) -- [启动/停止 Nexus](#启动停止-nexus) -- [使用 Nexus 搭建 Maven 私服](#使用-nexus-搭建-maven-私服) - - [配置仓库](#配置仓库) - - [配置 settings.xml](#配置-settingsxml) - - [配置 pom.xml](#配置-pomxml) - - [执行 maven 构建](#执行-maven-构建) -- [将 Nexus 设置为服务](#将-nexus-设置为服务) -- [Nexus 备份和迁移](#nexus-备份和迁移) - - [备份](#备份) - - [迁移](#迁移) -- [参考资料](#参考资料) +- [1. 安装 Nexus](#1-安装-nexus) +- [2. 启动/停止 Nexus](#2-启动停止-nexus) +- [3. 搭建 Maven 私服](#3-搭建-maven-私服) + - [3.1. 配置仓库](#31-配置仓库) + - [3.2. 配置 settings.xml](#32-配置-settingsxml) + - [3.3. 配置 pom.xml](#33-配置-pomxml) + - [3.4. 执行 maven 构建](#34-执行-maven-构建) +- [4. 开机自启动](#4-开机自启动) +- [5. Nexus 备份和迁移](#5-nexus-备份和迁移) + - [5.1. 备份](#51-备份) + - [5.2. 迁移](#52-迁移) +- [6. FAQ](#6-faq) + - [6.1. 配置 INSTALL4J_JAVA_HOME](#61-配置-install4j_java_home) +- [7. 参考资料](#7-参考资料) -## 安装 Nexus +## 1. 安装 Nexus 进入[官方下载地址](https://www.sonatype.com/download-oss-sonatype),选择合适版本下载。 @@ -47,7 +49,7 @@ tar -zxf nexus-unix.tar.gz - nexus-3.13.0-01 - 包含了 Nexus 运行所需要的文件。是 Nexus 运行必须的。 - sonatype-work - 包含了 Nexus 生成的配置文件、日志文件、仓库文件等。当我们需要备份 Nexus 的时候默认备份此目录即可。 -## 启动/停止 Nexus +## 2. 启动/停止 Nexus 进入 nexus-3.13.0-01/bin 目录,有一个可执行脚本 nexus。 @@ -68,9 +70,9 @@ Usage: ./nexus {start|stop|run|run-redirect|status|restart|force-reload} 点击右上角 Sign in 登录,默认用户名/密码为:admin/admin123。 -## 使用 Nexus 搭建 Maven 私服 +## 3. 搭建 Maven 私服 -### 配置仓库 +### 3.1. 配置仓库 Nexus 中的仓库有以下类型: @@ -96,7 +98,7 @@ Nexus 中的仓库有以下类型:
-### 配置 settings.xml +### 3.2. 配置 settings.xml 如果要使用 Nexus,还必须在 settings.xml 和 pom.xml 中配置认证信息。 @@ -171,7 +173,7 @@ Nexus 中的仓库有以下类型: ``` -### 配置 pom.xml +### 3.3. 配置 pom.xml 在 pom.xml 中添加如下配置: @@ -195,7 +197,7 @@ Nexus 中的仓库有以下类型: > - `