value=0 value2=0 echo > /dev/tcp/127.0.0.1/3032 value=`echo $?` echo > /dev/tcp/127.0.0.1/3031 value2=`echo $?` echo "3032오픈상황:${value}" echo "3031오픈상황:${value2}" timestamp=`date +%Y%m%d%H%M%C` echo "$timestamp" cd /home/ec2-user/ mv nuxt ${timestamp} port=0; upport=0; if [ ${value} -eq 0 ] then echo '3031시작' sed -i 's/3032/3031/g' /home/ec2-user/${timestamp}/nuxt.config.js sed -i 's/3032/3031/g..