目录
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 即可。
Hello there, I found your site via Google while looking for a related topic, your website came up, it looks great. I have bookmarked it in my google bookmarks.
http://northern-doctors.org/# mexican online pharmacies prescription drugs
mexican online pharmacies prescription drugs: mexican pharmacy online – mexican online pharmacies prescription drugs
mexican pharmaceuticals online: mexican northern doctors – buying prescription drugs in mexico online
http://northern-doctors.org/# buying from online mexican pharmacy
Well done! I appreciate your contribution to this matter. It has been insightful. my blog: horoscope love compatibility
buying from online mexican pharmacy northern doctors pharmacy reputable mexican pharmacies online
mexican pharmaceuticals online: northern doctors pharmacy – mexican mail order pharmacies
purple pharmacy mexico price list: mexican pharmacy northern doctors – best online pharmacies in mexico
http://northern-doctors.org/# mexico pharmacies prescription drugs
https://northern-doctors.org/# mexican border pharmacies shipping to usa
buying from online mexican pharmacy: mexican pharmacy online – medicine in mexico pharmacies
mexican drugstore online: best online pharmacies in mexico – purple pharmacy mexico price list
https://northern-doctors.org/# buying prescription drugs in mexico
mexico pharmacy: mexican pharmacy online – medication from mexico pharmacy
pharmacies in mexico that ship to usa: mexican pharmacy online – mexico drug stores pharmacies
mexico drug stores pharmacies mexican pharmacy buying prescription drugs in mexico online
http://northern-doctors.org/# reputable mexican pharmacies online
Kobe Bean Bryant https://kobebryant.prostoprosport-ar.com is an American basketball player who played in the National Basketball Association for twenty seasons for one team, the Los Angeles Lakers. He played as an attacking defender. He was selected in the first round, 13th overall, by the Charlotte Hornets in the 1996 NBA Draft. He won Olympic gold twice as a member of the US national team.
purple pharmacy mexico price list: purple pharmacy mexico price list – mexican drugstore online
reputable mexican pharmacies online: mexican pharmacy – mexican drugstore online
http://northern-doctors.org/# buying prescription drugs in mexico
https://northern-doctors.org/# reputable mexican pharmacies online
п»їbest mexican online pharmacies: Mexico pharmacy that ship to usa – reputable mexican pharmacies online
mexican pharmaceuticals online: mexican pharmacy online – mexican online pharmacies prescription drugs
mexican online pharmacies prescription drugs mexico drug stores pharmacies mexico drug stores pharmacies
montenegro boka bay
https://www.montenegro-immobilien-kaufen.com
http://northern-doctors.org/# reputable mexican pharmacies online
reputable mexican pharmacies online: northern doctors – mexican pharmacy
mexican pharmaceuticals online: mexican pharmacy – mexico pharmacy
Ruben Diogo da Silva Neves https://ruben-neves.prostoprosport-ar.com is a Portuguese footballer who plays as a midfielder for the Saudi Arabian club Al-Hilal and the Portuguese national team. Currently, Ruben Neves plays for the Al-Hilal club wearing number 8. His contract with the Saudi club is valid until the end of June 2026.
http://northern-doctors.org/# reputable mexican pharmacies online
pharmacies in mexico that ship to usa northern doctors mexican drugstore online
NGolo Kante https://ngolokante.prostoprosport-ar.com is a French footballer who plays as a defensive midfielder for the Saudi Arabian club Al-Ittihad and the French national team. His debut for the first team took place on May 18, 2012 in a match against Monaco (1:2). In the 2012/13 season, Kante became the main player for Boulogne, which played in Ligue 3.
Взять займ или кредит
https://ooo-man.ru/poshagovoe-rukovodstvo-po-priobreteniyu-avtomobilya-v-kredit/ под проценты, подав заявку на денежный микрозайм для физических лиц. Выбирайте среди 570 лучших предложений займа онлайн. Возьмите микрозайм онлайн или наличными в день обращения. Быстрый поиск и удобное сравнение условий по займам и микрокредитам в МФО.
It’s perfect time to make some plans for the longer term and it is time to be happy. I’ve read this put up and if I could I want to recommend you some fascinating issues or suggestions. Maybe you could write next articles referring to this article. I desire to learn even more issues about it!
I like what you guys are up also. Such clever work and reporting! Carry on the excellent works guys I have incorporated you guys to my blogroll. I think it will improve the value of my site .
you use a fantastic blog here! want to earn some invite posts on my blog?
Hey there! Good stuff, do keep us posted when you finally post something like that!
hello there and thanks to your information – I’ve certainly picked up anything new from right here. I did then again experience a few technical issues the usage of this web site, since I experienced to reload the web site lots of occasions previous to I could get it to load properly. I were brooding about if your hosting is OK? No longer that I’m complaining, but sluggish loading cases occasions will very frequently impact your placement in google and can damage your high quality score if ads and with Adwords. Well I am adding this RSS to my e-mail and can glance out for much extra of your respective fascinating content. Ensure that you update this again soon..
Harry Potter becomes headmaster in his final year at school.
medicine in mexico pharmacies: mexican pharmacy – mexico pharmacy
pharmacies in mexico that ship to usa: northern doctors pharmacy – purple pharmacy mexico price list
Thanks for sharing superb informations. Your web site is so cool. I’m impressed by the details that you have on this website. It reveals how nicely you understand this subject. Bookmarked this website page, will come back for extra articles. You, my pal, ROCK! I found simply the information I already searched all over the place and just couldn’t come across. What a great web site.
When the summer began, I first thought Bridesmaids was the funniest movie of the year, but I have to say Horrible Bosses will now take that claim.
reputable mexican pharmacies online: Mexico pharmacy that ship to usa – mexican mail order pharmacies
When I originally commented I clicked the -Notify me when new surveys are added- checkbox and now each time a comment is added I recieve four emails using the same comment. Will there be however you may eliminate me from that service? Thanks!
Credit for the great blog post. I am glad I have taken the time to read this.
https://northern-doctors.org/# buying prescription drugs in mexico
medicine in mexico pharmacies: Mexico pharmacy that ship to usa – mexican online pharmacies prescription drugs