EtherDream / jsproxy

An online proxy based on ServiceWorker
MIT License
9.34k stars 3.61k forks source link

如何删除(卸载)该程序 #123

Closed whidy closed 5 years ago

whidy commented 5 years ago

你好,我在root下使用了一键安装,太慢了,我按ctrl+c终止,但是发现下载任务仍然继续,我只是个前端,对运维了解程度有限,部分截图如下:

image

我想请教下,失败后如何能够完整的删除(清理)脚本所执行的所有内容。方便重新配置安装或研究。

我的相关信息(隐去了服务器IP)如下:

[root@VM_0_3_centos ~]# 
[root@VM_0_3_centos ~]# 
[root@VM_0_3_centos ~]# curl https://raw.githubusercontent.com/EtherDream/jsproxy/0.1.0/i.sh | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  5435  100  5435    0     0   1277      0  0:00:04  0:00:04 --:--:--  1277
[jsproxy 13:10:27] 自动安装脚本开始执行
[jsproxy 13:10:27] 创建用户 jsproxy ...
[jsproxy 13:10:28] 切换到 jsproxy 用户,执行安装脚本 ...
[jsproxy 13:10:30] 下载 nginx 程序 ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
 84 10.6M   84 9263k    0     0  12440      0  0:14:58  0:12:42  0:02:16  8837^[OC^C
 85 10.6M   85 9279k    0     0  12427      0  0:14:59  0:12:44  0:02:15  8966 ...killed.
[jsproxy 13:23:15] 安装完成。后续维护参考 https://github.com/EtherDream/jsproxy
 89 10.6M   89 9729k    0     0  12185      0  0:15:17  0:13:37  0:01:40 12030^C
[root@VM_0_3_centos ~]# ^C
[root@VM_0_3_centos ~]# ^C
 89 10.6M   89 9748k    0     0  12168      0  0:15:18  0:13:40  0:01:38 11908^C
 89 10.6M   89 9753k    0     0  12160      0  0:15:19  0:13:41  0:01:38  9410^C
[root@VM_0_3_centos ~]# ^C
[root@VM_0_3_centos ~]# ^C
[root@VM_0_3_centos ~]# ^C
[root@VM_0_3_centos ~]# ^C
[root@VM_0_3_centos ~]# ^C
[root@VM_0_3_centos ~]# ^C
[root@VM_0_3_centos ~]# ^C
[root@VM_0_3_centos ~]# ^C
[root@VM_0_3_centos ~]# ^C
[root@VM_0_3_centos ~]# ^C
[root@VM_0_3_centos ~]# ^C
100 10.6M  100 10.6M    0     0  11923      0  0:15:37  0:15:37 --:--:-- 10501
[jsproxy 13:26:08] nginx version: openresty/1.15.8.1
[jsproxy 13:26:08] nginx path: /home/jsproxy/openresty
[jsproxy 13:26:08] 下载代理服务 ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 28409    0 28409    0     0  20527      0 --:--:--  0:00:01 --:--:-- 20541
[jsproxy 13:26:09] 下载静态资源 ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  220k    0  220k    0     0   125k      0 --:--:--  0:00:01 --:--:--  125k
[jsproxy 13:26:11] 启动服务 ...
[jsproxy 13:26:11] 服务已开启
[jsproxy 13:26:11] 服务器公网 IP 获取中,通过接口 https://api.ipify.org
[jsproxy 13:26:12] 服务器公网 IP: (myIPAddress)
[jsproxy 13:26:12] 安装 acme.sh 脚本 ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  184k  100  184k    0     0  25153      0  0:00:07  0:00:07 --:--:-- 30687
[Sat Jul 27 13:26:20 CST 2019] Installing from online archive.
[Sat Jul 27 13:26:20 CST 2019] Downloading https://github.com/Neilpang/acme.sh/archive/master.tar.gz
[Sat Jul 27 13:26:21 CST 2019] Extracting master.tar.gz
[Sat Jul 27 13:26:21 CST 2019] It is recommended to install socat first.
[Sat Jul 27 13:26:21 CST 2019] We use socat for standalone server if you use standalone mode.
[Sat Jul 27 13:26:21 CST 2019] If you don't use standalone mode, just ignore this warning.
[Sat Jul 27 13:26:21 CST 2019] Installing to /home/jsproxy/.acme.sh
[Sat Jul 27 13:26:21 CST 2019] Installed to /home/jsproxy/.acme.sh/acme.sh
[Sat Jul 27 13:26:22 CST 2019] Installing alias to '/home/jsproxy/.bashrc'
[Sat Jul 27 13:26:22 CST 2019] OK, Close and reopen your terminal to start using acme.sh
[Sat Jul 27 13:26:22 CST 2019] Installing cron job
no crontab for jsproxy
no crontab for jsproxy
[Sat Jul 27 13:26:22 CST 2019] Good, bash is found, so change the shebang to use bash as preferred.
[Sat Jul 27 13:26:22 CST 2019] OK
[Sat Jul 27 13:26:22 CST 2019] Install success!
[jsproxy 13:26:22] 未指定域名,使用公共测试域名
校验域名 (myIPAddress).xip.io ...
[jsproxy 13:26:23] 域名 (myIPAddress).xip.io 解析结果: ,非本机公网 IP: (myIPAddress)
校验域名 (myIPAddress).nip.io ...
[jsproxy 13:26:23] 尝试为域名 (myIPAddress).nip.io 申请证书 ...
[Sat Jul 27 13:26:28 CST 2019] Create account key ok.
[Sat Jul 27 13:26:28 CST 2019] Registering account
[root@VM_0_3_centos ~]# ^C
[root@VM_0_3_centos ~]# [Sat Jul 27 13:26:34 CST 2019] Registered
[Sat Jul 27 13:26:34 CST 2019] ACCOUNT_THUMBPRINT='PM65eofPDxGb8YAgw_UuvyDMO_VwJfa25zOYusQH6h0'
[Sat Jul 27 13:26:34 CST 2019] Creating domain key
[Sat Jul 27 13:26:34 CST 2019] The domain key is here: /home/jsproxy/.acme.sh/(myIPAddress).nip.io_ecc/(myIPAddress).nip.io.key
[Sat Jul 27 13:26:34 CST 2019] Single domain='(myIPAddress).nip.io'
[Sat Jul 27 13:26:34 CST 2019] Getting domain auth token for each domain
[Sat Jul 27 13:26:40 CST 2019] Getting webroot for domain='(myIPAddress).nip.io'
[Sat Jul 27 13:26:40 CST 2019] Verifying: (myIPAddress).nip.io
[Sat Jul 27 13:26:46 CST 2019] Pending
[Sat Jul 27 13:26:51 CST 2019] (myIPAddress).nip.io:Verify error:Invalid response from https://dnspod.qcloud.com/static/webblock.html?d=(myIPAddress).nip.io [212.64.120.232]: 
[Sat Jul 27 13:26:51 CST 2019] Please add '--debug' or '--log' to check more details.
[Sat Jul 27 13:26:51 CST 2019] See: https://github.com/Neilpang/acme.sh/wiki/How-to-debug-acme.sh
[Sat Jul 27 13:26:53 CST 2019] Installing key to:server/cert/(myIPAddress).nip.io/ecc.key
[Sat Jul 27 13:26:53 CST 2019] Installing full chain to:server/cert/(myIPAddress).nip.io/ecc.cer
cat: /home/jsproxy/.acme.sh/(myIPAddress).nip.io_ecc/fullchain.cer: No such file or directory
[jsproxy 13:26:53] 证书申请失败!(80 端口是否添加到防火墙)
校验域名 (myIPAddress).sslip.io ...
[jsproxy 13:26:54] 尝试为域名 (myIPAddress).sslip.io 申请证书 ...
[Sat Jul 27 13:26:55 CST 2019] Creating domain key
[Sat Jul 27 13:26:55 CST 2019] The domain key is here: /home/jsproxy/.acme.sh/(myIPAddress).sslip.io_ecc/(myIPAddress).sslip.io.key
[Sat Jul 27 13:26:55 CST 2019] Single domain='(myIPAddress).sslip.io'
[Sat Jul 27 13:26:55 CST 2019] Getting domain auth token for each domain
[Sat Jul 27 13:27:02 CST 2019] Getting webroot for domain='(myIPAddress).sslip.io'
[Sat Jul 27 13:27:02 CST 2019] Verifying: (myIPAddress).sslip.io
[root@VM_0_3_centos ~]# [Sat Jul 27 13:27:08 CST 2019] Pending
[Sat Jul 27 13:27:13 CST 2019] (myIPAddress).sslip.io:Verify error:Invalid response from https://dnspod.qcloud.com/static/webblock.html?d=(myIPAddress).sslip.io [212.64.120.232]: 
[Sat Jul 27 13:27:13 CST 2019] Please add '--debug' or '--log' to check more details.
[Sat Jul 27 13:27:13 CST 2019] See: https://github.com/Neilpang/acme.sh/wiki/How-to-debug-acme.sh
[Sat Jul 27 13:27:15 CST 2019] Installing key to:server/cert/(myIPAddress).sslip.io/ecc.key
[Sat Jul 27 13:27:15 CST 2019] Installing full chain to:server/cert/(myIPAddress).sslip.io/ecc.cer
cat: /home/jsproxy/.acme.sh/(myIPAddress).sslip.io_ecc/fullchain.cer: No such file or directory
[jsproxy 13:27:15] 证书申请失败!(80 端口是否添加到防火墙)
^C
[root@VM_0_3_centos ~]# 
EtherDream commented 5 years ago

删除 jsproxy 用户就好了,包括 /home/jsproxy 目录

EtherDream commented 5 years ago

如果安装脚本中途退出没完整执行的话,再检查下 iptables -L -t nat,看看有没有 80 -> 8080 的转发,有的话删除。

whidy commented 5 years ago

好的谢谢我试下~