踩坑:nacos利用startup.cmd -m standalone启动错误

1.报错信息:

PS D:\SpringCloud\nacos\nacos\bin> startup.cmd -m standalone
startup.cmd : 无法将“startup.cmd”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,
请确保路径正确,然后再试一次。
所在位置 行:1 字符: 1
+ startup.cmd -m standalone
+ ~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (startup.cmd:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException


Suggestion [3,General]: 找不到命令 startup.cmd,但它确实存在于当前位置。默认情况下,Windows PowerShell 不会从当前位置加 载命令。如果信任此命令,请改为键入“.\startup.cmd”。有关详细信息,请参阅 "get-help about_Command_Precedence"。
PS D:\SpringCloud\nacos\nacos\bin>

2.解决方法:

Suggestion [3,General]: 找不到命令 startup.cmd,但它确实存在于当前位置。默认情况下,Windows PowerShell 不会从当前位置加 载命令。如果信任此命令,请改为键入“.\startup.cmd”。有关详细信息,请参阅 "get-help about_Command_Precedence"。
PS D:\SpringCloud\nacos\nacos\bin> .\startup.cmd -m standalone
"nacos is starting with standalone"

         ,--.
       ,--.'|
   ,--,:  : |                                           Nacos 1.4.1
,`--.'`|  ' :                       ,---.               Running in stand alone mode, All function modules
|   :  :  | |                      '   ,'\   .--.--.    Port: 8848
:   |   \ | :  ,--.--.     ,---.  /   /   | /  /    '   Pid: 4992
|   : '  '; | /       \   /     \.   ; ,. :|  :  /`./   Console: http://192.168.174.1:8848/nacos/index.html
'   ' ;.    ;.--.  .-. | /    / ''   | |: :|  :  ;_
|   | | \   | \__\/: . ..    ' / '   | .; : \  \    `.      https://nacos.io
'   : |  ; .' ," .--.; |'   ; :__|   :    |  `----.   \
|   | '`--'  /  /  ,.  |'   | '.'|\   \  /  /  /`--'  /
'   : |     ;  :   .'   \   :    : `----'  '--'.     /
;   |.'     |  ,     .-./\   \  /            `--'---'
'---'        `--`---'     `----'

就是我按照提示在命令前面加上了一个 .
也就是输入了 .\startup.cmd -m standalone这个命令就启动好了。
(具体原因我也不知道是为什么)

3.踩坑2:

后来我复制他输出的网页(http://192.168.174.1:8848/nacos/index.html)使用360浏览器搜索,但是一直没有启动出来,直接是什么都没有显示的状态。
解决方法:后来我又换了一个 浏览器就可以搜索到页面了!

评论 4
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值