求助!(这不是教程)
案发现场:
我大概一周没有Hexo Server预览过博客,昨天Hexo S时发现了非常离谱的事情出现,显示端口被占用,我找大佬帮我远程调试了一个多小时都没找到原因在哪,显示3000端口被占用,但实际上3000没有被占用,而且明明默认是localhost:4000来访问的,我无非每天就是改改posts文章,稍微动下主题源码,昨天就莫名其妙Hexo S老不成功
还有,如果再Hexo init重新整一个,Hexo S居然是成功的,能正常预览
报错代码:
Error: listen EACCES: permission denied 0.0.0.0:3000
at Server.setupListenHandle [as _listen2] (net.js:1289:21)
at listenInCluster (net.js:1354:12)
at Server.listen (net.js:1442:7)
at module.exports.plugin (E:\博客1\node_modules\browser-sync\dist\server\index.js:27:25)
at Object.startServer [as fn] (E:\博客1\node_modules\browser-sync\dist\async.js:177:52)
at E:\博客1\node_modules\browser-sync\dist\browser-sync.js:120:14
at iterate (E:\博客1\node_modules\browser-sync\dist\utils.js:269:9)
at E:\博客1\node_modules\browser-sync\dist\utils.js:281:21
at executeTask (E:\博客1\node_modules\browser-sync\dist\browser-sync.js:136:13)
at Object.mergeMiddlewares [as fn] (E:\博客1\node_modules\browser-sync\dist\async.js:166:9)
at E:\博客1\node_modules\browser-sync\dist\browser-sync.js:120:14
at iterate (E:\博客1\node_modules\browser-sync\dist\utils.js:269:9)
at E:\博客1\node_modules\browser-sync\dist\utils.js:281:21
at executeTask (E:\博客1\node_modules\browser-sync\dist\browser-sync.js:136:13)
at Object.setFileWatchers [as fn] (E:\博客1\node_modules\browser-sync\dist\async.js:155:9)
at E:\博客1\node_modules\browser-sync\dist\browser-sync.js:120:14
at iterate (E:\博客1\node_modules\browser-sync\dist\utils.js:269:9)
at E:\博客1\node_modules\browser-sync\dist\utils.js:281:21
at executeTask (E:\博客1\node_modules\browser-sync\dist\browser-sync.js:136:13)
at Object.setInternalEvents [as fn] (E:\博客1\node_modules\browser-sync\dist\async.js:148:9)
at E:\博客1\node_modules\browser-sync\dist\browser-sync.js:120:14
at iterate (E:\博客1\node_modules\browser-sync\dist\utils.js:269:9)
at E:\博客1\node_modules\browser-sync\dist\utils.js:281:21
at executeTask (E:\博客1\node_modules\browser-sync\dist\browser-sync.js:136:13)
at Object.setOptions [as fn] (E:\博客1\node_modules\browser-sync\dist\async.js:133:9)
at E:\博客1\node_modules\browser-sync\dist\browser-sync.js:120:14
at iterate (E:\博客1\node_modules\browser-sync\dist\utils.js:269:9)
at E:\博客1\node_modules\browser-sync\dist\utils.js:281:21
Emitted 'error' event on Server instance at:
at emitErrorNT (net.js:1333:8)
at processTicksAndRejections (internal/process/task_queues.js:81:21) {
code: 'EACCES',
errno: 'EACCES',
syscall: 'listen',
address: '0.0.0.0',
port: 3000
}
如果您遇到过此问题并能解决此问题,麻烦告诉我非常感谢!!!