目录
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 即可。
Good day! Do you use Twitter? I’d like to follow you if that would be ok. I’m definitely enjoying your blog and look forward to new posts.
https://igrotech.com.ua/kupyty-led-linzy-dlya-avto-polipshyty-osvitlennya-svogo-avtomobilya
comprare farmaci online con ricetta: Avanafil 50 mg – top farmacia online
pillole per erezione immediata: viagra online – pillole per erezione immediata
Everything is very open with a clear explanation of the issues. It was truly informative. Your site is useful. Thanks for sharing!
Hi, I do believe this is an excellent site. I stumbledupon it 😉 I will revisit yet again since I bookmarked it. Money and freedom is the best way to change, may you be rich and continue to guide others.
https://kamagrait.pro/# comprare farmaci online con ricetta
farmacia online piГ№ conveniente: Farmacie online sicure – farmacia online piГ№ conveniente
gel per erezione in farmacia: viagra online siti sicuri – viagra acquisto in contrassegno in italia
migliori farmacie online 2024: kamagra gel – Farmacie on line spedizione gratuita
cerco viagra a buon prezzo: viagra online siti sicuri – viagra online spedizione gratuita
Farmacie on line spedizione gratuita: Avanafil prezzo – Farmacia online piГ№ conveniente
viagra prezzo farmacia 2023: acquisto viagra – viagra cosa serve
http://avanafil.pro/# Farmacia online miglior prezzo
Hello, I believe your blog could possibly be having browser compatibility problems. Whenever I look at your site in Safari, it looks fine but when opening in Internet Explorer, it has some overlapping issues. I merely wanted to provide you with a quick heads up! Besides that, fantastic blog!
http://viagragenerico.site/# viagra subito
farmacia online senza ricetta: Farmacia online migliore – comprare farmaci online all’estero
Greetings! Very useful advice in this particular article! It’s the little changes which will make the biggest changes. Thanks a lot for sharing!
viagra online spedizione gratuita: viagra generico – viagra generico in farmacia costo
viagra 50 mg prezzo in farmacia: viagra senza ricetta – viagra originale in 24 ore contrassegno
acquisto farmaci con ricetta: Cialis generico controindicazioni – Farmacie on line spedizione gratuita
You should be a part of a contest for one of the most useful blogs on the net. I’m going to highly recommend this web site!
What a material of un-ambiguity and preserveness of precious familiarity concerning unpredicted feelings.
блог
http://avanafil.pro/# farmacia online piГ№ conveniente
viagra 100 mg prezzo in farmacia: viagra consegna in 24 ore pagamento alla consegna – siti sicuri per comprare viagra online
farmacie online affidabili: Cialis generico 20 mg 8 compresse prezzo – comprare farmaci online con ricetta
acquistare farmaci senza ricetta: Farmacia online piu conveniente – Farmacie online sicure
farmacie online affidabili: Cialis generico farmacia – farmacie online affidabili
Свежие и актуальные http://barbie-games.ru новости современной техники
Oh my goodness! Amazing article dude! Thanks, However I am encountering problems with your RSS. I don’t understand the reason why I am unable to subscribe to it. Is there anyone else getting identical RSS problems? Anybody who knows the answer will you kindly respond? Thanks!
comprare farmaci online all’estero: Farmacie online sicure – farmacie online sicure
https://viagragenerico.site/# miglior sito dove acquistare viagra
farmacia online piГ№ conveniente: Farmacia online migliore – farmacia online piГ№ conveniente
Excellent post. I am dealing with some of these issues as well..
nolvadex for pct: natural alternatives to tamoxifen – clomid nolvadex
Самое свежее и актуальное http://barbie-games.ru/chervotochina-ili-sverhmassivnaia-chernaia-dyra
prednisone 5 mg: prednisone online pharmacy – prednisone tablets 2.5 mg
tamoxifen breast cancer prevention: does tamoxifen make you tired – tamoxifen for breast cancer prevention
http://prednisonebestprice.pro/# purchase prednisone no prescription
http://zithromaxbestprice.pro/# can i buy zithromax over the counter
zithromax 500mg price: zithromax prescription – zithromax buy
buy prednisone with paypal canada: prednisone cost canada – 100 mg prednisone daily
buy propecia online: cost of generic propecia online – order propecia
best google hacklink services.
Very good info. Lucky me I came across your site by accident (stumbleupon). I’ve bookmarked it for later!
buy propecia prices: buying propecia for sale – cost of propecia price
where can you buy zithromax: zithromax capsules australia – zithromax 250 mg
tamoxifen and grapefruit: tamoxifen breast cancer – tamoxifen moa
There is definately a great deal to learn about this subject. I love all the points you made.
http://prednisonebestprice.pro/# prednisone daily use
https://zithromaxbestprice.pro/# where can i get zithromax