网上查了可以本地部署个NGINX做转发,想了下有点重了。看到另一个东西也可以实现:socat
apt-get install socat
# or yum install socat
# or apk add socat
socat TCP-LISTEN:8080,fork TCP:127.0.0.1:18080
nohup socat TCP-LISTEN:8080,fork TCP:127.0.0.1:18080 > /dev/null 2>&1 & apt-get install socat
# or yum install socat
# or apk add socat
socat TCP-LISTEN:8080,fork TCP:127.0.0.1:18080
nohup socat TCP-LISTEN:8080,fork TCP:127.0.0.1:18080 > /dev/null 2>&1 &