下载
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服务器端配置
/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"
}
}
}
]
}
EOFexplain this code snippetsystemd
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启动
端口80不能被占用
systemctl start ycycxz-sing-box
#systemctl status ycycxz-sing-boxexplain this code snippet卸载
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客户端
Qv2ray
下quic
或者https
都可以,padding
自适应.shadowrocket
报错 NET:ERR_CERT_INVALID视频教程
How was it? Did this tutorial work? Yes No