目录
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 即可。
квартиры от застройщика цены жк купить квартиру новостройка застройщика отделкой
You have made some really 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 web site.
квартиры от застройщика жк https://novyekvartiry2.ru
купить двухкомнатную в новостройке https://newkvartiry-spb.ru
купить новостройку в ипотеку купить квартиру от застройщика
купить квартиру в новостройке цены купить новостройку недорого
This is a topic that’s near to my heart… Cheers! Where are your contact details though?
how can i get generic clomid price: how to get cheap clomid online – how to buy clomid
doxycycline capsules 50mg 100mg: doxycycline hyclate 100 mg cap – buy doxycycline 100mg online india
https://indibeti.in is a premier online casino offering a wide array of games including slots, table games, and live dealer options. Renowned for its user-friendly interface and robust security measures, Indibet ensures a top-notch gaming experience with exciting bonuses and 24/7 customer support.
купить 2 комнатную квартиру https://kvartiru-kupit43.ru
квартиру новостройку жк купить новые квартиры от застройщиков
купить однокомнатную квартиру в новостройке https://kvartiranew43.ru
buy cipro online usa: where can i buy cipro online – antibiotics cipro
doxycycline 400 mg brand name: cheap doxycycline online uk – doxycycline buy no prescription
The future football star Shabab Al-Ahly https://dubai.shabab-al-ahli-ar.com was born in Dubai in 2000. From a young age, he showed exceptional football abilities and joined the youth academy of one of the UAE’s leading clubs, Shabab Al-Ahly.
paxlovid buy: paxlovid buy – paxlovid price
Pretty! This has been an incredibly wonderful article. Thanks for providing this information.
In the world of football, Atletico Madrid https://spain.atletico-madrid-ar.com has long been considered the second most important club in Spain after the dominant, Real Madrid.
The fascinating story of Ja Morant’s https://spain.atletico-madrid-ar.com meteoric rise, from status from rookie to leader of the Memphis Grizzlies and rising NBA superstar.
Galatasaray https://turkey.galatasaray-ar.com is one of the most famous football clubs in Turkiye, with a glorious and eventful history.
AC Milan https://italy.milan-ar.com is one of the most successful and decorated football clubs in the world.
Ремонт плоской кровли https://remontiruem-krovly.ru в Москве, цена работы за 1 м?. Прайс лист на работы под ключ, отзывы и фото.
Thai Company Directory https://thaicorporates.com List of companies and business information.
https://ciprodelivery.pro/# ciprofloxacin mail online
https://clomiddelivery.pro/# can i get cheap clomid without prescription
Real Madrid’s https://spain.real-madrid-ar.com history goes back more than a century. The club was founded in 1902 by a group of football enthusiasts led by Juan Padilla
Arsenal https://england.arsenal-ar.com is one of the most famous and successful football clubs in the history of English football.
FC Bayern Munich (Munich) https://germany.bayern-munchen-ar.com is one of the most famous and recognized football clubs in Germany and Europe
azimut magellano 53 Budva boat tour
porto Montenegro marina Budva boat tour
where to buy amoxicillin over the counter: amoxicillin 500mg over the counter – amoxicillin 500 mg brand name
cipro online no prescription in the usa: buy ciprofloxacin – buy cipro online usa
http://ciprodelivery.pro/# ciprofloxacin 500mg buy online
http://clomiddelivery.pro/# generic clomid without dr prescription
Greetings! Very useful advice within this post! It’s the little changes that produce the biggest changes. Thanks a lot for sharing!
Aw, this was an extremely good post. Taking the time and actual effort to make a superb article… but what can I say… I put things off a lot and never manage to get nearly anything done.
FC Barcelona https://spain.fc-barcelona-ar.com is undoubtedly one of the most famous and well-known football clubs in the world.
Al-Nasr Club https://saudi.al-hilal-ar.com from Riyadh has a rich history of success, but its growth has been particularly impressive in recent years.
Al-Ittihad https://saudi.al-ittihad-ar.com is one of the most famous football clubs in Saudi Arabia. Founded in 1927, the Saudi football giant has come a long way to the pinnacle of success.
Al-Nasr https://saudi.al-nassr-ar.com is one of the most famous football teams in the Kingdom of Saudi Arabia.
Luis Suarez https://inter-miami.luis-suarez-ar.com the famous Uruguayan footballer, ended his brilliant career in European clubs and decided to try his hand at a new challenge – Major League Soccer.
Everything is very open with a very clear clarification of the challenges. It was truly informative. Your website is very helpful. Thanks for sharing!
ciprofloxacin generic: where to buy cipro online – buy cipro online usa
https://clomiddelivery.pro/# where can i get clomid without rx
https://ciprodelivery.pro/# ciprofloxacin generic
buy amoxicillin online uk: amoxil generic – where to buy amoxicillin 500mg
грузовые подъемники стоечные https://podemniki-gruzovye.ru
buy amoxicillin without prescription: amoxicillin 500mg cost – amoxicillin without rx
Bayern Munich’s https://bayern.jamal-musiala-ar.com young midfielder, Jamal Musiala, has become one of the brightest talents in European football.