1.官網下載unix版本
2.上傳到linux系統的/usr/目錄下
[root@lmll70op-ne ~]# cd /usr/ [root@lmll70op-ne usr]# ll
3.解壓,並重命名為nexus
[root@lmll70op-ne usr]# tar -zxvf nexus-3.15.2-01-unix.tar.gz [root@lmll70op-ne usr]# mv nexus-3.15.2-01 nexus
4.修改配置修改運行nexus3所使用的用戶
[root@lmll70op-ne usr]# cd nexus/bin/
contrib/ nexus nexus.rc nexus.vmoptions
[root@lmll70op-ne usr]# cd nexus/bin/
[root@lmll70op-ne bin]# ll
總用量 32
drwxr-xr-x. 2 root root 4096 4月 4 15:44 contrib
-rwxr-xr-x. 1 root root 17269 1月 26 02:34 nexus
-rw-r--r--. 1 root root 15 1月 26 02:30 nexus.rc
-rw-r--r--. 1 root root 464 1月 26 02:34 nexus.vmoptions
[root@lmll70op-ne bin]# vi nexus.rc
[root@lmll70op-ne bin]# cat nexus.rc
5.修改nexus3啟動所使用的jdk版本
如果沒有配置環境變量需要配置這個路徑;
如果有jdk環境變量可以省略
[root@lmll70op-ne java8]# cd /usr/local/src/nexus/bin/
[root@lmll70op-ne bin]# ls
[root@lmll70op-ne bin]# vim nexus
[root@lmll70op-ne bin]# cat nexus
6.修改nexus3默認端口
[root@lmll70op-ne nexus]# cd etc/ [root@lmll70op-ne etc]# ls fabric jetty karaf logback nexus-default.properties ssl [root@lmll70op-ne etc]# cat nexus-default.properties
7.修改nexus3數據以及相關日志的存儲位置
[root@lmll70op-ne nexus]# cd bin/ [root@lmll70op-ne bin]# ls contrib nexus nexus.rc nexus.vmoptions [root@lmll70op-ne bin]# cat nexus.vmoptions
8.啟動nexus
[root@lmll70op-ne bin]# ./nexus start WARNING: ************************************************************ WARNING: Detected execution as "root" user. This is NOT recommended! WARNING: ************************************************************ Starting nexus
注意:關閉防火牆訪問!!
9.訪問
http://IP地址:8081/ 使用admin/admin123登陸