目录
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 即可。
From academy product to captain and leader of Real Madrid https://real-madrid.ikercasillas-br.com Casillas became one of the greatest players in the history of Real Madrid.
The fascinating story of Marcus Rashford’s rise https://manchester-united.marcusrashford-br.com from academy youth to the main striker and captain of Manchester United. Read about his meteoric rise and colorful career.
The story of Luka Modric’s rise https://real-madrid.lukamodric-br.com from young talent to one of the greatest midfielders of his generation and a key player for the Royals.
Next time I read a blog, I hope that it doesn’t disappoint me as much as this one. After all, Yes, it was my choice to read, nonetheless I actually thought you would probably have something interesting to say. All I hear is a bunch of whining about something you could fix if you weren’t too busy seeking attention.
I really like it whenever people come together and share ideas. Great blog, continue the good work!
Explore the remarkable journey of Vinicius Junior https://real-madrid.vinicius-junior.net, the Brazilian prodigy who conquered the world’s biggest stage with his dazzling skills and unparalleled ambition at Real Madrid.
Преимущества аренды склада https://vyvozmusorascherbinka.ru/preimushhestva-arendy-sklada-kak-optimizirovat-biznes-proczessy-i-snizit-izderzhki/, как аренда складских помещений может улучшить ваш бизнес
Spot on with this write-up, I absolutely think this web site needs much more attention. I’ll probably be back again to read more, thanks for the information.
Tyson Fury https://wbc.tyson-fury-fr.com is the undefeated WBC world champion and reigns supreme in boxing’s heavyweight division.
Explore the career and significance of Monica Bellucci https://malena.monica-bellucci-fr.com in Malena (2000), which explores complex themes of beauty and human strength in wartime.
Your style is so unique in comparison to other folks I have read stuff from. I appreciate you for posting when you have the opportunity, Guess I will just bookmark this web site.
I?¦ve recently started a blog, the info you offer on this website has helped me greatly. Thanks for all of your time & work.
my father have lots and lots of collectible coins that are very precious and rare`
four points by sheraton kolasin Kotor Montenegro
I happen to be writing to make you be aware of of the exceptional encounter my friend’s daughter enjoyed browsing your web site. She noticed so many things, which included what it’s like to possess an amazing giving character to have many people smoothly understand various problematic topics. You really did more than our own desires. Thanks for distributing such productive, dependable, informative and easy thoughts on your topic to Kate.
Youre so cool! I dont suppose Ive read anything in this way just before. So nice to seek out somebody by original ideas on this subject. realy we appreciate you starting this up. this excellent website is one area that is required on the internet, somebody with a little originality. helpful problem for bringing a new challenge on the internet!
Hello there! This is type of off subject but I need to have some guidance from an established website. Is it difficult to set up your private website? I’m not really techincal but I can figure issues out pretty rapid. I’m contemplating about generating my own but I’m not sure exactly where to start. Do you have any points or ideas? Numerous many thanks
Explore the rich history and unrivaled atmosphere of the iconic Old Trafford Stadium https://old-trafford.manchester-united-fr.com, home of one of the world’s most decorated football clubs, Manchester United.
How Taylor Swift https://midnights.taylor-swift-fr.com reinvented her sound and image on the intimate and reflective album “Midnights,” revealing new dimensions of her talent.
An exploration of Nicole Kidman’s https://watch.nicole-kidman-fr.com career, her notable roles, and her continued quest for excellence as an actress.
A fascinating story about how Elon Musk https://spacex.elon-musk-fr.com and his company SpaceX revolutionized space exploration, opening new horizons for humanity.
The inspiring story of Travis Scott’s https://yeezus.travis-scott-fr.com rise from emerging artist to one of modern hip-hop’s brightest stars through his collaboration with Kanye West.
Thanks for the tips on credit repair on this amazing web-site. What I would offer as advice to people will be to give up this mentality that they may buy at this point and shell out later. As a society all of us tend to do this for many things. This includes trips, furniture, and items we’d like. However, you have to separate a person’s wants from all the needs. While you are working to raise your credit score make some trade-offs. For example you possibly can shop online to economize or you can look at second hand suppliers instead of high priced department stores regarding clothing.
Your blog is one of a kind, i love the way you organize the topics.*,”~,
Spot on with this write-up, I seriously feel this website needs a great deal more attention. I’ll probably be back again to read more, thanks for the info.
After study a couple of of the blog posts in your web site now, and I actually like your means of blogging. I bookmarked it to my bookmark web site listing and will be checking again soon. Pls check out my website as nicely and let me know what you think.
The fascinating story of the creation and meteoric rise of Amazon https://amazon.jeff-bezos-fr.com from its humble beginnings as an online bookstore to its dominant force in the world of e-commerce.
Nice post. I understand something tougher on various blogs everyday. It will always be stimulating you just read content from other writers and exercise a little something from their website. I’d would rather apply certain with all the content in my small weblog regardless of whether you do not mind. Natually I’ll give you a link on the internet blog. Thank you for sharing.
Olympique de Marseille https://liga1.marseilles-fr.com after several years in the shadows, once again becomes champion of France. How did they do it and what prospects open up for the club
The fascinating story of Gigi Hadid’s rise to Victoria’s Secret Angel https://victorias-secret.gigi-hadid-fr.com status and her journey to the top of the modeling industry.
Travel to the pinnacle of French football https://stadede-bordeaux.bordeaux-fr.org at the Stade de Bordeaux, where the passion of the game meets the grandeur of architecture.
It’s nearly impossible to find well-informed people on this subject, however, you sound like you know what you’re talking about! Thanks
Une ascension fulgurante au pouvoir Donald Trump https://usa.donald-trump-fr.com et son empire commercial
Max Verstappen and Red Bull Racing’s https://red-bull-racing.max-verstappen-fr.com path to success in Formula 1. A story of talent, determination and team support leading to a championship title.
The astonishing story of Emmanuel Macron’s https://president-of-france.emmanuel-macron-fr.com political rise from bank director to the highest office in France.
Kim Kardashian’s https://the-kardashians.kim-kardashian-fr.com incredible success story, from sex scandal to pop culture icon and billion-dollar fortune.
Great post. I will be dealing with a few of these issues as well..
The legendary boxing world champion Mike Tyson https://ufc.mike-tyson-fr.biz made an unexpected transition to the UFC in 2024, where he rose to the top, becoming the oldest heavyweight champion.
The story of Fernando Alonso https://formula-1.fernando-alonso-fr.com in Formula 1: a unique path to success through talent, tenacity and strategic decisions, inspiring and exciting.
Next time I read a blog, Hopefully it does not fail me as much as this one. After all, I know it was my choice to read through, however I genuinely thought 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 looking for attention.
Everything is very open with a very clear description of the challenges. It was definitely informative. Your website is very useful. Thanks for sharing.
Discover Casper Ruud’s https://tennis.casper-ruud-fr.com journey from his Challenger debut to the top 10 of the world tennis rankings. A unique success.
The fascinating story of Alexander Zverev’s https://tennis.alexander-zverev-fr.biz rapid rise from a junior star to one of the leaders of modern tennis.
The fascinating story of Daniil Medvedev’s https://tennis.daniil-medvedev-fr.biz rise to world number one. Find out how a Russian tennis player quickly broke into the elite and conquered the tennis Olympus.
Carlos Alcaraz https://tennis.carlos-alcaraz-fr.biz from a talented junior to the ATP top 10. His rise is the result of hard work, support and impressive victories at major world tournaments.
Jannik Sinner https://tennis.jannik-sinner-fr.biz an Italian tennis player, went from starting his career to entering the top 10 of the ATP, demonstrating unique abilities and ambitions in world tennis.
Find out the story of Jon Jones https://ufc.jon-jones-fr.biz in the UFC: his triumphs, records and controversies, which made him one of the greatest fighters in the MMA world.
The story of the great Kobe Bryant https://los-angeles-lakers.kobe-bryant-fr.com with ” Los Angeles Lakers: his path to the championship, his legendary achievements.
Novak Djokovic’s https://tennis.novak-djokovic-fr.biz journey from childhood to the top of world tennis: early years, first victories, dominance and influence on the sport.
The success story of the French footballer https://juventus.thierry-henry.biz at Juventus: from his career at the club to leadership on the field , becoming a legend and a source of inspiration for youth.