Ubuntu安装Nexus,搭建Maven私服 发表于 2020-08-18 分类于 Linux , Ubuntu , Nexus 创建文件夹并进入该目录1cd /usr/local && mkdir nexus && cd nexus 下载nexus安装包1wget http://sonatype-download.global.ssl.fastly.net/nexus/3/nexus-3.23.0-03-unix.tar.gz 解压、重命名12tar -zxvf nexus-3.23.0-03-unix.tar.gzmv nexus-3.23.0-03 nexus 启动nexusNexus 常用的一些命令/usr/local/nexus/nexus/bin/nexus {start|stop|run|run-redirect|status|restart|force-reload} 12cd /usr/local/nexus/bin./nexus start 如果运行命令之后出现 Detected execution as “root” user. This is NOT recommended!修改 /usr/local/nexus/bin/nexus 文件把 run_as_root=true 改成 run_as_root=false 就可以了在浏览器中输入http://localhost:8081 登录默认账号admin 密码在/usr/local/sonatype-work/nexus3/admin.password文件里面 输入账号密码登录