clashforwindows显示failed to clash core, logs are not available

  • A+
所属分类:V2RAY教程

failed to clash core, logs are not available

将安装目录添加到杀毒软件白名单。

如 Windows Defender 开启,则需要将安装目录添加到排除项 (opens new window)中

如依然无法启动,请尝试删除配置文件目录(一般是C:\Users\<用户名>\.config\clash)

Service Mode 无法安装

Windows

先确定系统安装了.NET framework runtime

然后尝试手动安装:

  1. 打开 C:/Program Files 目录,新建 Clash for Windows Service 目录
  2. 进入 安装目录/resources/static/files/win/[x64|arm64|ia32]/service 目录,拷贝里面两个 exe 文件到 1 中新建目录中
  3. 进入 安装目录/resources/static/files/win/common 目录,拷贝 service.yml 文件到 1 中新建目录中
  4. 在 1 中新建目录中,使用管理员权限打开 CMD 执行一下命令:
    service.exe install
    service.exe start
    

如果 install 时出现如下提示:

Service with id 'Clash Core Service' already exists
To install the service, delete the existing one or change service Id in the configuration file
2022-09-26 09:37:32,316 FATAL - Unhandled exception
System.Exception: Installation failure: Service with id 'Clash Core Service' already exists
   at WinSW.Program.<Run>g__Install|2_0(<>c__DisplayClass2_0& )
   at WinSW.Program.Run(String[] argsArray, IWinSWConfiguration descriptor)
   at WinSW.Program.Main(String[] args)
System.Exception: Installation failure: Service with id 'Clash Core Service' already exists
   at WinSW.Program.<Run>g__Install|2_0(<>c__DisplayClass2_0& )
   at WinSW.Program.Run(String[] argsArray, IWinSWConfiguration descriptor)
   at WinSW.Program.Main(String[] args)

可以先执行:

service.exe stop
service.exe uninstall

如果安装后,Service Mode manage 里显示 active 但图标显示红色,可以进入 Home Directory 管理员启动 CMD,执行 icacls.exe service /remove:d Everyone 后手动删除 service 文件夹,重启 APP 即可

macOS

  1. 打开终端
  2. 运行以下命令:
    curl https://gist.githubusercontent.com/Fndroid/2119fcb5ccb5a543a8f6a609418ae43f/raw/ff63615309a9b3f3e1d682fc29bc73284816422e/mac.sh > cfw-tun.sh && chmod +x cfw-tun.sh && sudo ./cfw-tun.sh install && rm cfw-tun.sh
    

    如要卸载则将 install 改为 uninstall

+++++++免费试用YouTube加速器++++++++++++

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: