目录
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 即可。
canadian pharmacy ltd: pharmacy canadian superstore – best canadian pharmacy online
I absolutely love your blog.. Excellent colors & theme. Did you create this website yourself? Please reply back as I’m wanting to create my own personal blog and would like to learn where you got this from or just what the theme is named. Appreciate it.
india pharmacy mail order: indian pharmacy paypal – reputable indian pharmacies
mexican border pharmacies shipping to usa: mexican mail order pharmacies – medication from mexico pharmacy
cheapest online pharmacy india buy medicines online in india reputable indian online pharmacy
online pharmacy india п»їlegitimate online pharmacies india world pharmacy india
https://easyrxcanada.online/# canadian pharmacy online store
reputable canadian pharmacy: canada drugs – canadian discount pharmacy
Good day! I simply wish to offer you a big thumbs up for your excellent info you have got here on this post. I’ll be coming back to your site for more soon.
https://easyrxcanada.online/# pharmacy canadian superstore
https://easyrxcanada.com/# escrow pharmacy canada
mexico drug stores pharmacies mexican border pharmacies shipping to usa mexican rx online
Aw, this was a really nice post. Taking the time and actual effort to create a top notch article… but what can I say… I put things off a lot and never seem to get anything done.
https://easyrxcanada.online/# onlinepharmaciescanada com
Howdy! This post could not be written any better! Reading through this article reminds me of my previous roommate! He always kept preaching about this. I am going to forward this article to him. Pretty sure he’s going to have a good read. Many thanks for sharing!
mexico drug stores pharmacies: mexican pharmacy – п»їbest mexican online pharmacies
indian pharmacy online top online pharmacy india best online pharmacy india
canadian pharmacy world reviews best canadian pharmacy online canadian pharmacy 24 com
https://easyrxcanada.com/# cheap canadian pharmacy online
What’s up colleagues, good article and nice arguments commented here, I am truly enjoying by these.
либет казино
вывод из запоя екатеринбург вывод из запоя екатеринбург .
Right here is the perfect site for everyone who wants to understand this topic. You realize a whole lot its almost tough to argue with you (not that I really will need to…HaHa). You definitely put a new spin on a subject which has been discussed for many years. Excellent stuff, just wonderful.
https://easyrxindia.shop/# Online medicine order
https://mexstarpharma.online/# mexican border pharmacies shipping to usa
https://easyrxcanada.online/# best online canadian pharmacy
top online pharmacy india pharmacy website india indian pharmacies safe
canada rx pharmacy: ordering drugs from canada – canada pharmacy online legit
https://easyrxindia.com/# india online pharmacy
canadianpharmacymeds: canadian drug prices – canadian pharmacy world
reddit canadian pharmacy canada discount pharmacy canadian pharmacy 24 com
cheapest online pharmacy india reputable indian online pharmacy top 10 online pharmacy in india
You made some good points there. I checked on the net to learn more about the issue and found most individuals will go along with your views on this site.
вызов на дом выведение из запоя вызов на дом выведение из запоя .
After I originally commented I appear to have clicked the -Notify me when new comments are added- checkbox and from now on each time a comment is added I recieve four emails with the exact same comment. Perhaps there is an easy method you are able to remove me from that service? Many thanks.
медикаментозный вывод из запоя краснодар медикаментозный вывод из запоя краснодар .
вывод из запоя лечение краснодар http://www.vyvod-iz-zapoya-krasnodar12.ru/ .
I’d like to thank you for the efforts you’ve put in writing this site. I am hoping to view the same high-grade content by you later on as well. In truth, your creative writing abilities has inspired me to get my own site now 😉
Good post. I learn something new and challenging on blogs I stumbleupon everyday. It will always be interesting to read articles from other authors and use something from other web sites.
Nice post. I learn something new and challenging on websites I stumbleupon everyday. It will always be helpful to read through articles from other writers and practice something from other websites.
I like it when people come together and share views. Great website, keep it up.
вывод из запоя в стационаре вывод из запоя в стационаре .
I used to be able to find good info from your content.
лечение наркозависимости в стационаре лечение наркозависимости в стационаре .
Greetings! Very helpful advice in this particular article! It is the little changes that produce the most important changes. Thanks for sharing!
Thank you for your thought-provoking post.프라그마틱
Hello there! I could have sworn I’ve been to this blog before but after looking at many of the articles I realized it’s new to me. Nonetheless, I’m definitely delighted I discovered it and I’ll be bookmarking it and checking back often!
purchase cytotec https://lisinopril.guru/# lisinopril 5 mg tablet
furosemida 40 mg
buy cytotec over the counter: buy misoprostol tablet – buy cytotec
Nice post. I learn something totally new and challenging on websites I stumbleupon on a daily basis. It’s always useful to read through content from other writers and use something from other websites.
Your style is really unique in comparison to other people I have read stuff from. Many thanks for posting when you’ve got the opportunity, Guess I’ll just book mark this blog.