目录
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 即可。
reputable indian online pharmacy: Online pharmacy – indian pharmacy paypal
https://edpillpharmacy.store/# buy ed pills
get ed meds online
pharmacies in mexico that ship to usa: Mexico pharmacy online – mexican border pharmacies shipping to usa
https://mexicopharmacy.win/# mexican rx online
buying erectile dysfunction pills online
You made some good points there. I looked on the web for additional information about the issue and found most individuals will go along with your views on this website.
http://indiapharmacy.shop/# Online medicine order
https://edpillpharmacy.store/# discount ed meds
cheapest ed pills
top 10 online pharmacy in india: Top mail order pharmacies – mail order pharmacy india
https://tadalafil.auction/# side effects of cialis 20mg
viagra for women: Buy Viagra online in USA – cheap viagra
when will generic cialis be available in the usa: cialis without a doctor prescription – cialis tablets in australia
Aw, this was an incredibly nice post. Taking the time and actual effort to produce a superb article… but what can I say… I procrastinate a whole lot and don’t manage to get anything done.
generic cialis uk online: cheapest tadalafil – cialis soft tabs canada
viagra for sale: Cheap Viagra online – female viagra
viagra canada: buy sildenafil online usa – viagra price
After looking into a handful of the articles on your web site, I seriously like your technique of writing a blog. I book marked it to my bookmark website list and will be checking back soon. Take a look at my web site as well and tell me how you feel.
http://sildenafil.llc/# viagra coupon
http://tadalafil.auction/# cialis store in philippines
real cialis: Buy Tadalafil 20mg – cialis in usa
viagra 100mg: Viagra without a doctor prescription – viagra dosage recommendations
cialis canada org doc: Buy Cialis online – cialis next day delivery
You ought to take part in a contest for one of the highest quality websites on the web. I’m going to highly recommend this site!
Свежие новости http://barbie-games.ru/ychenye-sozdali-jidkii-nanolazer-kotoryi-ymeet-meniat-cvet технологий новинки компьютерной техники
cialis discount: Generic Tadalafil 20mg price – cheap cialis
Актуальные новости техники http://barbie-games.ru/diskyssiia-po-voprosam-trekingovyh-sistem-sostoitsia-22-maia и гаджетов.
Новости высоких технологий http://barbie-games.ru/category/smartfonyi новинки компьютерной техники и мобильных телефонов
http://tadalafil.auction/# purchase cialis in canada
when cialis patent expires: Buy Tadalafil 20mg – cialis without persciction
https://tadalafil.auction/# how much does cialis cost at walmart
online viagra: Cheap Viagra online – viagra vs cialis
где заказать торт с доставкой https://zakazat-tort-nedorogo.ru
Oh my goodness! a tremendous article dude. Thanks Nonetheless I’m experiencing challenge with ur rss . Don know why Unable to subscribe to it. Is there anyone getting similar rss drawback? Anyone who knows kindly respond. Thnkx
cheapest cialis in australia: cheapest tadalafil – cialis 800 black canada
http://viagragenerico.site/# viagra 100 mg prezzo in farmacia
It’s nearly impossible to find experienced people in this particular topic, but you seem like you know what you’re talking about! Thanks
cialis farmacia senza ricetta: viagra prezzo – viagra originale in 24 ore contrassegno
comprare farmaci online all’estero: Farmacie che vendono Cialis senza ricetta – comprare farmaci online con ricetta
comprare farmaci online con ricetta: Farmacie che vendono Cialis senza ricetta – acquistare farmaci senza ricetta
viagra online consegna rapida: viagra online siti sicuri – viagra naturale
This site was… how do I say it? Relevant!! Finally I’ve found something which helped me. Thanks!
farmacie online affidabili: Cialis generico controindicazioni – farmaci senza ricetta elenco
https://avanafil.pro/# migliori farmacie online 2024
farmacie online autorizzate elenco: sildenafil oral jelly 100mg kamagra – acquistare farmaci senza ricetta
This is the right webpage for everyone who really wants to understand this topic. You realize a whole lot its almost hard to argue with you (not that I personally will need to…HaHa). You certainly put a brand new spin on a subject which has been written about for ages. Excellent stuff, just great.
farmacia online: comprare farmaci online all’estero – п»їFarmacia online migliore
https://cialisgenerico.life/# п»їFarmacia online migliore
https://viagragenerico.site/# viagra subito
comprare farmaci online all’estero: avanafil 100 mg prezzo – migliori farmacie online 2024
viagra originale in 24 ore contrassegno: viagra farmacia – alternativa al viagra senza ricetta in farmacia
viagra generico sandoz: viagra senza prescrizione – viagra prezzo farmacia 2023