centOS7搭建nexus私服

一、保證JDK,MAVEN已安裝,firewalld服務安裝vim

PS:yum install firewalld 服務器

 

二、官網下載:https://www.sonatype.com/download-oss-sonatypetcp

 

而後執行rz上傳至centOS,tar -xvf nexus-3.5.0-02-unix.tar.gz解壓到指定目錄,如/datas目錄.net

三、vim /etc/profile 配置nexus環境變量,保存退出執行source /etc/profile 使之生效3d

四、進入nexus安裝目錄,執行./bin/nexus start  啓動nexusunix

五、訪問nexus,http://192.168.42.128:8081/  默認端口是8081,IP地址是你安裝所在的服務器IPrest

安裝成功頁面如圖所示,默認登陸名,密碼:admin admin123blog

 

Ps:若是訪問頁面打不開,centOS7如下版本執行vim /etc/sysconfig/iptables,添加8081端口-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPTip

而後重啓防火牆便可。cmd

centOS7如下版本依次執行 

systemctl enable firewalld

systemctl start firewalld

 

firewall-cmd --permanent --add-port=8081/tcp

systemctl restart firewalld

而後在啓動nexus

./bin/nexus  start

 

虛擬機和centOS7的安裝可參考此文章,寫的比較詳細:http://blog.csdn.net/u010246789/article/details/51754660

相關文章
相關標籤/搜索