目录
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://nolvadexbestprice.pro/# tamoxifen and weight loss
where can i get prednisone: prednisone 10 mg online – prednisone brand name india
40 mg prednisone pill where can i buy prednisone without a prescription order prednisone with mastercard debit
https://zithromaxbestprice.pro/# where can i purchase zithromax online
tamoxifen rash where to get nolvadex tamoxifenworld
buy propecia: buy cheap propecia without insurance – buy cheap propecia no prescription
After I initially commented I appear to have clicked the -Notify me when new comments are added- checkbox and from now on whenever a comment is added I get four emails with the exact same comment. Is there a way you can remove me from that service? Many thanks.
mexican pharmaceuticals online: reputable mexican pharmacies online – buying prescription drugs in mexico
проститутки алтуфьево https://vlg.prostitutki.sex
mexican mail order pharmacies: pharmacies in mexico that ship to usa – mexico pharmacies prescription drugs
элитные проститутки москвы https://vrn.prostitutki.sex
buying prescription drugs in mexico online: reputable mexican pharmacies online – mexico drug stores pharmacies
Good post. I learn something new and challenging on websites I stumbleupon every day. It will always be exciting to read through content from other writers and practice something from other sites.
п»їbest mexican online pharmacies: mexico drug stores pharmacies – buying prescription drugs in mexico online
mexican border pharmacies shipping to usa: mexican border pharmacies shipping to usa – purple pharmacy mexico price list
buying from online mexican pharmacy pharmacies in mexico that ship to usa mexico pharmacies prescription drugs
интим досуг https://rnd.prostitutki.sex
проститутки строгино https://perm.prostitutki.sex
зрелые проститутки проститутки царицыно
I’m impressed, I have to admit. Seldom do I encounter a blog that’s equally educative and interesting, and let me tell you, you have hit the nail on the head. The issue is something too few people are speaking intelligently about. I am very happy that I came across this in my hunt for something concerning this.
проститутки видное проститутки кузьминки
mexican pharmacy reputable mexican pharmacies online mexican mail order pharmacies
mexican online pharmacies prescription drugs: п»їbest mexican online pharmacies – mexican border pharmacies shipping to usa
medication from mexico pharmacy mexico drug stores pharmacies mexican border pharmacies shipping to usa
mexican border pharmacies shipping to usa: medicine in mexico pharmacies – mexico drug stores pharmacies
mexico drug stores pharmacies: purple pharmacy mexico price list – medication from mexico pharmacy
mexico pharmacies prescription drugs: mexico drug stores pharmacies – buying from online mexican pharmacy
buying prescription drugs in mexico: medication from mexico pharmacy – buying prescription drugs in mexico online
п»їbest mexican online pharmacies: medicine in mexico pharmacies – buying prescription drugs in mexico online
mexican online pharmacies prescription drugs: mexican border pharmacies shipping to usa – buying prescription drugs in mexico
This site really has all of the information I wanted concerning this subject and didn’t know who to ask.
mexico drug stores pharmacies: buying from online mexican pharmacy – buying prescription drugs in mexico
mexican mail order pharmacies: п»їbest mexican online pharmacies – buying from online mexican pharmacy
mexico drug stores pharmacies reputable mexican pharmacies online best online pharmacies in mexico
medicine in mexico pharmacies medicine in mexico pharmacies mexico drug stores pharmacies
pharmacies in mexico that ship to usa mexican border pharmacies shipping to usa buying prescription drugs in mexico
buying from online mexican pharmacy: pharmacies in mexico that ship to usa – buying from online mexican pharmacy
purple pharmacy mexico price list: mexican pharmaceuticals online – mexico drug stores pharmacies
buying prescription drugs in mexico: purple pharmacy mexico price list – mexican online pharmacies prescription drugs
buying prescription drugs in mexico online: mexican drugstore online – reputable mexican pharmacies online
mexican online pharmacies prescription drugs: mexico drug stores pharmacies – buying prescription drugs in mexico
mexican online pharmacies prescription drugs: mexican rx online – mexico drug stores pharmacies
mexican rx online: mexican online pharmacies prescription drugs – mexican rx online
mexican pharmaceuticals online: medication from mexico pharmacy – medication from mexico pharmacy
mexican online pharmacies prescription drugs: medication from mexico pharmacy – mexico pharmacies prescription drugs
I will create a feed https://undersapr.ru for Yandex Webmaster in the “Doctors” category. The feed is used to promote doctors’ cards in search for free
mexican drugstore online best online pharmacies in mexico mexican mail order pharmacies
I was able to find good information from your blog articles.
mexican rx online buying prescription drugs in mexico mexican border pharmacies shipping to usa
mexican pharmacy reputable mexican pharmacies online reputable mexican pharmacies online