当前位置: 首页 > news >正文

XrayR启动失败

公司要用服务器之间进行数据加密,这里用的XrayR

我使用的Centos 7。

我这里使用一键脚本安装后,/etc/XrayR目录下没有配置文件。

解决方案

XrayR安装时,系统没有unzip工具,也是会安装失败的,因为Centos7已经停止维护了,得换个数据源。

vi /etc/yum.repos.d/CentOS-Base.repo

把下面的配置文件,替换掉源文件。 

[base]
name=CentOS-7 - Base
baseurl=http://vault.centos.org/7.9.2009/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7[updates]
name=CentOS-7 - Updates
baseurl=http://vault.centos.org/7.9.2009/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7[extras]
name=CentOS-7 - Extras
baseurl=http://vault.centos.org/7.9.2009/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

保存退出后,再执行:

yum clean all
yum makecache
yum install unzip -y

下面所有命令都用 root 直接复制粘贴即可:

cat >/etc/yum.repos.d/CentOS-Base.repo <<'EOF'
[base]
name=CentOS-7 - Base
baseurl=http://vault.centos.org/7.9.2009/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7[updates]
name=CentOS-7 - Updates
baseurl=http://vault.centos.org/7.9.2009/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7[extras]
name=CentOS-7 - Extras
baseurl=http://vault.centos.org/7.9.2009/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
EOFyum clean all
yum makecache
# 把缺的工具一次性补上
yum -y install wget curl unzip tar

删除残缺目录,重新跑官方一键脚本:

rm -rf /usr/local/XrayR
bash <(curl -Ls https://raw.githubusercontent.com/XrayR-project/XrayR-release/master/install.sh)

OK完成。 

config.yml配置示例

Log:Level: none # Log level: none, error, warning, info, debug AccessPath: # /etc/XrayR/access.LogErrorPath: # /etc/XrayR/error.log
DnsConfigPath: # /etc/XrayR/dns.json # Path to dns config, check https://xtls.github.io/config/dns.html for help
RouteConfigPath: # /etc/XrayR/route.json # Path to route config, check https://xtls.github.io/config/routing.html for help
InboundConfigPath: # /etc/XrayR/custom_inbound.json # Path to custom inbound config, check https://xtls.github.io/config/inbound.html for help
OutboundConfigPath: # /etc/XrayR/custom_outbound.json # Path to custom outbound config, check https://xtls.github.io/config/outbound.html for help
ConnectionConfig:Handshake: 4 # Handshake time limit, SecondConnIdle: 10 # Connection idle time limit, SecondUplinkOnly: 2 # Time limit when the connection downstream is closed, SecondDownlinkOnly: 4 # Time limit when the connection is closed after the uplink is closed, SecondBufferSize: 64 # The internal cache size of each connection, kB 
Nodes:-PanelType: "V2board" # Panel type: SSpanel, NewV2board, V2board, PMpanel, ProxypanelApiConfig:ApiHost: "http://xin.students.xin"ApiKey: "V2boardV2boardV2board"NodeID: 1NodeType: Shadowsocks # Node type: V2ray, Trojan, Shadowsocks, Shadowsocks-PluginTimeout: 30 # Timeout for the api requestEnableVless: false # Enable Vless for V2ray TypeEnableXTLS: false # Enable XTLS for V2ray and TrojanSpeedLimit: 0 # Mbps, Local settings will replace remote settings, 0 means disableDeviceLimit: 0 # Local settings will replace remote settings, 0 means disableRuleListPath: # /etc/XrayR/rulelist Path to local rulelist fileControllerConfig:ListenIP: 0.0.0.0 # IP address you want to listenSendIP: 0.0.0.0 # IP address you want to send pacakageUpdatePeriodic: 60 # Time to update the nodeinfo, how many sec.EnableDNS: false # Use custom DNS config, Please ensure that you set the dns.json wellDNSType: AsIs # AsIs, UseIP, UseIPv4, UseIPv6, DNS strategyDisableUploadTraffic: false # Disable Upload Traffic to the panelDisableGetRule: false # Disable Get Rule from the panelDisableIVCheck: false # Disable the anti-reply protection for ShadowsocksDisableSniffing: false # Disable domain sniffing EnableProxyProtocol: falseAutoSpeedLimitConfig:Limit: 0 # Warned speed. Set to 0 to disable AutoSpeedLimit (mbps)WarnTimes: 0 # After (WarnTimes) consecutive warnings, the user will be limited. Set to 0 to punish overspeed user immediately.LimitSpeed: 0 # The speedlimit of a limited user (unit: mbps)LimitDuration: 0 # How many minutes will the limiting last (unit: minute)GlobalDeviceLimitConfig:Enable: false # Enable the global device limit of a userRedisAddr: 127.0.0.1:6379 # The redis server addressRedisPassword: YOUR PASSWORD # Redis passwordRedisDB: 0 # Redis DBTimeout: 5 # Timeout for redis requestExpiry: 60 # Expiry time (second)EnableFallback: false # Only support for Trojan and VlessFallBackConfigs:  # Support multiple fallbacks-SNI: # TLS SNI(Server Name Indication), Empty for anyAlpn: # Alpn, Empty for anyPath: # HTTP PATH, Empty for anyDest: 80 # Required, Destination of fallback, check https://xtls.github.io/config/fallback/ for details.ProxyProtocolVer: 0 # Send PROXY protocol version, 0 for dsableCertConfig:CertMode: dns # Option about how to get certificate: none, file, http, dns. Choose "none" will forcedly disable the tls config.RejectUnknownSni: false # Reject unknown SNICertDomain: "niuyuenoe.guangdongxjl.cfd" # Domain to certCertFile: /etc/XrayR/cert/node1.test.com.cert # Provided if the CertMode is fileKeyFile: /etc/XrayR/cert/node1.test.com.keyProvider: alidns # DNS cert provider, Get the full support list here: https://go-acme.github.io/lego/dns/Email: test@me.comDNSEnv: # DNS ENV option used by DNS providerALICLOUD_ACCESS_KEY: aaaALICLOUD_SECRET_KEY: bbb

http://www.xdnf.cn/news/194815.html

相关文章:

  • 架构进阶:详解108页系统架构设计与详细设计知识讲座【附全文阅读】
  • 品融电商:全域电商代运营的领航者,驱动品牌长效增长
  • 第四章:Messaging and Memory
  • C语言中的指针详解
  • RSS‘25|CMU提出统一空中操作框架:以末端执行器为中心,无人机实现高精度遥操作
  • Cursor + Figma-Context-MCP ,让 Cursor 获取 Figma 设计图信息,实现 AI 生成页面的高度还原
  • 力扣面试150题--K 个一组翻转链表
  • 机器人--激光雷达
  • ESG跨境电商怎么样?esg跨境电商有哪些功用?
  • 阅读MySQL实战45讲第11天
  • uniapp打包apk如何实现版本更新
  • Spring MVC异常处理利器:深入理解HandlerExceptionResolver
  • SpringBoot实现接口防刷的5种高效方案详解
  • C#/.NET/.NET Core技术前沿周刊 | 第 36 期(2025年4.21-4.27)
  • AudioSet 音频中文类别
  • 蚂蚁seo蜘蛛池:提升网站收录的秘密武器
  • Nacos源码—1.Nacos服务注册发现分析二
  • 系统思考提升培训效能
  • 100天精通Python挑战总览 | 零基础到应用实战!
  • 安徽地区安全员A证考试中,哪些知识点是高频考点?
  • mysql8.0版本部署+日志清理+rsync备份策略
  • LLaMA-Factory部署以及大模型的训练(细节+新手向)
  • 基于 Java 的实现前端组装查询语句,后端直接执行查询方案,涵盖前端和后端的设计思路
  • Vue组件开发进阶:从通信原理到DOM异步更新实战
  • 在视图中交互 闪退问题
  • 1. 用户之窗
  • 【阿里云大模型高级工程师ACP习题集】2.6.用插件扩展答疑机器人的能力边界
  • IEC 61850标准协议解读 2.基于Java的MMS实现
  • Python爬虫实战:获取猫yan电影网最新热门电影数据并做分析,为51观影做参考
  • ArcGIS arcpy代码工具——根据属性结构表创建shape图层