目录
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 即可。
https://canadapharmast.com/# buy drugs from canada
canadian pharmacies comparison real canadian pharmacy northern pharmacy canada
The next time I read a blog, Hopefully it doesn’t disappoint me just as much as this one. After all, I know it was my choice to read, but I genuinely thought you would probably have something helpful to say. All I hear is a bunch of crying about something you can fix if you were not too busy seeking attention.
mexican border pharmacies shipping to usa: mexican mail order pharmacies – mexico drug stores pharmacies
medicine in mexico pharmacies: п»їbest mexican online pharmacies – mexico pharmacies prescription drugs
Sadio Mane https://al-nassr.sadio-mane-ar.com the Senegalese footballer best known for his performances at clubs such as Southampton and Liverpool, has become a prominent figure in Al Nassr.
Brazilian footballer Ricardo Escarson https://orlando-city.kaka-ar.com dos Santos Leite, better known as Kaka, is one of the most famous and successful players in football history.
Bella Hadid https://img-models.bella-hadid-ar.com is an American model who has emerged in recent years as one of the most influential figures in the world of fashion.
Excellent article. I’m going through some of these issues as well..
buying drugs from canada: legit canadian pharmacy – best canadian online pharmacy reviews
cheap canadian pharmacy: trusted canadian pharmacy – canadian pharmacy 365
buy medicines online in india: Online medicine order – world pharmacy india
canadian pharmacy sarasota legitimate canadian pharmacy online canadian drugstore
Online medicine order: п»їlegitimate online pharmacies india – cheapest online pharmacy india
mexico drug stores pharmacies: mexican rx online – mexican mail order pharmacies
purple pharmacy mexico price list buying from online mexican pharmacy п»їbest mexican online pharmacies
buying prescription drugs in mexico online mexican rx online mexican rx online
https://canadapharmast.com/# canadian family pharmacy
http://indiapharmast.com/# top online pharmacy india
https://canadapharmast.online/# legitimate canadian pharmacy
Everything is very open with a very clear explanation of the challenges. It was truly informative. Your site is very helpful. Many thanks for sharing!
Kylie Jenner https://kylie-cosmetics.kylie-jenner-ar.com is an American model, media personality, and businesswoman, born on August 10, 1997 in Los Angeles, California.
Продажа новых автомобилей Hongqi
https://hongqi-krasnoyarsk.ru/buyers/insurance в Красноярске у официального дилера Хончи. Весь модельный ряд, все комплектации, выгодные цены, кредит, лизинг, трейд-ин
Upcoming fantasy MOBA https://bladesofthevoid.com evolved by Web3. Gacha perks, AI and crafting in one swirling solution!
Казахский национальный технический университет https://satbayev.university им. К.Сатпаева
Right here is the perfect web site for anyone who really wants to find out about this topic. You realize a whole lot its almost tough to argue with you (not that I personally would want to…HaHa). You definitely put a new spin on a subject that’s been written about for decades. Excellent stuff, just wonderful.
Football in Saudi Arabia https://al-hilal.saud-abdulhamid-ar.com is gaining more and more popularity and recognition on the international stage, and Saud Abdul Hamid, the young and talented defender of Al Hilal, is a shining example of this success.
Khvicha Kvaratskhelia https://napoli.khvicha-kvaratskhelia-ar.com is a name that in recent years has become a symbol of Georgian football talent and ambition.
Angel Di Maria https://benfica.angel-di-maria-ar.com is a name that will forever remain in the memories of Benfica fans.
Maria Sharapova https://tennis.maria-sharapova-ar.com was born on April 19, 1987 in Nyagan, Russia. When Masha was 7 years old, her family moved to Florida, where she started playing tennis.
You ought to be a part of a contest for one of the best sites online. I’m going to highly recommend this website!
Muhammad Al Owais https://al-hilal.mohammed-alowais-ar.com is one of the most prominent names in modern Saudi football. His path to success in Al Hilal team became an example for many young athletes.
An impressive share! I have just forwarded this onto a friend who had been conducting a little homework on this. And he in fact bought me breakfast simply because I stumbled upon it for him… lol. So allow me to reword this…. Thank YOU for the meal!! But yeah, thanks for spending time to talk about this topic here on your website.
Luis Diaz https://liverpool.luis-diaz-ar.com is a young Colombian striker who has enjoyed rapid growth since joining the ” Liverpool” in January 2022.
Good post. I learn something new and challenging on websites I stumbleupon every day. It’s always helpful to read articles from other writers and practice a little something from their web sites.
In 2018, the basketball world witnessed one of the most remarkable transformations in NBA history. LeBron James https://los-angeles-lakers.lebronjames-ar.com one of the greatest players of our time, decided to leave his hometown Cleveland Cavaliers and join the Los Angeles Lakers.
Cristiano Ronaldo https://al-nassr.cristiano-ronaldo.ae is one of the greatest names in football history, with his achievements inspiring millions of fans around the world.
Karim Benzema https://al-ittihad.karimbenzema.ae is a name worthy of admiration and respect in the world of football.
RDBox.de https://rdbox.de bietet schallgedammte Gehause fur 3D-Drucker, die eine sehr leise Druckumgebung schaffen – nicht lauter als ein Kuhlschrank. Unsere Losungen sorgen fur stabile Drucktemperatur, Vibrationsisolierung, Luftreinigung und mobile App-Steuerung.
Howdy! This article couldn’t be written any better! Reading through this article reminds me of my previous roommate! He always kept talking about this. I will forward this information to him. Fairly certain he’s going to have a good read. I appreciate you for sharing!
That is a great tip especially to those fresh to the blogosphere. Short but very accurate information… Many thanks for sharing this one. A must read post.
Having read this I believed it was very enlightening. I appreciate you spending some time and effort to put this content together. I once again find myself personally spending a lot of time both reading and commenting. But so what, it was still worthwhile!
The next time I read a blog, I hope that it won’t fail me as much as this one. After all, I know it was my choice to read, however I actually believed you would have something interesting to say. All I hear is a bunch of complaining about something that you can fix if you weren’t too busy looking for attention.
Kobe Bryant https://los-angeles-lakers.kobebryant-ar.com also known as the “Black Mamba”, is one of the most iconic and iconic figures in NBA history.
N’Golo Kante https://al-ittihad.ngolokante-ar.com the French midfielder whose career has embodied perseverance, hard work and skill, has continued his path to success at Al-Ittihad Football Club, based in Saudi Arabia.
visit my website https://currencyconvert.net
Football in Saudi Arabia https://al-hilal.ali-al-bulaihi-ar.com has long been one of the main sports, attracting millions of fans. In recent years, one of the brightest stars in Saudi football has been Ali Al-Bulaihi, defender of Al-Hilal Football Club.
Luka Modric https://real-madrid.lukamodric-ar.com can certainly be called one of the outstanding midfielders in modern football.
Erling Haaland https://manchester-city.erling-haaland-ar.com born on July 21, 2000 in Leeds, England, began his football journey at an early age.
Brazilian footballer Neymar https://al-hilal.neymar-ar.com known for his unique playing style and outstanding achievements in world football, has made a surprise move to Al Hilal Football Club.