2023年10月

安装应用:
sudo apt-get update && sudo apt-get install screen nano

nano auth.sh

#!/bin/sh
while :; do
./authserver
sleep 20
done

nano world.sh

#!/bin/sh
while :; do
./worldserver
sleep 20
done

nano restarter.sh

#!/bin/bash
screen -AmdS auth ./auth.sh
screen -AmdS world ./world.sh


nano shutdown.sh
#!/bin/bash
screen -X -S "world" quit
screen -X -S "auth" quit


./restarter.sh; screen -r world
./shutdown.sh


screen -ls

退出 :键盘点击ctrl+a , 然后按d


1. Change to superuser

sudo su -

2. After increasing the boot volume size in oracle dash, you'll get a rescan command that will look something like this below

sudo dd iflag=direct if=/dev/oracleoci/oraclevda of=/dev/null count=1
echo "1" | sudo tee /sys/class/block/readlink /dev/oracleoci/oraclevda | cut -d'/' -f 2/device/rescan

3. grow the partition (note: there is a space between sda and 1 here)

growpart /dev/sda 1

4. resize the filesystem (note: there is no space on sda1 this time

resize2fs /dev/sda1

you can confirm by checking disk free, with the command below

df -h