下载
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": "http","listen_port": 42324,"users": [{"username": "ycycxz","password": "ycycxz"}]}]}EOF无密码
/etc/ycycxz-sing-box/ycycxz.jsoncat <<EOF > /etc/ycycxz-sing-box/ycycxz.json{"inbounds": [{"type": "http","listen_port": 42324}]}EOFsystemd
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客户端
用户名 密码 测试小火煎
视频教程
How was it? Did this tutorial work? No
