切换到root,关闭防火墙,关闭安全模式。
sudo -i
sudo service firewalld stop
vim /etc/selinux/config
找到SELINUX=enforcing,修改为SELINUX=disabled
如果机器内存比较小,加交换分区:
1 | fallocate -l 2G /swapfile |
通过一键脚本安装hy2服务
1 | bash <(wget -qO- https://raw.githubusercontent.com/yonggekkk/sing-box-yg/main/sb.sh) |
项目:https://github.com/yonggekkk/sing-box_hysteria2_tuic_argo_reality
安装后得到 hysteria2://.. 节点链接
卸载交换分区命令(内存很小的话可以不卸载,保持使用交换分区):
1 | swapoff /swapfile |