Nexus私服搭建

下载

官网下载 Nexus Repository OSS 社区版,笔者是在CentOS 7.2环境下安装的。

安装

解压即可

$ cd /data
$ tar xvzf nexus-3.2.0-01-unix.tar.gz

配置环境变量

编辑.bash_profile

$ vi ~/.bash_profile

添加如下内容

export NEXUS_HOME=/data/nexus-3.2.0-01
export PATH=$PATH:$NEXUS_HOME/bin
$ source ~/.bash_profile

配置自动运行 systemd

编辑文件

$ vi /etc/systemd/system/nexus.service

添加如下内容

[Unit]
Description=nexus service
After=network.target
[Service]
Type=forking
ExecStart=/data/nexus-3.2.0-01/bin/nexus start
ExecStop=/data/nexus-3.2.0-01/bin/nexus stop
User=nexus
Restart=on-abort
[Install]
WantedBy=multi-user.target

启动

$ systemctl daemon-reload
$ systemctl enable nexus.service
$ systemctl start nexus.service

执行tail查看日志

$ tail -f /data/nexus-3.2.0-01/sonatype-work/nexus3/log/nexus.log

看到如下字样,表示启动成功

-------------------------------------------------

Started Sonatype Nexus OSS 3.2.0-01

-------------------------------------------------

访问

默认8081端口

Paste_Image.png

登录

用admin登录(默认密码admin123)后出现配置图标:

Paste_Image.png

修改管理员密码,打完收工。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 搭建 nexus 私服(centos6.7) 备注:Centos 6.7 、 nexus-2.12.1-01-bu...
    逐暗者阅读 7,227评论 3 9
  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 135,306评论 19 139
  • 下载 nexus-3.0.0-01-mac.tgz 环境配置 将解压后的nexus-3.3.0-01-mac包复制...
    PengFly阅读 4,549评论 0 0
  • 表层现象不堪视,暗里作为犹可屠。 顿觉假真独明白,深知邪正两糊涂。 人生路上多如是,千万小心遭毁诬。
    雪窗_武立之阅读 2,563评论 0 1
  • 女主人设并不讨喜,但也足够真实。片子感觉混乱,男主的性格转折太快,有些突兀。 能感觉到导演是想通过这个简单的故事反...
    我就是魏蓓蓓阅读 1,553评论 0 0