目录
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://stromectola.top/# ivermectin cream 1%
prednisone sale prednisone cost in india prednisone 20mg online pharmacy
zithromax for sale 500 mg: can i buy zithromax over the counter – zithromax z-pak price without insurance
prednisone 5093: prednisone 2 5 mg – prednisone 5mg coupon
Wow, superb blog structure! How long have you been running a blog for?
you made blogging look easy. The overall look of your site is great,
as smartly as the content! You can see similar here sklep
buy cheap clomid without prescription buying clomid without dr prescription how to get clomid without insurance
zithromax for sale us: order zithromax over the counter – zithromax buy online
Wow, marvelous blog layout! How lengthy have you ever been blogging for?
you make running a blog glance easy. The whole glance of
your website is great, let alone the content material!
You can see similar here sklep internetowy
prednisone medicine: how to get prednisone without a prescription – how to buy prednisone online
where buy clomid without insurance where to buy clomid without insurance generic clomid without a prescription
can i purchase generic clomid prices: can you buy cheap clomid without prescription – order generic clomid no prescription
http://clomida.pro/# can you buy clomid for sale
generic for doxycycline: doxycycline online – doxycycline hydrochloride 100mg
п»їcytotec pills online п»їcytotec pills online buy cytotec over the counter
buy misoprostol over the counter: buy cytotec online – buy cytotec pills online cheap
tamoxifen for men: tamoxifen headache – tamoxifen side effects forum
buy nolvadex online: tamoxifen endometriosis – alternative to tamoxifen
diflucan 150 mg fluconazole diflucan over the counter uk diflucan 6 tabs
order cytotec online: buy cytotec online – buy cytotec online
https://ciprofloxacin.guru/# cipro
can you buy diflucan over the counter in canada: buy diflucan uk – diflucan over the counter nz
diflucan pills prescription diflucan candida diflucan 150 mg price in india
buy ciprofloxacin: cipro – cipro for sale
tamoxifen alternatives: nolvadex d – nolvadex pct
diflucan online purchase: diflucan tablets buy online – how to get diflucan otc
does tamoxifen cause joint pain nolvadex gynecomastia tamoxifen adverse effects
buy cipro cheap: cipro 500mg best prices – ciprofloxacin mail online
tamoxifen and grapefruit buy nolvadex online tamoxifen blood clots
doxylin: how to buy doxycycline online – doxycycline 500mg
buy doxycycline online without prescription: buy doxycycline – how to order doxycycline
https://doxycyclinest.pro/# doxycycline 100mg capsules
tamoxifen moa: tamoxifen joint pain – how does tamoxifen work
antibiotics cipro ciprofloxacin ciprofloxacin generic
doxycycline hyclate: doxycycline tetracycline – buy doxycycline online without prescription
doxycycline generic: doxycycline 50mg – doxylin
nolvadex estrogen blocker: does tamoxifen cause menopause – what happens when you stop taking tamoxifen
buy doxycycline online uk doxycycline 100mg dogs how to buy doxycycline online
buy cytotec online: buy cytotec – buy cytotec pills online cheap
nolvadex side effects: where can i buy nolvadex – tamoxifen citrate pct
how to order doxycycline purchase doxycycline online how to order doxycycline
cipro: buy cipro online – ciprofloxacin mail online
cipro 500mg best prices: where can i buy cipro online – cipro
https://diflucan.icu/# can you buy diflucan over the counter
cheap doxycycline online doxycycline hyclate 100 mg cap doxycycline 100mg online
nolvadex vs clomid: does tamoxifen make you tired – tamoxifen bone density
aromatase inhibitors tamoxifen: tamoxifen rash – tamoxifen and grapefruit
buy cytotec over the counter order cytotec online buy cytotec
doxycycline tablets: buy doxycycline online uk – buy generic doxycycline
doxycycline generic: doxycycline 100mg price – doxycycline generic
how to order doxycycline: doxycycline 150 mg – where can i get doxycycline