您好,登錄后才能下訂單哦!
下載nexus oss免費版本基于jetty的壓縮包并解壓
tar -zxvf nexus-3.0.1-01-unix.tar.gz
進入nexus目錄,更改端口號
cd nexus-3.0.1-01 vim /etc/org.sonatype.nexus.cfg # Jetty section application-port=8081 application-host=0.0.0.0 nexus-args=${karaf.etc}/jetty.xml,${karaf.etc}/jetty-http.xml,${karaf.etc}/jetty-requestlog.xml nexus-context-path=/ # Nexus section nexus-edition=nexus-oss-edition nexus-features=\ nexus-oss-feature
更改端口后,修改Centos防火墻配置,開通對應端口
vim /etc/sysconfig/iptables # Generated by iptables-save v1.4.7 on Sun Feb 19 16:43:59 2017 *filter :INPUT DROP [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] :syn-flood - [0:0] -A INPUT -i lo -j ACCEPT -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 21 -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 2000:3000 -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 8081 -j ACCEPT -A INPUT -f icmp -m limit --limit 1/sec --limit-burst 10 -j ACCEPT -A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -j syn-flood -A INPUT -j REJECT --reject-with icmp-host-prohibited -A syn-flood -p tcp -m limit --limit 3/sec --limit-burst 6 -j RETURN -A syn-flood -j REJECT --reject-with icmp-port-unreachable COMMIT # Completed on Sun Feb 19 16:43:59 2017
重啟iptables服務
service iptables restart
啟動nexus服務
nexus start
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。