Forward 6379 for Redis

This commit is contained in:
Yuke Peng 2024-09-14 12:48:09 +08:00 committed by Tate, Hongliang Tian
parent 43b6926c11
commit 778779fa0d

View File

@ -9,8 +9,9 @@
RAND_PORT_NUM1=$(shuf -i 1024-65535 -n 1) RAND_PORT_NUM1=$(shuf -i 1024-65535 -n 1)
RAND_PORT_NUM2=$(shuf -i 1024-65535 -n 1) RAND_PORT_NUM2=$(shuf -i 1024-65535 -n 1)
RAND_PORT_NUM3=$(shuf -i 1024-65535 -n 1)
echo "[$1] Forwarded QEMU guest port: $RAND_PORT_NUM1->22; $RAND_PORT_NUM2->8080" 1>&2 echo "[$1] Forwarded QEMU guest port: $RAND_PORT_NUM1->22; $RAND_PORT_NUM2->8080 $RAND_PORT_NUM3->6379" 1>&2
COMMON_QEMU_ARGS="\ COMMON_QEMU_ARGS="\
-cpu Icelake-Server,+x2apic \ -cpu Icelake-Server,+x2apic \
@ -22,7 +23,7 @@ COMMON_QEMU_ARGS="\
-serial chardev:mux \ -serial chardev:mux \
-monitor chardev:mux \ -monitor chardev:mux \
-chardev stdio,id=mux,mux=on,signal=off,logfile=qemu.log \ -chardev stdio,id=mux,mux=on,signal=off,logfile=qemu.log \
-netdev user,id=net01,hostfwd=tcp::$RAND_PORT_NUM1-:22,hostfwd=tcp::$RAND_PORT_NUM2-:8080 \ -netdev user,id=net01,hostfwd=tcp::$RAND_PORT_NUM1-:22,hostfwd=tcp::$RAND_PORT_NUM2-:8080,hostfwd=tcp::$RAND_PORT_NUM3-:6379 \
-object filter-dump,id=filter0,netdev=net01,file=virtio-net.pcap \ -object filter-dump,id=filter0,netdev=net01,file=virtio-net.pcap \
-device isa-debug-exit,iobase=0xf4,iosize=0x04 \ -device isa-debug-exit,iobase=0xf4,iosize=0x04 \
-drive if=none,format=raw,id=x0,file=./test/build/ext2.img \ -drive if=none,format=raw,id=x0,file=./test/build/ext2.img \