欢迎来到银盒子的世界~
要想让 flask run 可以后台运行
找到了nohup这个命令
可是直接nohup flask run 会报错:
nohup:ignoring input and appending output to 'nohup.out'
然后在这个里边找到答案https://stackoverflow.com/questions/24646320/nohupignoring-input-and-appending-output-to-nohup-out/24683454
nohup php server1.php </dev/null &>/dev/null &
nohup flask run </dev/null &>/dev/null &