目录
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 即可。
Thibaut Courtois https://real-madrid.thibaut-courtois-ar.com was born on May 11, 1992 in Belgium.
Arsenal https://arsenal.mesut-ozil-ar.com made a high-profile signing in 2013, signing star midfielder Mesut Ozil from Real Madrid.
https://euroavia24.com – Cheap flights, hotels and transfers around the world!
Rodrigo Goes https://real-madrid.rodrygo-ar.com better known as Rodrigo, is one of the brightest young talents in modern football.
The Saudi Football League https://saudi-arabian-championship.saudi-pro-league-ar.com known as the Saudi Professional League, is one of the most competitive and dynamic leagues in the world.
In an era when many young footballers struggle to find their place at elite clubs, Javi’s https://barcelona.gavi-ar.com story at Barcelona stands out as an exceptional one.
http://paxloviddelivery.pro/# paxlovid india
Having read this I believed it was rather informative. I appreciate you taking the time and effort to put this informative article together. I once again find myself personally spending a significant amount of time both reading and leaving comments. But so what, it was still worthwhile.
https://clomiddelivery.pro/# how to get cheap clomid
In recent years, the leading positions in the Spanish https://spanish-championship.laliga-ar.com championship have been firmly occupied by two major giants – Barcelona and Real Madrid.
The Italian football championship https://italian-championship.serie-a-ar.com known as Serie A, has seen an impressive revival in recent years.
The road to the Premier League https://english-championship.premier-league-ar.com begins long before a team gets promoted to the English Premier League for the first time
The golf https://arabic.golfclub-ar.com industry in the Arab world is growing rapidly, attracting players from all over the world.
The next time I read a blog, I hope that it won’t fail me just as much as this one. I mean, Yes, it was my choice to read through, nonetheless I truly believed you would have something helpful to say. All I hear is a bunch of complaining about something that you can fix if you were not too busy searching for attention.
can you buy amoxicillin over the counter: buy amoxicillin canada – buy amoxicillin 500mg online
how to get generic clomid without insurance: can i get generic clomid pill – generic clomid without insurance
https://clomiddelivery.pro/# where can i buy generic clomid without a prescription
where to buy amoxicillin 500mg: buy amoxicillin online without prescription – buy amoxicillin online mexico
https://doxycyclinedelivery.pro/# where can i get doxycycline pills
I wanted to thank you for this wonderful read!! I definitely loved every little bit of it. I have got you book-marked to look at new stuff you post…
Manny Pacquiao https://filipino-boxer.manny-pacquiao-ar.com is one of the most prominent boxers in the history of the sport.
Muhammad Ali https://american-boxer.muhammad-ali-ar.com is perhaps one of the most famous and greatest athletes in the history of boxing.
Mike Tyson https://american-boxer.mike-tyson-ar.com one of the most famous and influential boxers in history, was born on June 30, 1966 in Brooklyn, New York.
Montenegro car rental Tivat renting a car in Montenegro
http://amoxildelivery.pro/# amoxicillin without rx
https://doxycyclinedelivery.pro/# doxycycline online canada without prescription
Paxlovid over the counter: paxlovid price – paxlovid pharmacy
Michael Jordan https://chicago-bulls.michael-jordan-ar.com is one of the greatest basketball players of all time, whose career with the Chicago Bulls is legendary.
дизайн интерьера квартиры кухня дизайн интерьера
The Formula One World Championship https://world-circuit-racing-championship.formula-1-ar.com, known as the Formula Championship in motor racing, is the highest tier of professional motor racing.
After some difficult years in the late 2010s, Manchester United https://england.manchester-united-ar.com returned to greatness in English football by 2024.
cost of amoxicillin 875 mg: where to buy amoxicillin 500mg without prescription – amoxicillin 500mg price
http://ciprodelivery.pro/# buy cipro cheap
Jennifer Lopez https://lets-get-loud.jenniferlopez-ar.com was born in 1969 in the Bronx, New York, to parents who were Puerto Rican immigrants.
An outstanding share! I’ve just forwarded this onto a colleague who had been doing a little research on this. And he in fact ordered me breakfast because I discovered it for him… lol. So allow me to reword this…. Thank YOU for the meal!! But yeah, thanx for spending time to talk about this issue here on your internet site.
https://paxloviddelivery.pro/# paxlovid pill
https://paxloviddelivery.pro/# paxlovid india
When Taylor Swift https://shake-it-off.taylor-swift-ar.com released “Shake It Off” in 2014, she had no idea how much the song would impact her life and music career.
Priyanka Chopra https://baywatch.priyankachopra-ar.com is an Indian actress, singer, film producer and model who has achieved global success.
Liverpool https://england.liverpool-ar.com holds a special place in the history of football in England.
Автомобили Hongqi https://hongqi-krasnoyarsk.ru в наличии – официальный дилер Hongqi Красноярск
You are so cool! I don’t suppose I’ve read through anything like that before. So great to find another person with some genuine thoughts on this subject. Seriously.. many thanks for starting this up. This web site is one thing that is required on the internet, someone with a bit of originality.
Good site you have here.. It’s difficult to find excellent writing like yours nowadays. I honestly appreciate people like you! Take care!!
can i buy doxycycline over the counter in europe: doxycycline 20 mg coupon – vibramycin doxycycline
https://amoxildelivery.pro/# order amoxicillin online uk
http://doxycyclinedelivery.pro/# doxycycline 163
buy cipro online usa: buy cipro without rx – buy cipro online canada
doxycycline pills over the counter: where to buy doxycycline in singapore – doxycycline prescription
Juventus Football Club https://italy.juventus-ar.com is one of the most successful and decorated clubs in the history of Italian and world football.
Chelsea https://england.chelsea-ar.com is one of the most successful English football clubs of our time.