【发布时间】:2026-02-21 04:00:01
【问题描述】:
我用 hexo server 命令在我的电脑上启动了一个本地服务器,但我没有得到我的网站地址。 localhost:4000 根本不起作用。相反,我得到了一些奇怪而无用的信息:
C:\Users\user\Documents\Hexo>hexo server
Usage: hexo <command>
Commands:
help Get help on a command.
init Create a new Hexo folder.
version Display version information.
Global Options:
--config Specify config file instead of using _config.yml
--cwd Specify the CWD
--debug Display all verbose messages in the terminal
--draft Display draft posts
--safe Disable all plugins and scripts
--silent Hide output on console
然后,我尝试了“npm install hexo-server --save”和“hexo server”,但没有成功。如何找到本地主机地址?
【问题讨论】: