Service Mode 无法安装

admin7个月前 (07-05)clash509

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平台

分享给朋友:

相关文章

Clash for Windows 代理工具  Enhanced Tray

Clash for Windows 代理工具 Enhanced Tray

系统区别由于 Windows 任务栏只能显示一个图标,无法显示更多其他信息,为了保证和 macOS 有类似的体验,在 Windows 下 Enhanced Tray 将会以悬浮窗的形式显示。默认情况下...

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

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

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

Clash Verge软件安装官网下载使用教程分享(附下载地址)

Clash Verge软件安装官网下载使用教程分享(附下载地址)

Clash Verge 是一款高效的桌面代理翻墙软件,专为管理和增强您的 Clash 配置文件而设计,本站包括Clash Verge的介绍、下载、配置使用教程、Github说明、安卓推荐。作为一个基于...

Clash Verge官网使用教程及最新下载(长期更新)

Clash Verge官网使用教程及最新下载(长期更新)

目前 Clash Verge 最新版本为 v1.7.7,下面是各个平台对应架构版本列表。在Windows平台上如果您不知道自己的电脑是什么架构,那么喜欢安装版(装到电脑上程序列表能搜到)就&...

使用Clash Verge加速工具不能接入国际互联网(日常更新)

使用Clash Verge加速工具不能接入国际互联网(日常更新)

可能Clash Verge机场的节点信息有变动,更新一下节点配置信息,然后检测节点可用性,选一个可用的节点(节点名称后面有数值表示可用)。如果检测全部不可用,给机场提工单。今日作者关于美区账号Appl...

发表评论

访客

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