Service Mode 无法安装

admin8个月前 (07-05)clash549

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 即可

部分内容已于 v0.20.0 后过期,点击查看
1. 点击 General 中的 Home Directory 打开文件夹,进入 service 子目录中 2. 打开 CMD,执行以下命令:
service.exe install
service.exe start

如安装出现错误,参考这个 issue(opens new window)

#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

#

小火箭作为一款优秀的网络代理工具,具备多协议支持、自定义规则等强大功能,为用户提供了更灵活、安全的上网体验。通过本文的详细介绍,相信用户对小火箭的功能和使用方法有了更全面的了解。在使用过程中,用户应当根据个人需求合理配置代理设置,确保网络连接的稳定和安全。未来,随着技术的不断发展,相信小火箭将会迎来更多的更新和改进,为用户提供更出色的上网体验。更多相关资讯教程,请关注小火箭id平台

分享给朋友:

相关文章

2024最新分享汉化 Clash for Windows

2024最新分享汉化 Clash for Windows

Clash for Windows 默认情况下是不带中文的,所以需要手动进行汉化。幸好已经有人做了这个工作,我们只需要下载对应的文件即可。#在 Windows 下的汉化操作步骤首先找到 Clash f...

Clash for Windows 界面组成之连接 Connections

Clash for Windows 界面组成之连接 Connections

连接 Connections在这个页面可以直观的看到当前的所有连接状态,可以一键关闭指定或全部连接#顶栏Pause/Resume: 暂停/继续连接统计Total: 显示当前上下行流量总量Search:...

稳定好用的 Clash、小火箭(Shadowrocket) 机场推荐

稳定好用的 Clash、小火箭(Shadowrocket) 机场推荐

2024 稳定好用的翻墙机场推荐,适用于 Clash、Shadowrocket、V2rayN、Surge、Stash、sing-box 等多个平台的多种流行翻墙软件,导入即用。翻墙机场并非VPN,但比...

翻墙软件客户端:小火箭Shadowrocket、Quantumult X、Clash不同对比

翻墙软件客户端:小火箭Shadowrocket、Quantumult X、Clash不同对比

iOS 系统翻墙的特殊性苹果公司早在2017年就下载了中国区应用商店中的VPN应用。包含我们使用翻墙机场需要使用的 Shadowrocket、Quantumult X、Stash、Loon、sing-...

2024最新小火箭(ShadowsocksR)、Clash 免费节点订阅地址分享

2024最新小火箭(ShadowsocksR)、Clash 免费节点订阅地址分享

从互联网收集的 Clash 免费节点,需要翻墙者自己将订阅链接导入到 Clash 软件中使用,Windows、Mac、Android 的 Clash 均为免费软件,iOS 端的 Clash 客户端为付...

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。