目录
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 即可。
casino tr?c tuy?n vi?t nam choi casino tr?c tuy?n tren di?n tho?i casino tr?c tuy?n
http://casinvietnam.shop/# casino tr?c tuy?n uy tin
https://casinvietnam.com/# casino tr?c tuy?n uy tin
casino tr?c tuy?n vi?t nam choi casino tr?c tuy?n tren di?n tho?i casino online uy tin
game c? b?c online uy tín: casino tr?c tuy?n vi?t nam – casino tr?c tuy?n
http://casinvietnam.shop/# casino online uy tin
http://casinvietnam.com/# casino tr?c tuy?n uy tin
https://casinvietnam.shop/# casino tr?c tuy?n vi?t nam
web c? b?c online uy tin casino tr?c tuy?n vi?t nam game c? b?c online uy tin
casino online uy tín: casino tr?c tuy?n vi?t nam – casino tr?c tuy?n vi?t nam
http://casinvietnam.com/# game c? b?c online uy tin
reputable online pharmacy no prescription: cheapest pharmacy for prescriptions without insurance – canadian pharmacy coupon
https://onlinepharmacyworld.shop/# us pharmacy no prescription
meds no prescription: buying prescription medications online – legitimate online pharmacy no prescription
best online pharmacy without prescriptions buying drugs online no prescription pharmacy no prescription required
http://medicationnoprescription.pro/# canadian prescription drugstore review
https://onlinepharmacyworld.shop/# canadian online pharmacy no prescription
buy prescription drugs on line: buying prescription drugs online canada – best online pharmacy that does not require a prescription in india
best non prescription online pharmacy canadian prescription buying prescription medications online
https://medicationnoprescription.pro/# how to buy prescriptions from canada safely
no prescription canadian pharmacy: canadian pharmacy without prescription – discount prescription drugs canada
http://medicationnoprescription.pro/# best online pharmacy that does not require a prescription in india
http://edpill.top/# boner pills online
canadian pharmacy no prescription required online pharmacy without prescriptions buy prescription drugs online without
online ed pills: cheap ed – boner pills online
https://onlinepharmacyworld.shop/# canadian pharmacy discount coupon
http://medicationnoprescription.pro/# best online pharmacy no prescription
erectile dysfunction meds online: cheapest ed medication – erection pills online
buy ed medication ed treatments online pills for ed online
https://onlinepharmacyworld.shop/# canada pharmacy coupon
best no prescription online pharmacies: buying prescription medications online – medication online without prescription
https://edpill.top/# cheap ed medicine
https://onlinepharmacyworld.shop/# online pharmacy discount code
Wow, awesome blog layout! How lengthy have you ever been running a blog for?
you make blogging look easy. The entire look of your website is great, let alone the content material!
You can see similar here sklep internetowy
best online ed medication low cost ed medication п»їed pills online
https://onlinepharmacyworld.shop/# canadian prescription pharmacy
clomid no prescription: cheap clomid pill – cost of generic clomid
http://stromectola.top/# buy stromectol online
amoxicillin where to get: amoxicillin generic brand – amoxicillin 825 mg
amoxicillin generic brand: rexall pharmacy amoxicillin 500mg – buy amoxicillin online without prescription
https://stromectola.top/# generic ivermectin cream
zithromax online usa zithromax 500 without prescription zithromax prescription online
drug prices prednisone: prednisone 500 mg tablet – prednisone 5093
buying clomid pills: can i get cheap clomid without rx – where to buy generic clomid for sale
http://prednisonea.store/# online order prednisone 10mg
zithromax 250 mg australia buy zithromax 1000 mg online generic zithromax 500mg
amoxicillin 500 mg tablets: amoxicillin from canada – how much is amoxicillin
can i buy generic clomid now: where can i buy clomid without a prescription – can i order cheap clomid no prescription
https://prednisonea.store/# prednisone 5093
amoxicillin tablet 500mg: amoxicillin canada price – amoxicillin for sale