Skip to main content

vmess节点搭建

  1. 下载

    wget -q4O /usr/local/bin/ycycxz-sing-box https://ycycxz.com/dl/ycycxz-sing-box-linux-amd64
    chmod +x /usr/local/bin/ycycxz-sing-box
    mkdir -p /etc/ycycxz-sing-box
    ycycxz-sing-box version
  2. 配置

    /etc/ycycxz-sing-box/ycycxz.json
    cat <<EOF > /etc/ycycxz-sing-box/ycycxz.json
    {
    "inbounds": [
    {
    "type": "vmess",
    "listen_port": 42324,
    "users": [
    {
    "uuid": "1023839a-5910-5af2-8679-bb6c0b53c6db",
    "alterId": 0
    }
    ]
    }
    ]
    }
    EOF
  3. systemd

    cat <<EOF > /etc/systemd/system/ycycxz-sing-box.service
    [Unit]
    Description=ycycxz-sing-box
    After=network-online.target

    [Service]
    LimitAS=infinity
    LimitNOFILE=infinity
    LimitNPROC=infinity
    TasksMax=infinity
    ExecStart=/usr/local/bin/ycycxz-sing-box run -c /etc/ycycxz-sing-box/ycycxz.json

    [Install]
    WantedBy=multi-user.target
    EOF
    systemctl daemon-reload
    systemctl enable ycycxz-sing-box
  4. 启动

    systemctl start ycycxz-sing-box
    #systemctl status ycycxz-sing-box
  5. 卸载

    systemctl stop ycycxz-sing-box
    rm /etc/systemd/system/ycycxz-sing-box.service
    systemctl daemon-reload
    rm -rf /etc/ycycxz-sing-box
    rm -f /usr/local/bin/ycycxz-sing-box
  6. 客户端

    小火煎等

  7. 视频教程