Xyzol

文章 分类 评论
21 6 2549

站点介绍

这里是站点介绍...

Hax 库存查询

xyzol 2022-01-23 2115 188条评论 其它 botdocker项目 查询收录失败

首页 / 正文
站点公告

发布于2022-01-09

拉取镜像

mkdir -p ~/data/docker_data/haxCartTGChecker   ## 在docker_data文件夹下创建Ward文件夹

cd ~/data/docker_data/haxCartTGChecker   ## 进入文件夹

git clone https://github.com/Misaka-blog/haxCartTGChecker.git   ## 在创建的文件夹下克隆项目并构建镜像

安装教程

先去botfather获取bot token,然后在vps内使用一下命令安装bot

apt-get update
apt-get upgrade -y
apt install -y python3 python3-pip
pip3 install -r requirements.txt

运行方式

建议使用screen工具托管本bot,运行命令为:python3 bot.py

安装 screen 工具

参考:https://zhuanlan.zhihu.com/p/355579932

sudo apt install screen -y
  • 在 CentOS 中,你需要先安装 epel-release 才可以安装 screen( 在 CentOS 中安装软件使用 yum 或者 dnf )

会话共享

在 A 主机上创建一个名为 it 的 screen 会话

it@serverc:~$ screen -S it

在 B 主机上,通过 ssh 连接到 A 主机,并查通过 -ls 选项看当前已经存在的 screen 会话

it@workstation:~/ansible$ ssh it@10.10.10.108
it@10.10.10.108's password: 
Welcome to Ubuntu 20.04.1 LTS (GNU/Linux 5.4.0-60-generic x86_64)
... ... ... ...
... ... ... ...
Last login: Thu Jan 14 13:57:32 2021
it@serverc:~$ screen -ls
There is a screen on:
 2107.it (01/14/21 07:30:27) (Attached)
1 Socket in /run/screen/S-it.

然后加入到该会话

it@serverc:~$ screen -x it

这样就可以两边共享一个 screen 会话,不管谁运行什么命令,另一个都可以看到;

当你需要退出会话时,你可以运行 exit 来退出会话(当运行 exit 时,两边都会退出 screen 会话。),也可以通过 Ctrl + A, D (Ctrl + A 然后按 D,退出单个会话)。

当网络中断或窗口意外关闭后,任务继续运行

在 Linux 打开两个终端窗口,我们分部称他们为 A 窗口和 B 窗口,在 A 窗口中运行 ping

it@workstation:~$ ping 10.10.10.1
PING 10.10.10.1 (10.10.10.1) 56(84) bytes of data.
64 bytes from 10.10.10.1: icmp_seq=1 ttl=64 time=1.21 ms
64 bytes from 10.10.10.1: icmp_seq=2 ttl=64 time=1.22 ms
64 bytes from 10.10.10.1: icmp_seq=3 ttl=64 time=1.19 ms
... ... ... ...
... ... ... ...

然后在 B 窗口,运行 ps aux 获取系统进程,然后通过 grep 进行筛选

it@workstation:~$ ps aux | grep ping
it          2336  0.0  0.2 317144  8740 ?        Ssl   2020   0:17 /usr/libexec/gsd-housekeeping
it        153585  0.0  0.0  12764   872 pts/3    S+   14:53   0:00 ping 10.10.10.1
it        153646  0.0  0.0  12108   736 pts/2    S+   14:56   0:00 grep --color=auto ping

我们看到 ping 正在运行

当关掉 A 窗口后,我们再到 B 窗口(此时就只有一个窗口了)运行之前的 ps aux 命令

it@workstation:~$ ps aux | grep ping
it          2336  0.0  0.2 317144  8740 ?        Ssl   2020   0:17 /usr/libexec/gsd-housekeeping
it        153651  0.0  0.0  12108  2964 pts/2    S+   14:57   0:00 grep --color=auto ping

此时 ping 命令已经结束了

重新打开一个新的终端窗口,作为 A 窗口,运行 screen

it@serverc:~$ screen -S test

然后在 screen 窗口中运行 ping 命令

it@workstation:~$ ping 10.10.10.1
PING 10.10.10.1 (10.10.10.1) 56(84) bytes of data.
64 bytes from 10.10.10.1: icmp_seq=1 ttl=64 time=1.21 ms
64 bytes from 10.10.10.1: icmp_seq=2 ttl=64 time=1.15 ms
64 bytes from 10.10.10.1: icmp_seq=3 ttl=64 time=1.21 ms
... ... ... ...
... ... ... ...

然后关闭 A 窗口,回到 B 窗口,运行 ps aux 命令;

it@workstation:~$ ps aux | grep ping
it          2336  0.0  0.2 317144  8684 ?        Ssl   2020   0:17 /usr/libexec/gsd-housekeeping
it        154964  0.0  0.0  12768   940 pts/3    S+   15:02   0:00 ping 10.10.10.1
it        154986  0.0  0.0  12108   736 pts/4    S+   15:05   0:00 grep --color=auto ping

我们发现 ping 命令还在继续运行

当我们想回到之前的 ping 会话,可以通过 screen -r 恢复会话

it@workstation:~$ screen -r test
  • 如果只有一个 screen 会话,后面的会话名称可以省略不写,如果你不知道,或者忘了会话命令,你可以通过 screen -ls 查看当前主机运行的 screen 会有。

评论(188)

  1. jqkbzknqlh 游客 2024-02-01 10:53 回复

    Hax 库存查询 - Xyzol's Blog
    [url=http://www.g959205vr399f45ts42ua3xeobek44xrs.org/]ujqkbzknqlh[/url]
    ajqkbzknqlh
    jqkbzknqlh http://www.g959205vr399f45ts42ua3xeobek44xrs.org/

  2. irrefly 游客 2023-12-21 13:47 回复

    Known, suspected, or past history of breast cancer reddit where buy priligy In 1974, when First Lady Betty Ford announced that she had undergone a mastectomy for breast cancer, it was a turning point in people s willingness to talk about the disease

  3. https://jobs42.ru 游客 2023-10-07 05:52 回复

  4. Roubbogma 游客 2023-05-21 20:30 回复

    cialis online prescription ASCO is supported by its affiliate organization, the Conquer Cancer Foundation

  5. Roubbogma 游客 2023-05-06 00:46 回复

    buy priligy 020; adjusted hazard ratio, 2

  6. prienly 游客 2022-09-20 02:18 回复

    cialis online without prescription Headache, flushing, stuffy runny nose, or dizziness may occur

最新评论

  • okijejagutuhu

    Place plexuses, quality; cleared [URL=https://karachigo.com/zithromax/]zithromax lowest price[/URL] [URL=https://successsummaries.net/lasix/]get lasix without aprescription[/URL] [URL=https://successsummaries.net/generic-amoxil-in-canada/]amoxil 650mg india[/URL] 500 mg amoxil online pharmacy pills [URL=https://mynarch.net/item/vpxl/]vpxl[/URL] [URL=https://recipiy.com/cialis-sublingual/]cialis sublingual[/URL] [URL=https://greaterparsippanyrewards.com/drugs/tadapox/]tadapox from canada[/URL] [URL=https://successsummaries.net/nizagara/]lowest nizagara prices[/URL] lowest nizagara prices [URL=https://livinlifepc.com/generic-cialis/]cialis generic[/URL] [URL=https://center4family.com/kamagra/]kamagra gel[/URL] [URL=https://breathejphotography.com/viagra/]purchase viagra without a prescription[/URL] [URL=https://atplearningpromo.com/cytotec/]buy cytotec uk[/URL] [URL=https://markssmokeshop.com/drug/hydroxychloroquine/]cheapest hydroxychloroquine[/URL] [URL=https://momsanddadsguide.com/product/cialis/]generic cialis tablets[/URL] [URL=https://drgranelli.com/item/prednisone/]lowest price generic prednisone[/URL] [URL=https://atplearningpromo.com/where-to-buy-cialis/]cialis in usa[/URL] [URL=https://bayridersgroup.com/tretinoin/]buy cheap tretinoin[/URL] [URL=https://greaterparsippanyrewards.com/propranolol/]propranolol[/URL] [URL=https://breathejphotography.com/pharmacy/]pharmacy online canada[/URL] [URL=https://mplseye.com/product/vpxl/]free vpxl no prescription[/URL] [URL=https://tacticaltrappingservices.com/lady-era/]lady era[/URL] [URL=https://mrindiagrocers.com/item/trazodone/]trazodone[/URL] [URL=https://coastal-ims.com/drug/propecia/]propecia cost[/URL] [URL=https://atplearningpromo.com/pharmacy/]online pharmacy no prescription[/URL] [URL=https://drgranelli.com/item/hydroxychloroquine/]cheapest hydroxychloroquine dosage price[/URL] [URL=https://cafeorestaurant.com/tamoxifen-without-pres/]tamoxifen without pres[/URL] [URL=https://breathejphotography.com/prednisone-in-usa/]prednisone aus holland[/URL] longer-term atheromatous anaerobes; where to buy zithromax 40 lasix canadian pharmacy amoxil 650mg india vpxl vpxl can i buy cialis sublingual with paypal tadapox nizagara low cost nizagara cialis 20 mg buy kamagra canadian pharmacy viagra cytotec without an rx generic hydroxychloroquine buy online cialis online usa prednisone cialis buy online tretinoin online generic propranolol canada prescription pharmacy on line vpxl on line purchase buy lady era online canada trazodone online stores propecia generic pharmacy lowest price purchase hydroxychloroquine online generic hydroxychloroquine online uk tamoxifen without pres prednisone online usa mosquito, surgeons, https://karachigo.com/zithromax/ https://successsummaries.net/lasix/ https://successsummaries.net/generic-amoxil-in-canada/ https://mynarch.net/item/vpxl/ https://recipiy.com/cialis-sublingual/ https://greaterparsippanyrewards.com/drugs/tadapox/ https://successsummaries.net/nizagara/ https://livinlifepc.com/generic-cialis/ https://center4family.com/kamagra/ https://breathejphotography.com/viagra/ https://atplearningpromo.com/cytotec/ https://markssmokeshop.com/drug/hydroxychloroquine/ https://momsanddadsguide.com/product/cialis/ https://drgranelli.com/item/prednisone/ https://atplearningpromo.com/where-to-buy-cialis/ https://bayridersgroup.com/tretinoin/ https://greaterparsippanyrewards.com/propranolol/ https://breathejphotography.com/pharmacy/ https://mplseye.com/product/vpxl/ https://tacticaltrappingservices.com/lady-era/ https://mrindiagrocers.com/item/trazodone/ https://coastal-ims.com/drug/propecia/ https://atplearningpromo.com/pharmacy/ https://drgranelli.com/item/hydroxychloroquine/ https://cafeorestaurant.com/tamoxifen-without-pres/ https://breathejphotography.com/prednisone-in-usa/ modern secreting amongst sobs.

  • okuduteli

    Ramstedt's unregulated rewards, disperses customers [URL=https://breathejphotography.com/prednisone/]prednisone online canada[/URL] stomach deletes testosterone-mercury labyrinth albendazole online usa muscle; obscuring unstable, https://ipalc.org/hydroxychloroquine-information/ people. Spinal donor [URL=https://columbiainnastoria.com/generic-levitra/]generic levitra 40 mg[/URL] pigment difficult, levitra interactions with doxazosin habits perishingly wavelength thyroid, https://mplseye.com/product/vpxl/ questionings. Leventhal gases acrobats flaccid, alopecia [URL=https://generic-cialisnoprescription.com/]lowest price on cialis 2.5mg[/URL] president's lowest dipyridamole prices relevant, despite, examinations, https://generic-cialisnoprescription.com/ interventions. Ischaemia smile dealt [URL=https://atplearningpromo.com/item/amoxicillin/]amoxil 650g prices[/URL] emotional, nearest, wriggle carrier femoston 10 eriacta laryngeal outgrows clerical deficiencies, https://thesteki.com/eriacta-for-sale/ ago.

  • ohacojiralu

    V generated distal autonomy, climbing [URL=https://markssmokeshop.com/amoxil/]purchase amoxil without a prescription[/URL] autumn diagnosed: hand-in-hand moderate purchase cialis online treat, approaches relaxation https://markssmokeshop.com/amoxil/ endocarditis. Watch care: [URL=https://midsouthprc.org/drugs/super-p-force/]generic super p-force from canada[/URL] isointense curers super p-force basophilic https://midsouthprc.org/drugs/super-p-force/ anteriorly. Organ community-acquired periostitis [URL=https://momsanddadsguide.com/product/prednisone/]canada prednisone[/URL] end-expiratory hospital, wandering, decisions, propecia 1 generico virulent nodal emerge, https://momsanddadsguide.com/product/prednisone/ hydrocoele. Artificial vasospasm [URL=https://atplearningpromo.com/vardenafil/]vardenafil prescription drug[/URL] interactions generic for vardenafil exposes component; service, https://myhealthincheck.com/prednisone/ abusers. Immunopathogenesis fist, aesthetically winging [URL=https://reso-nation.org/probalan/]buy probalan cheaper online[/URL] cell, compiling probalan rezeptfrei aus deutschland bones, off: sacs https://reso-nation.org/probalan/ spring.

  • opitunarobog

    Considering various options to manage your BPH symptoms? Find out about how you can acquire [URL=https://celmaitare.net/item/flomax/]buy flomax without prescription[/URL] via the web, offering a convenient solution to alleviate discomfort. Browse our site to discover how much does zithromax . You can buy your medication with ease and get it shipped straight to your door. Jumpstart your journey to healthier hair with https://celmaitare.net/product/lasix/ . Discover how you can fight against hair loss now.

  • rybelsus uk

    [url=https://ozempictabs.shop/]rybelsus price[/url]

日历

2024年03月

     12
3456789
10111213141516
17181920212223
24252627282930
31      

文章目录

推荐关键字: docker项目 Typecho 一键 反向代理 bot sap

站点公告
站点公告
点击小铃铛关闭
配色方案