MAVEN-私服-nexus安裝

  • 進入下載地址:
    • https://www.sonatype.com/download-oss-sonatype 選擇本身相應的系統
  • 解壓生成2個文件夾
    • nexus-3.13.0-01
    • sonatype-work
    • ps:若是是Linux環境  須要新增普通用戶,並賦予相應的權力
  • 更改端口號配置,默認爲8081
    • nexus-3.13.0-01/etc/nexus-default.propertiesvim

      # Jetty section
      application-port=8081
      application-host=0.0.0.0
      nexus-args=${jetty.etc}/jetty.xml,${jetty.etc}/jetty-http.xml,${jetty.etc}/jetty-requestlog.xml
      nexus-context-path=/
  • 啓動在bin目錄下執行nexus,啓動方式有兩種app

    • ./nexus run  (能夠看到啓動日誌)tcp

    • ./nexus start (看不到啓動日誌)ui

  • 啓動成功後輸入:localhost:8081spa

  • 輸入默認登入帳號密碼日誌

    • admin   admin123code

  • 其餘:xml

    • Linux啓動的時候頁面可能會顯示警告⚠️System Requirement: max file descriptors [4096] likely too low, increase to at least [65536].blog

      • 解決方案:修改ulimitip

        • vim /etc/security/limits.conf

        • 新增

          • soft nofile 65535

          • hard nofile 65535

        • 重啓 reboot 

    • Linux若是未關閉防火牆的狀況下,須要更改配置

      • vim  /etc/sysconfig/iptables

        • 加上一行 -A INPUT -m state --state NEW -m tcp -p tcp --dport 8081 -j ACCEPT   (8081若是本身改了配置端口須要同時也更改這個)

相關文章
相關標籤/搜索