您现在的位置是:首页 > 文章详情

Windows 10 安装 nexus3

日期:2020-04-14点击:868

Windows 10 安装 nexus3

  1. 下载程序

    官网:https://www.sonatype.com/,截止当前(2020/04/03)版本中nexus-3.21.1-01

  2. 解压文件

    得到两个文件夹 nexus-3.21.1-01sonatype-work

  3. 一些配置

    nexus-3.21.1-01\etc\nexus-default.properties中修改端口号、项目根目录等信息

     ## 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 
  4. 启动访问

    控制台切换到 **nexus-3.21.1-01\bin\**目录下执行 nexus.exe /run

    用文章写用管理员身份启动,请留意。由于本人使用的管理员账号,所以没有这方面问题。

     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/ ,若修改了则访问对应的地址即可。

  5. 登录操作

    点击右上角Sign in登录,账号为admin,密码的位置在sonatype-work\nexus3\admin.password文件中。登录后系统强制要求修改密码,修改后密码需妥善保存,admin.password文件就不存在了。若密码丢失,请点击传送门找回。

    一路点了Next,未进行其他操作。

  6. 解决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,解决问题。

原文链接:https://my.oschina.net/u/3251146/blog/3234384
关注公众号

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。

持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。

转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。

文章评论

共有0条评论来说两句吧...

文章二维码

扫描即可查看该文章

点击排行

推荐阅读

最新文章