下载
wget -q4O /usr/local/bin/ycycxz-sing-box https://ycycxz.com/dl/ycycxz-sing-box-linux-amd64chmod +x /usr/local/bin/ycycxz-sing-boxmkdir -p /etc/ycycxz-sing-boxycycxz-sing-box version服务器端配置
/etc/ycycxz-sing-box/ycycxz.jsoncat <<EOF > /etc/ycycxz-sing-box/ycycxz.json{"inbounds": [{"type": "naive","listen_port": 42324,"users": [{"username": "ycycxz","password": "ycycxz"}],"tls": {"enabled": true,"acme": {"domain": "naive.local","data_directory": "/etc/ycycxz-sing-box"}}}]}EOF查看注释systemd
cat <<EOF > /etc/systemd/system/ycycxz-sing-box.service[Unit]Description=ycycxz-sing-boxAfter=network-online.target[Service]LimitAS=infinityLimitNOFILE=infinityLimitNPROC=infinityTasksMax=infinityExecStart=/usr/local/bin/ycycxz-sing-box run -c /etc/ycycxz-sing-box/ycycxz.json[Install]WantedBy=multi-user.targetEOFsystemctl daemon-reloadsystemctl enable ycycxz-sing-box启动
systemctl start ycycxz-sing-box#systemctl status ycycxz-sing-box查看注释卸载
systemctl stop ycycxz-sing-boxrm /etc/systemd/system/ycycxz-sing-box.servicesystemctl daemon-reloadrm -rf /etc/ycycxz-sing-boxrm -f /usr/local/bin/ycycxz-sing-box客户端
Qv2ray下quic或者https都可以,padding自适应.shadowrocket报错 NET:ERR_CERT_INVALID视频教程
How was it? Did this tutorial work? No
