-
安装OpenClash:
- Windows:使用 Chocolatey,运行命令:
choco install OpenClash
- Linux(Ubuntu/Debian):使用 APT,运行命令:
sudo apt-get install openclash
- Mac:使用 Homebrew,运行命令:
brew install openclash
- Windows:使用 Chocolatey,运行命令:
-
配置OpenClash节点:
- 启动OpenClash:
openclash start
- 生成API密钥,按照提示输入并保存。
- 配置节点信息,设置服务器地址、端口和API密钥:
openclash config --server-ip your_server_ip --server-port 12345 --api-key your_api_key
- 启动OpenClash:
-
验证节点运行:
- 查看日志:
journalctl -u openclash.service
- 确认防火墙设置,开放端口12345:
sudo ufw allow out 12345
- 测试节点连接,运行:
openclash status
查看节点状态是否正常。
- 查看日志:
-
管理节点:
- 停止节点:
openclash stop
- 重启节点:
openclash start
- 停止节点:
注意事项:
- 安装前确保系统满足要求。
- 配置时核对服务器信息和API密钥。
- 验证网络连接,确保节点可达目标服务器。
- 注册节点后,OpenClash会开始扫描和报告。
完成以上步骤后,OpenClash节点已成功导入并配置,准备进行相关网络任务。









