PS D:\j2ee\nexus\nexus-2.12.0-01\bin> nexus.bat nexus.bat : 无法将“nexus.bat”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确 保路径正确,然后再试一次。 所在位置 行:1 字符: 1 + nexus.bat + ~~~~~~~~~ + CategoryInfo : ObjectNotFound: (nexus.bat:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException Suggestion [3,General]: 找不到命令 nexus.bat,但它确实存在于当前位置。默认情况下,Windows PowerShell 不会从当前位置加载 命令。如果信任此命令,请改为键入“.\nexus.bat”。有关详细信息,请参阅 "get-help about_Command_Precedence"。 PS D:\j2ee\nexus\nexus-2.12.0-01\bin> nexus nexus : 无法将“nexus”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正 确,然后再试一次。 所在位置 行:1 字符: 1 + nexus + ~~~~~ + CategoryInfo : ObjectNotFound: (nexus:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException Suggestion [3,General]: 找不到命令 nexus,但它确实存在于当前位置。默认情况下,Windows PowerShell 不会从当前位置加载命令 。如果信任此命令,请改为键入“.\nexus”。有关详细信息,请参阅 "get-help about_Command_Precedence"。
解决方法:
本来命令应该是:nexus.bat install 命令换成:.\nexus install
看到wrapper | nexus installed. 就代表安装成功了
再去服务里面查找 nexus服务
然后再启动neuxs。
命令:.\nexus start 启动需要十几二十秒。
wrapper | nexus started.
已经启动成功。