目录
Screen
* screen是Linux下的多重视窗管理程序。在使用SSH远程登录Linux时,如果连接中断(网络中断,直接关闭连ssh窗口等),重新连接时,系统将开一个新的session,无法恢复原来的session,而screen则可以解决这个问题 。
* 这个软件就是本文的核心,通过它,我们就可以实现如frp等程序可以在关闭ssh窗口后仍然可以后台运行。
环境
- 腾讯云服务器 - Linux - ubuntu20.04
- screen
- 版本:
- # screen -v
- Screen version 4.08.00 (GNU) 05-Feb-20
- 安装
- # sudo apt-get install screen
- 版本:
使用方法示例
这里我们用screen来维持frps的运行作示例来展示screen的使用方法。
- frps
- 这是一个实现内网穿透的服务端。
- 它默认情况下是需要保持ssh窗口的开启才能运行,一旦关闭ssh窗口,frps就会随之关闭。
- 首先让screen创建一个窗口
- # screen -S frps
- 注意命令中的 -S 是大写的 S。
- 命令中的第三部分frps只是一个名字而已,虽然创建的窗口是我们想用来保持frps运行的,但你可以随意起一个其他的名字,如abc,coolight等等。
- 然后直接运行frps
- # frps -c frps.ini
- 你也可以运行其他软件。
- 到这里实际上已经完成了,接下来可以直接把ssh窗口关闭,然后测试一下frps(你运行的软件)是否还在运行。
screen的常用命令
- # screen -S 窗口名
- 让screen创建一个窗口,使得把当前ssh窗口关闭后让screen保持这个窗口的运行。
- # screen -ls
- 列出所有screen维持的窗口。
- # screen -r 窗口名
- 回到这个窗口。
- 退出一个会话窗口
- 回到那个窗口。
- 直接执行 exit 即可。
http://slotsiteleri.bid/# deneme veren slot siteleri
en guvenilir slot siteleri: slot siteleri – guvenilir slot siteleri 2024
https://slotsiteleri.bid/# guvenilir slot siteleri 2024
deneme veren slot siteleri: deneme bonusu veren siteler – deneme bonusu veren siteler
slot siteleri: slot kumar siteleri – slot kumar siteleri
Good post. I learn something totally new and challenging on blogs I stumbleupon on a daily basis. It will always be useful to read through articles from other authors and practice a little something from their websites.
slot siteleri 2024: oyun siteleri slot – guvenilir slot siteleri
bonus veren slot siteleri: yeni slot siteleri – en cok kazandiran slot siteleri
Hi, I do think this is an excellent website. I stumbledupon it 😉 I may return once again since i have book marked it. Money and freedom is the greatest way to change, may you be rich and continue to help others.
en guvenilir slot siteleri: bonus veren slot siteleri – bonus veren slot siteleri
https://sweetbonanza.network/# sweet bonanza giris
2024 en iyi slot siteleri: guvenilir slot siteleri 2024 – guvenilir slot siteleri
slot siteleri: oyun siteleri slot – slot bahis siteleri
mexican rx online: mexico pharmacies prescription drugs – mexican border pharmacies shipping to usa
It’s hard to find experienced people about this subject, but you sound like you know what you’re talking about! Thanks
world pharmacy india: reputable indian pharmacies – Online medicine home delivery
http://easyrxcanada.com/# northern pharmacy canada
online canadian pharmacy review: canadian pharmacy online reviews – canadian pharmacies compare
I’m excited to discover this site. I need to to thank you for ones time due to this fantastic read!! I definitely appreciated every little bit of it and i also have you saved to fav to check out new stuff in your site.
seo продвижение москва seo продвижение москва .
https://mexstarpharma.online/# mexico drug stores pharmacies
mexican rx online: mexican mail order pharmacies – purple pharmacy mexico price list
I was able to find good information from your content.
https://mexstarpharma.online/# pharmacies in mexico that ship to usa
medicine in mexico pharmacies: mexican pharmaceuticals online – buying from online mexican pharmacy
https://mexstarpharma.com/# mexican online pharmacies prescription drugs
https://mexstarpharma.online/# mexico pharmacies prescription drugs
reputable indian online pharmacy: indian pharmacy paypal – india pharmacy
pharmacies in mexico that ship to usa: mexican pharmaceuticals online – medication from mexico pharmacy
indian pharmacy: pharmacy website india – cheapest online pharmacy india
You should take part in a contest for one of the most useful sites on the net. I’m going to recommend this blog!
india pharmacy mail order: indian pharmacy online – reputable indian pharmacies
https://easyrxindia.com/# world pharmacy india
This site was… how do I say it? Relevant!! Finally I’ve found something which helped me. Thanks.
http://easyrxindia.com/# cheapest online pharmacy india
mexican online pharmacies prescription drugs: reputable mexican pharmacies online – buying prescription drugs in mexico online
When I originally left a comment I seem to have clicked on the -Notify me when new comments are added- checkbox and from now on whenever a comment is added I recieve 4 emails with the same comment. There has to be an easy method you are able to remove me from that service? Many thanks.
cheapest pharmacy canada: canada drugs – canadian pharmacy sarasota
buying prescription drugs in mexico online: mexico drug stores pharmacies – buying from online mexican pharmacy
buying from online mexican pharmacy: best online pharmacies in mexico – mexican drugstore online
https://mexstarpharma.online/# medication from mexico pharmacy
https://easyrxindia.com/# Online medicine home delivery
https://easyrxcanada.online/# canadian medications
Thanks a lot for sharing this with all people you actually know what you’re speaking approximately! Bookmarked. Kindly also visit my website =). We will have a hyperlink alternate agreement among us
зеркало казино либет
This blog was… how do you say it? Relevant!! Finally I have found something which helped me. Thank you.
top online pharmacy india online shopping pharmacy india reputable indian online pharmacy
I quite like reading through a post that can make men and women think. Also, thanks for permitting me to comment.
Смешные картинки kartinkitop.ru .
https://easyrxindia.com/# cheapest online pharmacy india
legitimate canadian pharmacies: certified canadian pharmacy – legit canadian online pharmacy