目录
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 即可。
This site is usually a walk-through its the knowledge you wished concerning this and didn’t know who need to. Glimpse here, and you’ll certainly discover it.
I have to convey my respect for your kindness for all those that require guidance on this one field. Your special commitment to passing the solution up and down has been incredibly functional and has continually empowered most people just like me to achieve their dreams. Your amazing insightful information entails much to me and especially to my peers. Thanks a ton; from all of us.
Dragon Money Casino драгон мани казино вход
whoah this weblog is excellent i love studying your posts. Keep up the good work! You recognize, many individuals are looking around for this info, you could help them greatly.
Портал о культуре – ваш гид по культурной жизни города. Здесь вы найдёте информацию о театрах, музеях, галереях и исторических достопримечательностях. Откройте для себя яркие события, фестивали и выставки, которые делают Ярославль культурной жемчужиной России.
Can I just now say that of a relief to get somebody who actually knows what theyre speaking about on the web. You actually realize how to bring an issue to light and produce it important. Workout . need to look at this and fully grasp this side on the story. I cant think youre no more common because you definitely contain the gift.
I’m no longer sure the place you are getting your info, but good topic. I needs to spend some time studying much more or figuring out more. Thank you for fantastic information I was looking for this info for my mission.
I think, that you are not right. I can prove it. Write to me in PM, we will discuss.
I do believe all of the ideas you’ve introduced on your post. They are really convincing and can definitely work. Still, the posts are too brief for newbies. Could you please lengthen them a bit from subsequent time? Thank you for the post.
hi!,I love your writing very much! proportion we be in contact more about your post on AOL? I require a specialist on this area to resolve my problem. May be that’s you! Taking a look forward to look you.
Youre so cool! I dont suppose Ive read anything in this way before. So nice to discover somebody with a few original applying for grants this subject. realy we appreciate you starting this up. this website is one area that is needed online, someone if we do originality. beneficial purpose of bringing a new challenge towards the internet!
Hello! I simply would want to give a huge thumbs up to the good advice you have here with this write-up. I’ll be coming back to your web site for more shortly.
What are you indicating, man? I realize everyones got their own view, but really? Listen, your weblog is awesome. I like the effort you put into it, especially with the vids and the pics. But, come on. Theres gotta be a better way to say this, a way that doesnt make it seem like everybody here is stupid!
I find myself lost in The words, much like one would get lost in someone’s eyes. Lead the way, I’m following.
I as well as my buddies were digesting the nice items located on your site and so all of the sudden got a terrible suspicion I never expressed respect to the blog owner for those techniques. All of the ladies had been certainly passionate to study all of them and have pretty much been taking pleasure in these things. Thank you for genuinely really accommodating as well as for finding certain exceptional resources millions of individuals are really needing to know about. My very own honest apologies for not saying thanks to earlier.
Woah I’m just genuinely digging the style/thought of this web site. It’s straightforward, however fantastic. Additional frequently than not it is demanding to acquire the perfect involving exceptional usability along with visual physical appearance. I should say you have carried out a brilliant task. In addition, your web page starts tremendous rapidly personally with Web explorer. Outstanding Internet site
excellent points altogether, you simply won a logo reader. What would you suggest about your submit that you made a few days in the past? Any positive?
I’d always want to be update on new articles on this web site , saved to favorites ! .
Wow, amazing blog layout! How long have you been blogging for? you make blogging look easy
thank you for such a wonderful blog. Where else could anyone get that kind of info written in such a perfect way? I have a presentation that I am presently working on, and I have been on the look out for such info.
Pharmacie Internationale en ligne http://kamagraenligne.com/# pharmacie en ligne avec ordonnance
Hi! I could have sworn I’ve been to this blog before but after checking through some of the post I realized it’s new to me. Anyhow, I’m definitely glad I found it and I’ll be bookmarking and checking back often!
Hi there, thanks for the awesome posting. I’m having troubles subscribing to your blogs feed. Thought I’d let you know
What are you stating, man? I realize everyones got their own view, but really? Listen, your web site is neat. I like the energy you put into it, especially with the vids and the pics. But, come on. Theres gotta be a better way to say this, a way that doesnt make it seem like everyone here is stupid!
pharmacie en ligne france livraison internationale: pharmacie en ligne pas cher – pharmacie en ligne pas cher
голяк кубик онлайн https://golyak-serial-online.ru
голяк смотреть голяк смотреть бесплатно в хорошем
what online casino has free bonus without deposit? online casino
Nice post. I discover something more challenging on distinct blogs everyday. Most commonly it is stimulating to see content off their writers and exercise a little at their store. I’d would prefer to use some while using content in this little weblog whether you do not mind. Natually I’ll offer you a link for your internet weblog. Many thanks sharing.
There may be noticeably a bundle to find out about this. I assume you made certain nice points in features also.
Impressive! I am amazed at how well you use words to get your point across. I would be interested in reading more of your work.
где можно купить мебель
https://formomebel.ru/stoliki/na-osnovanii-iz-metalla
???? ??? ??????? ????? ????? ?????????? ????? ????? ????? ????? ?? ????? ??????
атака титанов онлайн бесплатно https://ataka-titanov-anime.ru
A watch is one of the few items of jewelry that can be worn by men of all ages and social backgrounds.
Appreciation for the great blog post. I am glad I have taken the time to learn this.
смотреть бесплатно атака титанов https://ataka-titanov-anime.ru
Hey there, do you have a Twitter site that we might adhere to? Thanks
Youre so cool! I dont suppose Ive read anything similar to this just before. So nice to discover somebody by incorporating original thoughts on this subject. realy we appreciate you beginning this up. this web site are some things that is required on the internet, somebody with a little originality. valuable work for bringing something totally new to your net!
That song sucks i think, my younger brother is listening that, and its so boring song !
купить квартиру в казани новостройка от застройщика https://nedvizhimost16.ru
жк казань купить квартиру от застройщика https://kvartiru-kupit-kzn.ru
https://aisory.tech – платформа для создания AI Telegram-ботов. Наделяйте своих ботов способностями к естественному диалогу, генерации уникального контента и решению аналитических задач. Простой конструктор платформы делает создание умных чат-ботов доступным для любой компании.
купить квартиру в казани https://kupit-kvartirukzn.ru
Awesome web site and with very useful stuff. I’m pleased I discovered this page. The site has plenty of excellent information on the this subject of. Many thanks for this blog post. I should be coming by time and again and reading through your previous entries.
When it is important to possess your current mindset guided toward the full-time successful ecommerce business, it truly is helpful, specifically first inside your Online job, in the studying blackberry curve, to test one or two packages with your quit period. Find the feel belonging to the Online marketing industry as well as together study a little about HTML, Scripts, producing interesting photographs and even building your very first web site! This may most end up being realized like a ‘spare time’ sctivity. Do not carrier the management right until you have the particular confidence within your total capacity in order to make normal income.
The the very next time I just read a blog, I hope that this doesnt disappoint me around this place. After all, It was my choice to read, but I actually thought youd have some thing intriguing to mention. All I hear is usually a number of whining about something you could fix in the event you werent too busy in search of attention.
Hi there! This post couldn’t be written any better! Reading through this post reminds me of my previous room mate! He always kept talking about this. I will forward this page to him. Pretty sure he will have a good read. Thanks for sharing!
Thank you, I’ve recently been searching for info about this subject for ages and yours is the best I’ve found so far.
Just wanted to give you a shout from the valley of the sun, great information. Much appreciated.