扫码关注官方订阅号
闭关修行中......
When a program terminates, screen (per default) kills the window that contained it. If this window was in the foreground, the display switches to the previously displayed window; if none are left, screen exits.
所以说,你直接kill掉screen里面运行的程序,然后新开一个窗口,不就可以了吗?
kill
screen
窗口1中while [[ 1 ]]; do 你的服务(阻塞); done
while [[ 1 ]]; do 你的服务(阻塞); done
想重启时从其他窗口kill
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
所以说,你直接
kill掉screen里面运行的程序,然后新开一个窗口,不就可以了吗?窗口1中
while [[ 1 ]]; do 你的服务(阻塞); done想重启时从其他窗口kill