mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-08 21:06:48 +00:00
Forward 6379 for Redis
This commit is contained in:
parent
43b6926c11
commit
778779fa0d
@ -9,8 +9,9 @@
|
||||
|
||||
RAND_PORT_NUM1=$(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="\
|
||||
-cpu Icelake-Server,+x2apic \
|
||||
@ -22,7 +23,7 @@ COMMON_QEMU_ARGS="\
|
||||
-serial chardev:mux \
|
||||
-monitor chardev:mux \
|
||||
-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 \
|
||||
-device isa-debug-exit,iobase=0xf4,iosize=0x04 \
|
||||
-drive if=none,format=raw,id=x0,file=./test/build/ext2.img \
|
||||
|
Loading…
x
Reference in New Issue
Block a user