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浏览器搜索,但是一直没有启动出来,直接是什么都没有显示的状态。
解决方法:后来我又换了一个 浏览器就可以搜索到页面了!