目录
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 即可。
http://edpillpharmacy.store/# buy erectile dysfunction pills
reputable indian pharmacies: Top mail order pharmacies – indianpharmacy com
Aw, this was a very nice post. Spending some time and actual effort to produce a really good article… but what can I say… I procrastinate a whole lot and never manage to get nearly anything done.
Hi, I do believe this is a great blog. I stumbledupon it 😉 I’m going to revisit yet again since i have saved as a favorite it. Money and freedom is the greatest way to change, may you be rich and continue to help others.
mexican mail order pharmacies: Mexico pharmacy online – mexico drug stores pharmacies
https://edpillpharmacy.store/# online erectile dysfunction
buy erectile dysfunction pills online: cheap ed pills online – cheapest online ed treatment
buying from online mexican pharmacy: mexican drugstore online – mexican online pharmacies prescription drugs
top online pharmacy india: Online pharmacy – Online medicine home delivery
https://edpillpharmacy.store/# ed pills
http://indiapharmacy.shop/# top online pharmacy india
Hi, I do think this is an excellent website. I stumbledupon it 😉 I will come back once again since i have book-marked it. Money and freedom is the best way to change, may you be rich and continue to help others.
mexican online pharmacies prescription drugs: Purple pharmacy online ordering – mexico drug stores pharmacies
pharmacies in mexico that ship to usa: Best pharmacy in Mexico – pharmacies in mexico that ship to usa
ed online prescription: where to get ed pills – online ed pharmacy
When I initially left a comment I seem to have clicked on the -Notify me when new comments are added- checkbox and now every time a comment is added I get four emails with the exact same comment. Is there a means you are able to remove me from that service? Kudos.
indian pharmacy: Online India pharmacy – online pharmacy india
mexican pharmaceuticals online: mexican pharmacy – medicine in mexico pharmacies
online pharmacy india: indian pharmacy – п»їlegitimate online pharmacies india
http://indiapharmacy.shop/# reputable indian online pharmacy
http://edpillpharmacy.store/# get ed meds today
top 10 online pharmacy in india: Top online pharmacy in India – buy prescription drugs from india
mexican border pharmacies shipping to usa: Mexico pharmacy online – buying prescription drugs in mexico
Pretty! This was a really wonderful post. Thank you for providing this info.
buy generic cialis online cheap Characteristics of Cycles by Progesterone Category and Ovarian Stimulation Medication
indian pharmacies safe: Online medicine home delivery – world pharmacy india
Very good post. I’m dealing with many of these issues as well..
I’m very happy to uncover this great site. I wanted to thank you for your time for this particularly fantastic read!! I definitely loved every little bit of it and I have you bookmarked to look at new information in your site.
https://mexicopharmacy.win/# mexican online pharmacies prescription drugs
india pharmacy mail order: Best Indian pharmacy – india online pharmacy
best online ed treatment: Best ED pills non prescription – cheapest online ed meds
https://edpillpharmacy.store/# how to get ed pills
cheapest online ed meds: cheap ed pills online – cheap ed pills
Aw, this was an exceptionally good post. Taking the time and actual effort to produce a very good article… but what can I say… I put things off a whole lot and never seem to get anything done.
buy ed meds: ED meds online with insurance – cheap boner pills
правдивое гадание онлайн виртуальные гадания онлайн
best india pharmacy: Indian pharmacy online – reputable indian pharmacies
Great article. I will be dealing with some of these issues as well..
http://edpillpharmacy.store/# erection pills online
ed treatment online
http://edpillpharmacy.store/# order ed pills
cheap ed meds
https://mexicopharmacy.win/# mexico drug stores pharmacies
https://indiapharmacy.shop/# buy medicines online in india
cheap ed pills
http://mexicopharmacy.win/# mexican online pharmacies prescription drugs
mexican mail order pharmacies: Best pharmacy in Mexico – purple pharmacy mexico price list
mexico pharmacies prescription drugs: Certified Mexican pharmacy – п»їbest mexican online pharmacies
online erectile dysfunction: Best ED meds online – online ed pills
https://indiapharmacy.shop/# cheapest online pharmacy india
cheap ed treatment
https://indiapharmacy.shop/# indian pharmacy online
erection pills online
india pharmacy: Online India pharmacy – pharmacy website india
http://mexicopharmacy.win/# mexican online pharmacies prescription drugs