目录
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://cytotecbestprice.pro/# purchase cytotec
cost cheap propecia without dr prescription: propecia rx – buying propecia for sale
buy prednisone online uk: prednisone 60 mg daily – 100 mg prednisone daily
cost generic propecia: order generic propecia for sale – buy propecia tablets
cytotec pills buy online: buy cytotec pills – purchase cytotec
generic propecia online: buying generic propecia pills – cost of generic propecia without a prescription
tamoxifen and bone density: how to prevent hair loss while on tamoxifen – nolvadex gynecomastia
https://nolvadexbestprice.pro/# cost of tamoxifen
cost of tamoxifen: tamoxifen estrogen – tamoxifen blood clots
https://propeciabestprice.pro/# buying propecia without prescription
cost of cheap propecia without a prescription: rx propecia – cost propecia
cost of propecia pills: propecia pills – get generic propecia price
zithromax generic cost: buy cheap zithromax online – zithromax 250 price
https://nolvadexbestprice.pro/# tamoxifen rash
buy cytotec over the counter: buy cytotec in usa – purchase cytotec
I was able to find good info from your content.
cytotec buy online usa: cytotec buy online usa – purchase cytotec
zithromax 250 price: zithromax for sale 500 mg – zithromax 500
generic zithromax online paypal: zithromax z-pak – zithromax antibiotic
cytotec buy online usa buy cytotec pills buy cytotec online
cost of cheap propecia now cost of cheap propecia pill propecia rx
can i purchase prednisone without a prescription prednisone 30 mg tablet prednisone 10 mg over the counter
https://propeciabestprice.pro/# buying cheap propecia prices
https://prednisonebestprice.pro/# prednisone canada prices
http://prednisonebestprice.pro/# prednisone best price
https://zithromaxbestprice.pro/# generic zithromax azithromycin
buy zithromax canada: zithromax without prescription – zithromax for sale online
https://nolvadexbestprice.pro/# tamoxifen therapy
prednisone 20 mg tablet price: prednisone pharmacy prices – prednisone 10 mg canada
http://cytotecbestprice.pro/# Cytotec 200mcg price
buy zithromax 1000mg online zithromax 250mg zithromax without prescription
azithromycin zithromax: where can i get zithromax – buy zithromax online fast shipping
zithromax buy zithromax 250 mg pill can i buy zithromax over the counter
order cheap propecia prices get cheap propecia tablets cost propecia no prescription
http://zithromaxbestprice.pro/# zithromax online australia
http://nolvadexbestprice.pro/# alternative to tamoxifen
http://cytotecbestprice.pro/# buy cytotec
http://cytotecbestprice.pro/# Cytotec 200mcg price
how to get zithromax online: buy generic zithromax no prescription – zithromax antibiotic without prescription
cytotec abortion pill buy cytotec over the counter Abortion pills online
prednisone in canada: prednisone 20 mg tablet – where to buy prednisone in canada
https://prednisonebestprice.pro/# prednisone no rx
400 mg prednisone prednisolone prednisone prednisone 5 mg tablet cost
cytotec pills buy online: buy cytotec pills – cytotec buy online usa
cytotec abortion pill п»їcytotec pills online buy cytotec over the counter
http://zithromaxbestprice.pro/# where can i buy zithromax uk
http://zithromaxbestprice.pro/# how to get zithromax over the counter
buying generic propecia without prescription: cost of propecia pill – buy generic propecia prices
prednisone cost us over the counter prednisone cheap 40 mg daily prednisone
https://cytotecbestprice.pro/# buy cytotec over the counter