云盘
志元云盘
备份云盘
Home
/
志元云盘
/
webdav
/
hexo
/
hexo-blog
/
node_modules
/
hexo-server
File
OriginalPic
Thumbnails
CopyAllDownloadUrl
EditTime
Size
lib
2024-01-09 18:36:01
6.57 KB
index.js
2023-11-13 01:33:43
1.3 KB
LICENSE
2023-11-13 01:33:43
1.03 KB
package.json
2023-11-13 01:33:43
1.22 KB
README.md
2023-11-13 01:33:43
1.67 KB
# hexo-server [](https://github.com/hexojs/hexo-server/actions?query=workflow%3ATester) [](https://www.npmjs.com/package/hexo-server) [](https://coveralls.io/r/hexojs/hexo-server?branch=master) Server module for [Hexo]. ## Installation ``` bash $ npm install hexo-server --save ``` ## Usage ``` bash $ hexo server ``` Option | Description | Default --- | --- | --- `-i`, `--ip` | Override the default server IP. | `::` when IPv6 is available, else `0.0.0.0` (note: in most systems, `::` also binds to `0.0.0.0`) `-p`, `--port` | Override the default port. | 4000 `-s`, `--static` | Only serve static files. | false `-l`, `--log [format]` | Enable logger. Override log format. | false `-o`, `--open` | Immediately open the server url in your default web browser. | false ## Options ``` yaml server: port: 4000 log: false ip: 0.0.0.0 compress: false cache: false header: true serveStatic: extensions: - html ``` - **port**: Server port - **log**: Display request info on the console. Always enabled in debug mode. - **ip**: Server IP - **compress**: Enable GZIP compression - **cache**: Enable cache for rendered content - This can speed up server response. However, any changes will no longer take effect in real time. - Suitable for production environment only. - **header**: Add `X-Powered-By: Hexo` header - **serveStatic**: Extra options passed to [serve-static](https://github.com/expressjs/serve-static#options) ## License MIT [Hexo]: http://hexo.io/
2025-08-29 16:31:15 Friday 216.73.216.167 Runningtime:0.028s Mem:1.48 MB