Windows 10 安装 nexus3
-
下载程序java
官网:https://www.sonatype.com/,截止当前(2020/04/03)版本中nexus-3.21.1-01apache
-
解压文件bootstrap
获得两个文件夹 nexus-3.21.1-01 和 sonatype-work浏览器
-
一些配置app
在nexus-3.21.1-01\etc\nexus-default.properties中修改端口号、项目根目录等信息eclipse
## DO NOT EDIT - CUSTOMIZATIONS BELONG IN $data-dir/etc/nexus.properties ## # 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=/ # Nexus section nexus-edition=nexus-pro-edition nexus-features=\ nexus-pro-feature nexus.hazelcast.discovery.isEnabled=true
-
启动访问编码
控制台切换到 **nexus-3.21.1-01\bin\**目录下执行
nexus.exe /run
.net用文章写用管理员身份启动,请留意。因为本人使用的管理员帐号,因此没有这方面问题。日志
D:\nexus\nexus-3.21.1-01\bin>nexus.exe /run 2020-04-14 12:13:02,163+0800 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.pax.logging.NexusLogActivator - start 2020-04-14 12:13:40,749+0800 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.features.internal.FeaturesWrapper - Fast FeaturesService starting **********省略一大堆日志********** 2020-04-14 12:16:08,823+0800 INFO [jetty-main-1] *SYSTEM org.eclipse.jetty.server.AbstractConnector - Started ServerConnector@2bd45844{HTTP/1.1,[http/1.1]}{0.0.0.0:8081} 2020-04-14 12:16:08,823+0800 INFO [jetty-main-1] *SYSTEM org.eclipse.jetty.server.Server - Started @200721ms 2020-04-14 12:16:08,823+0800 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - ------------------------------------------------- Started Sonatype Nexus OSS 3.21.1-01 -------------------------------------------------
若是没修改端口和项目根目录,则浏览器访问 http://localhost:8081/ ,若修改了则访问对应的地址便可。code
-
登陆操做
点击右上角Sign in登陆,帐号为admin,密码的位置在sonatype-work\nexus3\admin.password文件中。登陆后系统强制要求修改密码,修改后密码需妥善保存,admin.password文件就不存在了。若密码丢失,请点击传送门找回。
一路点了Next,未进行其余操做。
-
解决
org.apache.http.conn.ConnectTimeoutException
检查控制台启动过程当中日志会发现抛异常
java.io.UnsupportedEncodingException: Encoding GBK is not supported yet (feel free to submit a patch)
这个编码问题,暂不知道怎么解决。启动以后访问的过程当中会有下面异常
org.apache.http.conn.ConnectTimeoutException: Connect to sonatype-download.global.ssl.fastly.net:443 [sonatype-download.global.ssl.fastly.net/69.63.178.13] failed: connect timed out
能够按下图操做解决
点击Disabled,解决问题。