Closed MoreBugOfDog closed 5 months ago
打开 代理服务 报错 listen EACCES: permission denied 127.0.0.1:31181
listen EACCES: permission denied 127.0.0.1:31181
正常打开
https://github.com/docmirror/dev-sidecar/issues/267 这个issues的解决办法试过了,没用
${user.home}/.dev-sidecar/logs/
${user.home}/.dev-sidecar/running.json
{ "enabled": true, "host": "127.0.0.1", "port": "31181", "setting": { "NODE_TLS_REJECT_UNAUTHORIZED": true, "verifySsl": true, "script": { "enabled": true, "defaultDir": "./extra/scripts/" }, "userBasePath": "C:\\Users\\86139\\.dev-sidecar", "rootCaFile": { "certPath": "C:\\Users\\86139\\.dev-sidecar/dev-sidecar.ca.crt", "keyPath": "C:\\Users\\86139\\.dev-sidecar/dev-sidecar.ca.key.pem" } }, "intercept": { "enabled": true }, "intercepts": { "github.com": { "/.*/.*/releases/download/": { "redirect": "gh.api.99988866.xyz/https://github.com", "desc": "release文件加速下载跳转地址" }, "/.*/.*/archive/": { "redirect": "gh.api.99988866.xyz/https://github.com" }, "/.*/.*/blame/": { "redirect": "gh.api.99988866.xyz/https://github.com" }, "^(/[^/]+){2}([/?].*)?$": { "script": [ "github" ], "desc": "clone加速复制链接脚本" }, "/.*": { "desc": "目前禁掉sni就可以直接访问,如果后续github.com的ip被封锁,只能再走proxy模式", "sni": "baidu.com" }, "/fluidicon.png": { "cacheDays": 365, "desc": "Github那只猫的图片,缓存1年" }, "^(/[^/]+){2}/pull/\\d+/open_with_menu.*$": { "cacheDays": 7, "desc": "PR详情页:标题右边那个Code按钮的HTML代理请求地址,感觉上应该可以缓存。暂时先设置为缓存7天" } }, "github-releases.githubusercontent.com": { ".*": { "sni": "baidu.com" } }, "github.githubassets.com": { ".*": { "sni": "baidu.com" } }, "camo.githubusercontent.com": { ".*": { "sni": "baidu.com" }, "^[a-zA-Z0-9/]+(\\?.*)?$": { "cacheDays": 365, "desc": "图片,缓存1年" } }, "collector.github.com": { ".*": { "sni": "baidu.com" } }, "customer-stories-feed.github.com": { ".*": { "proxy": "customer-stories-feed.fastgit.org" } }, "raw.githubusercontent.com": { ".*": { "sni": "baidu.com" } }, "user-images.githubusercontent.com": { ".*": { "sni": "baidu.com" }, "^/.*\\.png(\\?.*)?$": { "cacheDays": 365, "desc": "用户在PR或issue等内容中上传的图片,缓存1年。注:每张图片都有唯一的ID,不会重复,可以安心缓存" } }, "private-user-images.githubusercontent.com": { ".*": { "sni": "baidu.com" }, "^/.*\\.png(\\?.*)?$": { "cacheHours": 1, "desc": "用户在PR或issue等内容中上传的图片,缓存1小时就够了,因为每次刷新页面都是不一样的链接。" } }, "avatars.githubusercontent.com": { ".*": { "sni": "baidu.com" }, "^/u/\\d+(\\?.*)?$": { "cacheDays": 365, "desc": "用户头像,缓存1年" } }, "api.github.com": { "^/_private/browser/stats$": { "success": true, "desc": "github的访问速度分析上传,没有必要,直接返回成功" } }, "hub.docker.com": { ".*": { "sni": "baidu.com" } }, "api.dso.docker.com": { ".*": { "sni": "baidu.com" } }, "www.google.com": { "/recaptcha/.*": { "proxy": "www.recaptcha.net" } }, "ajax.googleapis.com": { ".*": { "proxy": "ajax.lug.ustc.edu.cn", "backup": [ "gapis.geekzu.org" ], "test": "ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js" } }, "fonts.googleapis.com": { ".*": { "proxy": "fonts.geekzu.org", "backup": [ "fonts.loli.net" ], "test": "https://fonts.googleapis.com/css?family=Oswald" } }, "themes.googleapis.com": { ".*": { "proxy": "themes.loli.net", "backup": [ "themes.proxy.ustclug.org" ] } }, "themes.googleusercontent.com": { ".*": { "proxy": "google-themes.proxy.ustclug.org" } }, "clients*.google.com": { ".*": { "abort": false, "desc": "设置abort:true可以快速失败,节省时间" } }, "www.googleapis.com": { ".*": { "abort": false, "desc": "设置abort:true可以快速失败,节省时间" } }, "lh*.googleusercontent.com": { ".*": { "abort": false, "desc": "设置abort:true可以快速失败,节省时间" } }, "*.s3.1amazonaws1.com": { "/sqlite3/.*": { "redirect": "npm.taobao.org/mirrors" } }, "*.carbonads.com": { "/carbon.*": { "abort": true, "desc": "广告拦截" } }, "*.buysellads.com": { "/ads/.*": { "abort": true, "desc": "广告拦截" } } }, "whiteList": { "*.cn": true, "cn.*": true, "*china*": true, "*.dingtalk.com": true, "*.apple.com": true, "*.microsoft.com": true, "*.alipay.com": true, "*.qq.com": true, "*.baidu.com": true }, "sniList": {}, "dns": { "providers": { "aliyun": { "type": "https", "server": "https://dns.alidns.com/dns-query", "cacheSize": 1000 }, "usa": { "type": "https", "server": "https://1.1.1.1/dns-query", "cacheSize": 1000 }, "quad9": { "type": "https", "server": "https://9.9.9.9/dns-query", "cacheSize": 1000 }, "rubyfish": { "type": "https", "server": "https://rubyfish.cn/dns-query", "cacheSize": 1000 } }, "mapping": { "*.github.com": "quad9", "*github*.com": "quad9", "*.github.io": "quad9", "*.docker.com": "quad9", "*.stackoverflow.com": "quad9", "*.electronjs.org": "quad9", "*.amazonaws.com": "quad9", "*.yarnpkg.com": "quad9", "*.cloudfront.net": "quad9", "*.cloudflare.com": "quad9", "img.shields.io": "quad9", "*.vuepress.vuejs.org": "quad9", "*.gh.docmirror.top": "quad9", "*.v2ex.com": "quad9", "*.pypi.org": "quad9", "*.jetbrains.com": "quad9", "*.azureedge.net": "quad9", "*.sctatch.mit.edu": "usa", "scratch.mit.edu": "usa", "*.deepl.com": "usa", "deepl.com": "usa" }, "speedTest": { "enabled": true, "interval": 300000, "hostnameList": [ "github.com" ], "dnsProviders": [ "usa", "quad9", "rubyfish" ] } }, "plugin": { "node": { "name": "NPM加速", "enabled": true, "tip": "如果你没有安装nodejs则不需要启动它", "startup": { "variables": true }, "setting": { "strict-ssl": true, "cafile": false, "NODE_EXTRA_CA_CERTS": false, "NODE_TLS_REJECT_UNAUTHORIZED": false, "yarnRegistry": "https://registry.npmmirror.com", "registry": "https://registry.npmmirror.com" }, "variables": { "phantomjs_cdnurl": "https://npmmirror.com/mirrors/phantomjs", "chromedriver_cdnurl": "https://npmmirror.com/mirrors/chromedriver", "sass_binary_site": "https://npmmirror.com/mirrors/node-sass", "ELECTRON_MIRROR": "https://npmmirror.com/mirrors/electron/", "NVM_NODEJS_ORG_MIRROR": "https://npmmirror.com/mirrors/node", "CHROMEDRIVER_CDNURL": "https://npmmirror.com/mirrors/chromedriver", "OPERADRIVER": "https://npmmirror.com/mirrors/operadriver", "ELECTRON_BUILDER_BINARIES_MIRROR": "https://npmmirror.com/mirrors/electron-builder-binaries/", "PYTHON_MIRROR": "https://npmmirror.com/mirrors/python" } }, "git": { "name": "Git.exe代理", "enabled": true, "tip": "如果你没有安装git命令行则不需要启动它", "setting": { "sslVerify": true } }, "pip": { "name": "PIP加速", "statusOff": true, "tip": "如果你没有安装pip则不需要启动它", "startup": {}, "setting": { "command": "pip", "trustedHost": "mirrors.aliyun.com", "registry": "https://mirrors.aliyun.com/pypi/simple/" } }, "overwall": { "name": "梯子", "enabled": false, "server": {}, "serverDefault": { "ow-prod.docmirror.top": { "port": 443, "path": "X2dvX292ZXJfd2FsbF8", "password": "dev_sidecar_is_666" } }, "targets": { "*.github.com": true, "*github*.com": true, "*.wikimedia.org": true, "*.v2ex.com": true, "*.azureedge.net": true, "*.cloudfront.net": true, "*.bing.com": true, "*.discourse-cdn.com": true, "*.gravatar.com": true, "*.docker.com": true, "*.vueuse.org": true, "*.elastic.co": true, "*.optimizely.com": true, "*.stackpathcdn.com": true, "*.fastly.net": true, "*.cloudflare.com": true, "*.233v2.com": true, "*.v2fly.org": true, "*.telegram.org": true, "*.amazon.com": true, "*.googleapis.com": true, "*.google-analytics.com": true, "*.cloudflareinsights.com": true, "*.intlify.dev": true, "*.segment.io": true, "*.shields.io": true, "*.jsdelivr.net": true, "*.openai.com": true, "*.chatgpt.com": true }, "pac": { "enabled": true, "pacFilePath": "./extra/pac/pac.txt" } } }, "proxy": { "enabled": true, "name": "系统代理", "use": "local", "other": [], "setEnv": false, "excludeIpList": { "*.cn": true, "cn.*": true, "*china*": true, "*.csdn.net": true, "*.baidu.com": true, "*.baiducontent.com": true, "*.bdimg.com": true, "*.bdstatic.com": true, "*.bdydns.com": true, "*.tencent.com": true, "*.qq.com": true, "*.weixin.com": true, "*.weixinbridge.com": true, "*.wechat.com": true, "*.idqqimg.com": true, "*.gtimg.com": true, "*.qpic.com": true, "*.qlogo.com": true, "*.myapp.com": true, "*.myqcloud.com": true, "*.aliyun.com": true, "*.alipay.com": true, "*.taobao.com": true, "*.tmall.com": true, "*.alipayobjects.com": true, "*.dingtalk.com": true, "*.mmstat.com": true, "*.alicdn.com": true, "*.hdslb.com": true, "gitee.com": true, "*.gitee.com": true, "*.gitee.io": true, "*.giteeusercontent.com": true, "*.mozilla.org": true, "*.mozilla.com": true, "*.mozilla.net": true, "*.firefox.com": true, "*.firefox.org": true, "*.mozillademos.org": true, "*.mozillians.org": true, "*.mozillians.net": true, "*.mozillians.com": true, "*.sonatype.org": true, "*.maven.org": true, "*.mvnrepository.com": true, "challenges.cloudflare.com": true, "*.apple.com": true, "*.icloud.com": true, "*.microsoft.com": true, "*.windows.com": true, "*.office.com": true, "*.office.net": true, "*.live.com": true, "*.msn.com": true, "*.wps.com": true, "*.qihoo.com": true, "*.qihucdn.com": true, "*.360.com": true, "*.360safe.com": true, "*.360buyimg.com": true, "*.360buy.com": true, "*.jd.com": true, "*.jcloud.com": true, "*.jcloudcs.com": true, "*.jcloudcache.com": true, "*.jcloudcdn.com": true, "*.jcloudlb.com": true, "*.bilibili.com": true, "*.bilivideo.com.com": true, "*.biliapi.net": true, "*.10086.com": true, "*.10086cloud.com": true, "*.139.com": true, "*.xunlei.com": true, "*.icpapi.com": true, "localhost": true, "localhost.*": true, "127.*": true, "test.*": true, "10.*": true, "172.16.*": true, "172.17.*": true, "172.18.*": true, "172.19.*": true, "172.20.*": true, "172.21.*": true, "172.22.*": true, "172.23.*": true, "172.24.*": true, "172.25.*": true, "172.26.*": true, "172.27.*": true, "172.28.*": true, "172.29.*": true, "172.30.*": true, "172.31.*": true, "192.168.*": true } } }
@MoreBugOfDog 能否提供一下详细的日志啊?写在上面的 ## Ⅴ. 请提供相关的错误日志,尽可能的详细: 里
## Ⅴ. 请提供相关的错误日志,尽可能的详细:
看一下是不是端口号被占用了?
Ⅰ. 请说明操作系统及DS的版本号:
Ⅱ. 问题描述:
打开 代理服务 报错
listen EACCES: permission denied 127.0.0.1:31181
Ⅲ. 期望的结果:
正常打开
Ⅳ. 如何复现问题?
尝试过的方法
https://github.com/docmirror/dev-sidecar/issues/267 这个issues的解决办法试过了,没用
Ⅴ. 请提供相关的错误日志,尽可能的详细:(日志文件在
${user.home}/.dev-sidecar/logs/
目录下)Ⅵ. 如果可以的话,请提供
${user.home}/.dev-sidecar/running.json
文件内容: