美文网首页
Centos7安装nexus3

Centos7安装nexus3

作者: 胡浩8880 | 来源:发表于2020-03-04 13:32 被阅读0次

下载

下载地址

直接下载地址

也可以wget https://download.sonatype.com/nexus/3/latest-unix.tar.gz

下载unix版本。

上传到服务器

SSH命令传输文件

安装&启动

默认已经安装了JDK。

我看了网上很多资料都是安装到/use/local/目录下,** 我 偏 不 **

我这里解压到/home目录下

tar -zxvf nexus-3.15.1-01-unix.tar.gz -C /home/

mv nexus-3.15.1-01 nexus3/bin./nexus start

# 这里报错

WARNING: ************************************************************

WARNING: Detected execution as"root"user.  This is NOT recommended!

WARNING: ************************************************************

Usage: ./nexus {start|stop|run|run-redirect|status|restart|force-reload}

这里用root用户操作所以出现警告,可以在环境变量中添加export RUN_AS_USER=root解决。

vim  /etc/profile

#最后添加变量

source /etc/profile

这里还有一个文件nexus3/bin/nexus.rc,文件中恰巧是run_as_user="",这里不再修改尝试了。

重新启动

ps -ef |grep nexus

#如果有运行的nexus  则kill 掉

./nexus start

然后就可以访问了,默认端口8081.

修改IP、端口、访问根目录,文件

vim /home/nexus3/etc/nexus-default.properties

vim /home/nexus3/bin/nexus.vmoptions

登录

右上角登录,

默认用户名为admin,密码admin123

登录之后点击有上角admin进入信息管理界面可以修改密码。

相关文章

网友评论

      本文标题:Centos7安装nexus3

      本文链接:https://www.haomeiwen.com/subject/oblerctx.html