工作台端口统一迁移 8899→8900(SKILL.md/server.js/start.bat/cdp-test-junxi.mjs 四处同步;8899被MiPCAudio占用且自愈)
This commit is contained in:
1 parent
b2e472bf27
commit
f6a9bafd8a
4 files changed
+12
-12
No files matched your search
@@ -1,5 +1,5 @@
|
||||
// MCN工作台 - 本地 Web 服务(零依赖 Node 实现)
|
||||
// 启动: node server.js [端口] → http://localhost:8899(默认;可传参指定端口,如 node server.js 8900)
|
||||
// 启动: node server.js [端口] → http://localhost:8900(默认;可传参指定端口,如 node server.js 9000)
|
||||
// 功能: 技能导航 + 产出内容浏览(默认读桌面 MCNSkill项目)+ dsh 数据功能页(账号/视频/脚本/复盘/周榜,只读)
|
||||
'use strict';
|
||||
|
||||
@@ -10,9 +10,9 @@ const os = require('os');
|
||||
const { URL } = require('url');
|
||||
const dsh = require('./dsh-data');
|
||||
|
||||
// 09-01 端口改为可传参(默认8899):本机 8899 可能被小米 PC 管家 MiPCAudio.exe 系统服务占用(0.0.0.0 监听且自动复活),
|
||||
// 此时 127.0.0.1:8899 绑定不生效 → 用 `node server.js 8900` 显式换端口
|
||||
const PORT_BASE = parseInt(process.argv[2], 10) || 8899;
|
||||
// 09-01 默认端口由 8899 改为 8900:本机 8899 被小米 PC 管家 MiPCAudio.exe 系统服务占用(0.0.0.0 监听且自动复活),
|
||||
// 此时 127.0.0.1:8899 绑定不生效 → 默认直接起在 8900;仍可 `node server.js <端口>` 显式换端口
|
||||
const PORT_BASE = parseInt(process.argv[2], 10) || 8900;
|
||||
const ROOT = __dirname;
|
||||
const PUBLIC_DIR = path.join(ROOT, 'public');
|
||||
const CONFIG_FILE = path.join(ROOT, 'config.json');
|
||||
|
||||
Reference in new issue
Block a user