标签搜索
侧边栏壁纸
  • 累计撰写 45 篇文章
  • 累计收到 1 条评论

v2ray

Curry
2025-11-26 / 0 评论 / 0 阅读 / 正在检测是否收录...

1.阿里云,服务器开放443-9443端口

root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx# sudo ufw allow 443:9443/tcp
Rules updated
Rules updated (v6)
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx# sudo ufw status numbered
Status: inactive
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx# sudo ufw allow 22/tcp
Rules updated
Rules updated (v6)
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx# sudo ufw enable
Command may disrupt existing ssh connections. Proceed with operation (y|n)? n
Aborted
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx# sudo ufw status numbered
Status: inactive
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx# sudo ufw enable
Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
Firewall is active and enabled on system startup
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx# sudo ufw status numbered
Status: active

     To                         Action      From
     --                         ------      ----
[ 1] 443:9443/tcp               ALLOW IN    Anywhere                  
[ 2] 22/tcp                     ALLOW IN    Anywhere                  
[ 3] 443:9443/tcp (v6)          ALLOW IN    Anywhere (v6)             
[ 4] 22/tcp (v6)                ALLOW IN    Anywhere (v6)

2.执行安装脚本

bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)

3.执行systemctl enable v2ray; systemctl start v2ray

info: V2Ray v5.37.0 is installed.
You may need to execute a command to remove dependent software: apt purge curl unzip
Please execute the command: systemctl enable v2ray; systemctl start v2ray

4.安装nginx

sudo apt install nginx

5.上传解压conf.d.zip/etc/nginx/目录

6.解压let.zip/etc目录

root@iZ0joekfzexmd52co5e0iiZ:/etc# rz -E
rz waiting to receive.
root@iZ0joekfzexmd52co5e0iiZ:/etc# unzip let.zip 
Archive:  let.zip
   creating: etc/letsencrypt/
   creating: etc/letsencrypt/accounts/
   creating: etc/letsencrypt/accounts/acme-v02.api.letsencrypt.org/
   creating: etc/letsencrypt/accounts/acme-v02.api.letsencrypt.org/directory/
   creating: etc/letsencrypt/accounts/acme-v02.api.letsencrypt.org/directory/ae72e5253c4159eb9d0ced1a9714b6a3/
  inflating: etc/letsencrypt/accounts/acme-v02.api.letsencrypt.org/directory/ae72e5253c4159eb9d0ced1a9714b6a3/private_key.json  
  inflating: etc/letsencrypt/accounts/acme-v02.api.letsencrypt.org/directory/ae72e5253c4159eb9d0ced1a9714b6a3/meta.json  
  inflating: etc/letsencrypt/accounts/acme-v02.api.letsencrypt.org/directory/ae72e5253c4159eb9d0ced1a9714b6a3/regr.json  
   creating: etc/letsencrypt/renewal-hooks/
   creating: etc/letsencrypt/renewal-hooks/deploy/
   creating: etc/letsencrypt/renewal-hooks/post/
   creating: etc/letsencrypt/renewal-hooks/pre/
   creating: etc/letsencrypt/renewal/
  inflating: etc/letsencrypt/renewal/hk.gototravelnow.com.conf  
  inflating: etc/letsencrypt/ssl-dhparams.pem  
   creating: etc/letsencrypt/live/
  inflating: etc/letsencrypt/live/README  
   creating: etc/letsencrypt/live/hk.gototravelnow.com/
  inflating: etc/letsencrypt/live/hk.gototravelnow.com/chain.pem  
  inflating: etc/letsencrypt/live/hk.gototravelnow.com/README  
  inflating: etc/letsencrypt/live/hk.gototravelnow.com/fullchain.pem  
  inflating: etc/letsencrypt/live/hk.gototravelnow.com/cert.pem  
  inflating: etc/letsencrypt/live/hk.gototravelnow.com/privkey.pem  
 extracting: etc/letsencrypt/live/cert.tgz  
 extracting: etc/letsencrypt/live/hk.zip  
   creating: etc/letsencrypt/live/www.nneettfflliixx.shop/
  inflating: etc/letsencrypt/live/www.nneettfflliixx.shop/fullchain.pem  
  inflating: etc/letsencrypt/live/www.nneettfflliixx.shop/privkey.pem  
  inflating: etc/letsencrypt/options-ssl-nginx.conf  
   creating: etc/letsencrypt/archive/
 extracting: etc/letsencrypt/archive/cert1.tgz  
   creating: etc/letsencrypt/archive/hk.gototravelnow.com/
  inflating: etc/letsencrypt/archive/hk.gototravelnow.com/cert1.pem  
  inflating: etc/letsencrypt/archive/hk.gototravelnow.com/fullchain1.pem  
  inflating: etc/letsencrypt/archive/hk.gototravelnow.com/chain1.pem  
  inflating: etc/letsencrypt/archive/hk.gototravelnow.com/privkey1.pem  
root@iZ0joekfzexmd52co5e0iiZ:/etc# pwd
/etc
root@iZ0joekfzexmd52co5e0iiZ:/etc# cd let
-bash: cd: let: No such file or directory
root@iZ0joekfzexmd52co5e0iiZ:/etc# cd etc/
root@iZ0joekfzexmd52co5e0iiZ:/etc/etc# ll
total 12
drwxr-xr-x   3 root root 4096 Aug  7 17:16 ./
drwxr-xr-x 115 root root 4096 Aug  7 17:16 ../
drwxr-xr-x   7 root root 4096 Jan  3  2025 letsencrypt/
root@iZ0joekfzexmd52co5e0iiZ:/etc/etc# mv letsencrypt/ ../
root@iZ0joekfzexmd52co5e0iiZ:/etc/etc# cd ../
root@iZ0joekfzexmd52co5e0iiZ:/etc# rm etc/
rm: cannot remove 'etc/': Is a directory
root@iZ0joekfzexmd52co5e0iiZ:/etc# rmdir  etc/

7.config.json

root@iZ0joekfzexmd52co5e0iiZ:/etc# cd /usr/local/etc/v2ray/
root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# ll
total 12
drwxr-xr-x 2 root root 4096 Aug  7 16:57 ./
drwxr-xr-x 3 root root 4096 Aug  7 16:57 ../
-rw-r--r-- 1 root root    3 Aug  7 16:57 config.json
root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# mv config.json config.json.bak
root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# ll
total 12
drwxr-xr-x 2 root root 4096 Aug  7 17:18 ./
drwxr-xr-x 3 root root 4096 Aug  7 16:57 ../
-rw-r--r-- 1 root root    3 Aug  7 16:57 config.json.bak
root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# rz -E
rz waiting to receive.
root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# ll
total 16
drwxr-xr-x 2 root root 4096 Aug  7 17:18 ./
drwxr-xr-x 3 root root 4096 Aug  7 16:57 ../
-rw-r--r-- 1 root root 3401 Aug  7 17:13 config.json
-rw-r--r-- 1 root root    3 Aug  7 16:57 config.json.bak

8.重启

root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# syatemctl restart v2ray
Command 'syatemctl' not found, did you mean:
  command 'systemctl' from deb systemd (255.4-1ubuntu8.6)
  command 'systemctl' from deb systemctl (1.4.4181-1.1)
Try: apt install <deb name>
root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# systemctl restart v2ray
root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# systemctl status v2ray
● v2ray.service - V2Ray Service
     Loaded: loaded (/etc/systemd/system/v2ray.service; enabled; preset: enabled)
    Drop-In: /etc/systemd/system/v2ray.service.d
             └─10-donot_touch_single_conf.conf
     Active: active (running) since Thu 2025-08-07 17:18:52 CST; 10s ago
       Docs: https://www.v2fly.org/
   Main PID: 4620 (v2ray)
      Tasks: 7 (limit: 995)
     Memory: 20.0M (peak: 21.1M)
        CPU: 73ms
     CGroup: /system.slice/v2ray.service
             └─4620 /usr/local/bin/v2ray run -config /usr/local/etc/v2ray/config.json

Aug 07 17:18:52 iZ0joekfzexmd52co5e0iiZ systemd[1]: Started v2ray.service - V2Ray Service.
Aug 07 17:18:52 iZ0joekfzexmd52co5e0iiZ v2ray[4620]: V2Ray 5.37.0 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.24.4 lin>
Aug 07 17:18:52 iZ0joekfzexmd52co5e0iiZ v2ray[4620]: A unified platform for anti-censorship.
Aug 07 17:18:52 iZ0joekfzexmd52co5e0iiZ v2ray[4620]: 2025/08/07 17:18:52 [Warning] V2Ray 5.37.0 started

root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# 
root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# systemctl restart nginx
root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# ps -ef|grep nginx
root        4642       1  0 17:19 ?        00:00:00 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
www-data    4643    4642  0 17:19 ?        00:00:00 nginx: worker process
www-data    4644    4642  0 17:19 ?        00:00:00 nginx: worker process
root        4652    2318  0 17:19 pts/0    00:00:00 grep --color=auto nginx
root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# systemctl status nginx
● nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; preset: enabled)
     Active: active (running) since Thu 2025-08-07 17:19:23 CST; 29s ago
       Docs: man:nginx(8)
    Process: 4638 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
    Process: 4641 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
   Main PID: 4642 (nginx)
      Tasks: 3 (limit: 995)
     Memory: 3.5M (peak: 3.7M)
        CPU: 50ms
     CGroup: /system.slice/nginx.service
             ├─4642 "nginx: master process /usr/sbin/nginx -g daemon on; master_process on;"
             ├─4643 "nginx: worker process"
             └─4644 "nginx: worker process"

Aug 07 17:19:23 iZ0joekfzexmd52co5e0iiZ systemd[1]: Starting nginx.service - A high performance web server and a reverse proxy serve>
Aug 07 17:19:23 iZ0joekfzexmd52co5e0iiZ nginx[4638]: 2025/08/07 17:19:23 [warn] 4638#4638: conflicting server name "_" on 0.0.0.0:80>
Aug 07 17:19:23 iZ0joekfzexmd52co5e0iiZ nginx[4638]: 2025/08/07 17:19:23 [warn] 4638#4638: conflicting server name "_" on [::]:80, i>
Aug 07 17:19:23 iZ0joekfzexmd52co5e0iiZ nginx[4641]: 2025/08/07 17:19:23 [warn] 4641#4641: conflicting server name "_" on 0.0.0.0:80>
Aug 07 17:19:23 iZ0joekfzexmd52co5e0iiZ nginx[4641]: 2025/08/07 17:19:23 [warn] 4641#4641: conflicting server name "_" on [::]:80, i>
Aug 07 17:19:23 iZ0joekfzexmd52co5e0iiZ systemd[1]: Started nginx.service - A high performance web server and a reverse proxy server.

root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# neastat -lanp | grep ng
Command 'neastat' not found, did you mean:
  command 'netstat' from deb net-tools (2.10-0.1ubuntu3)
Try: apt install <deb name>
root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# lsof -i:nginx
lsof: unknown service nginx in: -i :nginx
lsof 4.95.0
 latest revision: https://github.com/lsof-org/lsof
 latest FAQ: https://github.com/lsof-org/lsof/blob/master/00FAQ
 latest (non-formatted) man page: https://github.com/lsof-org/lsof/blob/master/Lsof.8
 usage: [-?abhKlnNoOPRtUvVX] [+|-c c] [+|-d s] [+D D] [+|-E] [+|-e s] [+|-f[gG]]
 [-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+m [m]] [+|-M] [-o [o]] [-p s]
 [+|-r [t]] [-s [p:s]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names]
Use the ``-h'' option to get more help information.
root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# lsof -i:443
COMMAND  PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
nginx   4642     root    6u  IPv4  39840      0t0  TCP *:https (LISTEN)
nginx   4642     root    7u  IPv6  39841      0t0  TCP *:https (LISTEN)
nginx   4643 www-data    6u  IPv4  39840      0t0  TCP *:https (LISTEN)
nginx   4643 www-data    7u  IPv6  39841      0t0  TCP *:https (LISTEN)
nginx   4644 www-data    6u  IPv4  39840      0t0  TCP *:https (LISTEN)
nginx   4644 www-data    7u  IPv6  39841      0t0  TCP *:https (LISTEN)

9.v2ray添加VMess配置

用户ID:config.json里面的id

传输协议:ws

路径(path):config.json里面的path

跳过证书验证:true

10.全部过程

Xshell 8 (Build 0069)
Copyright (c) 2024 NetSarang Computer, Inc. All rights reserved.

Type `help' to learn how to use Xshell prompt.
[C:\~]$ 

Connecting to 47.87.64.176:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.

Welcome to Ubuntu 24.04.2 LTS (GNU/Linux 6.8.0-63-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/pro

 System information as of Thu Aug  7 04:53:20 PM CST 2025

  System load:  0.0               Processes:             122
  Usage of /:   7.7% of 29.17GB   Users logged in:       0
  Memory usage: 28%               IPv4 address for eth0: 172.18.47.252
  Swap usage:   0%


Expanded Security Maintenance for Applications is not enabled.

0 updates can be applied immediately.

Enable ESM Apps to receive additional future security updates.
See https://ubuntu.com/esm or run: sudo pro status


The list of available updates is more than a week old.
To check for new updates run: sudo apt update


Welcome to Alibaba Cloud Elastic Compute Service !

/usr/bin/xauth:  file /root/.Xauthority does not exist
root@iZ0joekfzexmd52co5e0iiZ:~# 
root@iZ0joekfzexmd52co5e0iiZ:~# 
root@iZ0joekfzexmd52co5e0iiZ:~# ll
total 40
drwx------  6 root root 4096 Aug  7 16:53 ./
drwxr-xr-x 23 root root 4096 Aug  7 16:39 ../
-rw-r--r--  1 root root 3106 Apr 22  2024 .bashrc
drwx------  2 root root 4096 Jul  2 18:14 .cache/
drwxr-xr-x  2 root root 4096 Jul  2 18:28 .pip/
-rw-r--r--  1 root root  161 Apr 22  2024 .profile
-rw-r--r--  1 root root   72 Jul  2 18:28 .pydistutils.cfg
drwx------  2 root root 4096 Jul  2 18:14 .ssh/
drwxr-xr-x  2 root root 4096 Aug  7 16:39 .swas/
-rw-------  1 root root   69 Aug  7 16:53 .Xauthority
root@iZ0joekfzexmd52co5e0iiZ:~# pwd
/root
root@iZ0joekfzexmd52co5e0iiZ:~# cd /
root@iZ0joekfzexmd52co5e0iiZ:/# ll
total 88
drwxr-xr-x  23 root root  4096 Aug  7 16:39 ./
drwxr-xr-x  23 root root  4096 Aug  7 16:39 ../
lrwxrwxrwx   1 root root     7 Apr 22  2024 bin -> usr/bin/
drwxr-xr-x   2 root root  4096 Feb 26  2024 bin.usr-is-merged/
drwxr-xr-x   4 root root  4096 Jul  2 18:28 boot/
dr-xr-xr-x   2 root root  4096 Apr 23  2024 cdrom/
drwxr-xr-x  19 root root  3960 Aug  7 16:39 dev/
drwxr-xr-x 113 root root  4096 Aug  7 16:53 etc/
drwxr-xr-x   3 root root  4096 Aug  7 16:39 home/
lrwxrwxrwx   1 root root     7 Apr 22  2024 lib -> usr/lib/
lrwxrwxrwx   1 root root     9 Apr 22  2024 lib64 -> usr/lib64/
drwxr-xr-x   2 root root  4096 Feb 26  2024 lib.usr-is-merged/
drwx------   2 root root 16384 Jul  2 17:48 lost+found/
drwxr-xr-x   2 root root  4096 Apr 23  2024 media/
drwxr-xr-x   2 root root  4096 Apr 23  2024 mnt/
drwxr-xr-x   2 root root  4096 Apr 23  2024 opt/
dr-xr-xr-x 179 root root     0 Aug  7 16:39 proc/
drwx------   6 root root  4096 Aug  7 16:53 root/
drwxr-xr-x  29 root root   960 Aug  7 16:53 run/
lrwxrwxrwx   1 root root     8 Apr 22  2024 sbin -> usr/sbin/
drwxr-xr-x   2 root root  4096 Apr  3  2024 sbin.usr-is-merged/
drwxr-xr-x   2 root root  4096 Jul  2 18:14 snap/
drwxr-xr-x   2 root root  4096 Apr 23  2024 srv/
dr-xr-xr-x  13 root root     0 Aug  7 16:39 sys/
drwxrwxrwt  12 root root  4096 Aug  7 16:40 tmp/
drwxr-xr-x  12 root root  4096 Apr 23  2024 usr/
drwxr-xr-x  13 root root  4096 Jul  2 18:13 var/
root@iZ0joekfzexmd52co5e0iiZ:/# cd ~
root@iZ0joekfzexmd52co5e0iiZ:~# ll
total 40
drwx------  6 root root 4096 Aug  7 16:53 ./
drwxr-xr-x 23 root root 4096 Aug  7 16:39 ../
-rw-r--r--  1 root root 3106 Apr 22  2024 .bashrc
drwx------  2 root root 4096 Jul  2 18:14 .cache/
drwxr-xr-x  2 root root 4096 Jul  2 18:28 .pip/
-rw-r--r--  1 root root  161 Apr 22  2024 .profile
-rw-r--r--  1 root root   72 Jul  2 18:28 .pydistutils.cfg
drwx------  2 root root 4096 Jul  2 18:14 .ssh/
drwxr-xr-x  2 root root 4096 Aug  7 16:39 .swas/
-rw-------  1 root root   69 Aug  7 16:53 .Xauthority
root@iZ0joekfzexmd52co5e0iiZ:~# bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 22562  100 22562    0     0  45902      0 --:--:-- --:--:-- --:--:-- 45857
info: Installing V2Ray v5.37.0 for x86_64
Downloading V2Ray archive: https://github.com/v2fly/v2ray-core/releases/download/v5.37.0/v2ray-linux-64.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 16.9M  100 16.9M    0     0  18.4M      0 --:--:-- --:--:-- --:--:-- 18.4M
Downloading verification file for V2Ray archive: https://github.com/v2fly/v2ray-core/releases/download/v5.37.0/v2ray-linux-64.zip.dgst
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
  zip
The following NEW packages will be installed:
  unzip
0 upgraded, 1 newly installed, 0 to remove and 79 not upgraded.
Need to get 174 kB of archives.
After this operation, 384 kB of additional disk space will be used.
Get:1 http://mirrors.cloud.aliyuncs.com/ubuntu noble-updates/main amd64 unzip amd64 6.0-28ubuntu4.1 [174 kB]
Fetched 174 kB in 0s (434 kB/s)
Selecting previously unselected package unzip.
(Reading database ... 85192 files and directories currently installed.)
Preparing to unpack .../unzip_6.0-28ubuntu4.1_amd64.deb ...
Unpacking unzip (6.0-28ubuntu4.1) ...
Setting up unzip (6.0-28ubuntu4.1) ...
Processing triggers for man-db (2.12.0-4build2) ...
Scanning processes...                                                                                                                
Scanning linux images...                                                                                                             

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
info: unzip is installed.
info: Extract the V2Ray package to /tmp/tmp.vLTEXXCN01 and prepare it for installation.
info: Systemd service files have been installed successfully!
warning: The following are the actual parameters for the v2ray service startup.
warning: Please make sure the configuration file path is correctly set.
# /etc/systemd/system/v2ray.service
[Unit]
Description=V2Ray Service
Documentation=https://www.v2fly.org/
After=network.target nss-lookup.target

[Service]
User=nobody
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
NoNewPrivileges=true
ExecStart=/usr/local/bin/v2ray run -config /usr/local/etc/v2ray/config.json
Restart=on-failure
RestartPreventExitStatus=23

[Install]
WantedBy=multi-user.target

# /etc/systemd/system/v2ray.service.d/10-donot_touch_single_conf.conf
# In case you have a good reason to do so, duplicate this file in the same directory and make your customizes there.
# Or all changes you made will be lost!  # Refer: https://www.freedesktop.org/software/systemd/man/systemd.unit.html
[Service]
ExecStart=
ExecStart=/usr/local/bin/v2ray run -config /usr/local/etc/v2ray/config.json

installed: /usr/local/bin/v2ray
installed: /usr/local/share/v2ray/geoip.dat
installed: /usr/local/share/v2ray/geosite.dat
installed: /usr/local/etc/v2ray/config.json
installed: /var/log/v2ray/
installed: /var/log/v2ray/access.log
installed: /var/log/v2ray/error.log
installed: /etc/systemd/system/v2ray.service
installed: /etc/systemd/system/v2ray@.service
removed: /tmp/tmp.vLTEXXCN01
info: V2Ray v5.37.0 is installed.
You may need to execute a command to remove dependent software: apt purge curl unzip
Please execute the command: systemctl enable v2ray; systemctl start v2ray
root@iZ0joekfzexmd52co5e0iiZ:~# ll
total 40
drwx------  6 root root 4096 Aug  7 16:53 ./
drwxr-xr-x 23 root root 4096 Aug  7 16:39 ../
-rw-r--r--  1 root root 3106 Apr 22  2024 .bashrc
drwx------  2 root root 4096 Jul  2 18:14 .cache/
drwxr-xr-x  2 root root 4096 Jul  2 18:28 .pip/
-rw-r--r--  1 root root  161 Apr 22  2024 .profile
-rw-r--r--  1 root root   72 Jul  2 18:28 .pydistutils.cfg
drwx------  2 root root 4096 Jul  2 18:14 .ssh/
drwxr-xr-x  2 root root 4096 Aug  7 16:39 .swas/
-rw-------  1 root root   69 Aug  7 16:53 .Xauthority
root@iZ0joekfzexmd52co5e0iiZ:~# systemctl enable v2ray
Created symlink /etc/systemd/system/multi-user.target.wants/v2ray.service → /etc/systemd/system/v2ray.service.
root@iZ0joekfzexmd52co5e0iiZ:~# systemctl start v2ray
root@iZ0joekfzexmd52co5e0iiZ:~# systemctl status v2ray
● v2ray.service - V2Ray Service
     Loaded: loaded (/etc/systemd/system/v2ray.service; enabled; preset: enabled)
    Drop-In: /etc/systemd/system/v2ray.service.d
             └─10-donot_touch_single_conf.conf
     Active: active (running) since Thu 2025-08-07 16:58:03 CST; 8s ago
       Docs: https://www.v2fly.org/
   Main PID: 3260 (v2ray)
      Tasks: 7 (limit: 995)
     Memory: 12.1M (peak: 12.2M)
        CPU: 38ms
     CGroup: /system.slice/v2ray.service
             └─3260 /usr/local/bin/v2ray run -config /usr/local/etc/v2ray/config.json

Aug 07 16:58:03 iZ0joekfzexmd52co5e0iiZ systemd[1]: Started v2ray.service - V2Ray Service.
Aug 07 16:58:03 iZ0joekfzexmd52co5e0iiZ v2ray[3260]: V2Ray 5.37.0 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.24.4 lin>
Aug 07 16:58:03 iZ0joekfzexmd52co5e0iiZ v2ray[3260]: A unified platform for anti-censorship.
Aug 07 16:58:03 iZ0joekfzexmd52co5e0iiZ v2ray[3260]: 2025/08/07 16:58:03 [Warning] V2Ray 5.37.0 started

root@iZ0joekfzexmd52co5e0iiZ:~# 
root@iZ0joekfzexmd52co5e0iiZ:~# 
root@iZ0joekfzexmd52co5e0iiZ:~# sudo apt install nginx
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  nginx-common
Suggested packages:
  fcgiwrap nginx-doc ssl-cert
The following NEW packages will be installed:
  nginx nginx-common
0 upgraded, 2 newly installed, 0 to remove and 79 not upgraded.
Need to get 564 kB of archives.
After this operation, 1,596 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://mirrors.cloud.aliyuncs.com/ubuntu noble-updates/main amd64 nginx-common all 1.24.0-2ubuntu7.4 [43.4 kB]
Get:2 http://mirrors.cloud.aliyuncs.com/ubuntu noble-updates/main amd64 nginx amd64 1.24.0-2ubuntu7.4 [521 kB]
Fetched 564 kB in 1s (695 kB/s)
Preconfiguring packages ...
Selecting previously unselected package nginx-common.
(Reading database ... 85210 files and directories currently installed.)
Preparing to unpack .../nginx-common_1.24.0-2ubuntu7.4_all.deb ...
Unpacking nginx-common (1.24.0-2ubuntu7.4) ...
Selecting previously unselected package nginx.
Preparing to unpack .../nginx_1.24.0-2ubuntu7.4_amd64.deb ...
Unpacking nginx (1.24.0-2ubuntu7.4) ...
Setting up nginx-common (1.24.0-2ubuntu7.4) ...
Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service → /usr/lib/systemd/system/nginx.service.
Setting up nginx (1.24.0-2ubuntu7.4) ...
 * Upgrading binary nginx                                                                                                     [ OK ] 
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for ufw (0.36.2-6) ...
Scanning processes...                                                                                                                
Scanning linux images...                                                                                                             

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
root@iZ0joekfzexmd52co5e0iiZ:~# cd /etc/nginx/
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx# ll
total 76
drwxr-xr-x   8 root root 4096 Aug  7 16:58 ./
drwxr-xr-x 114 root root 4096 Aug  7 16:58 ../
drwxr-xr-x   2 root root 4096 May 27 11:28 conf.d/
-rw-r--r--   1 root root 1125 Dec  1  2023 fastcgi.conf
-rw-r--r--   1 root root 1055 Dec  1  2023 fastcgi_params
-rw-r--r--   1 root root 2837 Dec  1  2023 koi-utf
-rw-r--r--   1 root root 2223 Dec  1  2023 koi-win
-rw-r--r--   1 root root 5465 Dec  1  2023 mime.types
drwxr-xr-x   2 root root 4096 May 27 11:28 modules-available/
drwxr-xr-x   2 root root 4096 May 27 11:28 modules-enabled/
-rw-r--r--   1 root root 1446 Dec  1  2023 nginx.conf
-rw-r--r--   1 root root  180 Dec  1  2023 proxy_params
-rw-r--r--   1 root root  636 Dec  1  2023 scgi_params
drwxr-xr-x   2 root root 4096 Aug  7 16:58 sites-available/
drwxr-xr-x   2 root root 4096 Aug  7 16:58 sites-enabled/
drwxr-xr-x   2 root root 4096 Aug  7 16:58 snippets/
-rw-r--r--   1 root root  664 Dec  1  2023 uwsgi_params
-rw-r--r--   1 root root 3071 Dec  1  2023 win-utf
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx# cd conf.d/
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx/conf.d# ll
total 8
drwxr-xr-x 2 root root 4096 May 27 11:28 ./
drwxr-xr-x 8 root root 4096 Aug  7 16:58 ../
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx/conf.d# cd ../
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx# vim nginx.conf 
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx# sudo ufw allow 443:9443/tcp
Rules updated
Rules updated (v6)
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx# sudo ufw status numbered
Status: inactive
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx# sudo ufw allow 22/tcp
Rules updated
Rules updated (v6)
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx# sudo ufw enable
Command may disrupt existing ssh connections. Proceed with operation (y|n)? n
Aborted
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx# sudo ufw status numbered
Status: inactive
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx# sudo ufw enable
Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
Firewall is active and enabled on system startup
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx# sudo ufw status numbered
Status: active

     To                         Action      From
     --                         ------      ----
[ 1] 443:9443/tcp               ALLOW IN    Anywhere                  
[ 2] 22/tcp                     ALLOW IN    Anywhere                  
[ 3] 443:9443/tcp (v6)          ALLOW IN    Anywhere (v6)             
[ 4] 22/tcp (v6)                ALLOW IN    Anywhere (v6)             

root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx# ll
total 76
drwxr-xr-x   8 root root 4096 Aug  7 16:59 ./
drwxr-xr-x 114 root root 4096 Aug  7 16:58 ../
drwxr-xr-x   2 root root 4096 May 27 11:28 conf.d/
-rw-r--r--   1 root root 1125 Dec  1  2023 fastcgi.conf
-rw-r--r--   1 root root 1055 Dec  1  2023 fastcgi_params
-rw-r--r--   1 root root 2837 Dec  1  2023 koi-utf
-rw-r--r--   1 root root 2223 Dec  1  2023 koi-win
-rw-r--r--   1 root root 5465 Dec  1  2023 mime.types
drwxr-xr-x   2 root root 4096 May 27 11:28 modules-available/
drwxr-xr-x   2 root root 4096 May 27 11:28 modules-enabled/
-rw-r--r--   1 root root 1446 Dec  1  2023 nginx.conf
-rw-r--r--   1 root root  180 Dec  1  2023 proxy_params
-rw-r--r--   1 root root  636 Dec  1  2023 scgi_params
drwxr-xr-x   2 root root 4096 Aug  7 16:58 sites-available/
drwxr-xr-x   2 root root 4096 Aug  7 16:58 sites-enabled/
drwxr-xr-x   2 root root 4096 Aug  7 16:58 snippets/
-rw-r--r--   1 root root  664 Dec  1  2023 uwsgi_params
-rw-r--r--   1 root root 3071 Dec  1  2023 win-utf
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx# cd conf.d/
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx/conf.d# ll
total 8
drwxr-xr-x 2 root root 4096 May 27 11:28 ./
drwxr-xr-x 8 root root 4096 Aug  7 16:59 ../
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx/conf.d# rz -E
Command 'rz' not found, but can be installed with:
apt install lrzsz
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx/conf.d# **000000^C
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx/conf.d# 
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx/conf.d# 
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx/conf.d# 
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx/conf.d# 
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx/conf.d# apt install lrzsz
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
  minicom
The following NEW packages will be installed:
  lrzsz
0 upgraded, 1 newly installed, 0 to remove and 79 not upgraded.
Need to get 78.1 kB of archives.
After this operation, 237 kB of additional disk space will be used.
Get:1 http://mirrors.cloud.aliyuncs.com/ubuntu noble/universe amd64 lrzsz amd64 0.12.21-11build1 [78.1 kB]
Fetched 78.1 kB in 0s (186 kB/s) 
Selecting previously unselected package lrzsz.
(Reading database ... 85258 files and directories currently installed.)
Preparing to unpack .../lrzsz_0.12.21-11build1_amd64.deb ...
Unpacking lrzsz (0.12.21-11build1) ...
Setting up lrzsz (0.12.21-11build1) ...
Processing triggers for man-db (2.12.0-4build2) ...
Scanning processes...                                       
Scanning linux images...                                    

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu)
 binaries on this host.
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx/conf.d# ll
total 8
drwxr-xr-x 2 root root 4096 May 27 11:28 ./
drwxr-xr-x 8 root root 4096 Aug  7 16:59 ../
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx/conf.d# rz -E
rz waiting to receive.
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx/conf.d# ll
total 16
drwxr-xr-x 2 root root 4096 Aug  7 17:14 ./
drwxr-xr-x 8 root root 4096 Aug  7 16:59 ../
-rw-r--r-- 1 root root 4259 Aug  7 17:13 conf.d.zip
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx/conf.d# mv conf.d.zip ./
mv: 'conf.d.zip' and './conf.d.zip' are the same file
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx/conf.d# cd ../
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx# ll
total 76
drwxr-xr-x   8 root root 4096 Aug  7 16:59 ./
drwxr-xr-x 114 root root 4096 Aug  7 16:58 ../
drwxr-xr-x   2 root root 4096 Aug  7 17:14 conf.d/
-rw-r--r--   1 root root 1125 Dec  1  2023 fastcgi.conf
-rw-r--r--   1 root root 1055 Dec  1  2023 fastcgi_params
-rw-r--r--   1 root root 2837 Dec  1  2023 koi-utf
-rw-r--r--   1 root root 2223 Dec  1  2023 koi-win
-rw-r--r--   1 root root 5465 Dec  1  2023 mime.types
drwxr-xr-x   2 root root 4096 May 27 11:28 modules-available/
drwxr-xr-x   2 root root 4096 May 27 11:28 modules-enabled/
-rw-r--r--   1 root root 1446 Dec  1  2023 nginx.conf
-rw-r--r--   1 root root  180 Dec  1  2023 proxy_params
-rw-r--r--   1 root root  636 Dec  1  2023 scgi_params
drwxr-xr-x   2 root root 4096 Aug  7 16:58 sites-available/
drwxr-xr-x   2 root root 4096 Aug  7 16:58 sites-enabled/
drwxr-xr-x   2 root root 4096 Aug  7 16:58 snippets/
-rw-r--r--   1 root root  664 Dec  1  2023 uwsgi_params
-rw-r--r--   1 root root 3071 Dec  1  2023 win-utf
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx# ll
total 76
drwxr-xr-x   8 root root 4096 Aug  7 16:59 ./
drwxr-xr-x 114 root root 4096 Aug  7 16:58 ../
drwxr-xr-x   2 root root 4096 Aug  7 17:14 conf.d/
-rw-r--r--   1 root root 1125 Dec  1  2023 fastcgi.conf
-rw-r--r--   1 root root 1055 Dec  1  2023 fastcgi_params
-rw-r--r--   1 root root 2837 Dec  1  2023 koi-utf
-rw-r--r--   1 root root 2223 Dec  1  2023 koi-win
-rw-r--r--   1 root root 5465 Dec  1  2023 mime.types
drwxr-xr-x   2 root root 4096 May 27 11:28 modules-available/
drwxr-xr-x   2 root root 4096 May 27 11:28 modules-enabled/
-rw-r--r--   1 root root 1446 Dec  1  2023 nginx.conf
-rw-r--r--   1 root root  180 Dec  1  2023 proxy_params
-rw-r--r--   1 root root  636 Dec  1  2023 scgi_params
drwxr-xr-x   2 root root 4096 Aug  7 16:58 sites-available/
drwxr-xr-x   2 root root 4096 Aug  7 16:58 sites-enabled/
drwxr-xr-x   2 root root 4096 Aug  7 16:58 snippets/
-rw-r--r--   1 root root  664 Dec  1  2023 uwsgi_params
-rw-r--r--   1 root root 3071 Dec  1  2023 win-utf
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx# cd conf.d/
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx/conf.d# ll
total 16
drwxr-xr-x 2 root root 4096 Aug  7 17:14 ./
drwxr-xr-x 8 root root 4096 Aug  7 16:59 ../
-rw-r--r-- 1 root root 4259 Aug  7 17:13 conf.d.zip
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx/conf.d# mv conf.d.zip ../
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx/conf.d# cd ../
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx# ll
total 84
drwxr-xr-x   8 root root 4096 Aug  7 17:15 ./
drwxr-xr-x 114 root root 4096 Aug  7 16:58 ../
drwxr-xr-x   2 root root 4096 Aug  7 17:15 conf.d/
-rw-r--r--   1 root root 4259 Aug  7 17:13 conf.d.zip
-rw-r--r--   1 root root 1125 Dec  1  2023 fastcgi.conf
-rw-r--r--   1 root root 1055 Dec  1  2023 fastcgi_params
-rw-r--r--   1 root root 2837 Dec  1  2023 koi-utf
-rw-r--r--   1 root root 2223 Dec  1  2023 koi-win
-rw-r--r--   1 root root 5465 Dec  1  2023 mime.types
drwxr-xr-x   2 root root 4096 May 27 11:28 modules-available/
drwxr-xr-x   2 root root 4096 May 27 11:28 modules-enabled/
-rw-r--r--   1 root root 1446 Dec  1  2023 nginx.conf
-rw-r--r--   1 root root  180 Dec  1  2023 proxy_params
-rw-r--r--   1 root root  636 Dec  1  2023 scgi_params
drwxr-xr-x   2 root root 4096 Aug  7 16:58 sites-available/
drwxr-xr-x   2 root root 4096 Aug  7 16:58 sites-enabled/
drwxr-xr-x   2 root root 4096 Aug  7 16:58 snippets/
-rw-r--r--   1 root root  664 Dec  1  2023 uwsgi_params
-rw-r--r--   1 root root 3071 Dec  1  2023 win-utf
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx# unzip conf.d.zip 
Archive:  conf.d.zip
  inflating: conf.d/default.conf     
  inflating: conf.d/php.conf.autobak  
  inflating: conf.d/php.conf         
   creating: conf.d/multiagent.d/
  inflating: conf.d/multiagent.d/to_the_moon.conf  
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx# ll conf.d
total 24
drwxr-xr-x 3 root root 4096 Aug  7 17:15 ./
drwxr-xr-x 8 root root 4096 Aug  7 17:15 ../
-rw-r--r-- 1 root root 1072 Oct 19  2022 default.conf
drwxr-xr-x 2 root root 4096 Dec 30  2024 multiagent.d/
-rw-r--r-- 1 root root 3109 Feb  6 17:25 php.conf
-rw-r--r-- 1 root root 3040 Sep 11  2024 php.conf.autobak
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx# pwd
/etc/nginx
root@iZ0joekfzexmd52co5e0iiZ:/etc/nginx# cd ../
root@iZ0joekfzexmd52co5e0iiZ:/etc# ll
total 976
drwxr-xr-x 114 root root       4096 Aug  7 16:58 ./
drwxr-xr-x  23 root root       4096 Aug  7 16:39 ../
-rw-r--r--   1 root root       3444 Jul  6  2023 adduser.conf
-rw-r--r--   1 root root         16 Jul  2 18:24 adjtime
drwxr-xr-x   2 root root       4096 Jul  2 18:25 alternatives/
drwxr-xr-x   3 root root       4096 Jul  2 18:18 apache2/
drwxr-xr-x   3 root root       4096 Jul  2 18:25 apparmor/
drwxr-xr-x   9 root root      12288 Jul  2 18:25 apparmor.d/
drwxr-xr-x   3 root root       4096 Jul  2 18:13 apport/
drwxr-xr-x   9 root root       4096 Jul  2 17:47 apt/
-rw-r--r--   1 root root       2319 Mar 31  2024 bash.bashrc
-rw-r--r--   1 root root         45 Apr 23  2024 bash_completion
drwxr-xr-x   2 root root       4096 Jul  2 18:13 bash_completion.d/
-rw-r--r--   1 root root        367 Aug  2  2022 bindresvport.blacklist
drwxr-xr-x   2 root root       4096 Apr 19  2024 binfmt.d/
drwxr-xr-x   2 root root       4096 Apr 23  2024 byobu/
drwxr-xr-x   3 root root       4096 Apr 23  2024 ca-certificates/
-rw-r--r--   1 root root       6288 Apr 23  2024 ca-certificates.conf
drwxr-xr-x   4 root root       4096 Jul  2 18:17 chrony/
drwxr-xr-x   5 root root       4096 Jul  2 18:25 cloud/
drwxr-xr-x   2 root root       4096 Aug  7 16:40 cloudmonitor/
drwxr-xr-x   2 root root       4096 Jul  2 17:48 console-setup/
drwx------   2 root root       4096 Apr 19  2024 credstore/
drwx------   2 root root       4096 Apr 19  2024 credstore.encrypted/
drwxr-xr-x   2 root root       4096 Jul  2 18:21 cron.d/
drwxr-xr-x   2 root root       4096 Jul  2 18:20 cron.daily/
drwxr-xr-x   2 root root       4096 Apr 23  2024 cron.hourly/
drwxr-xr-x   2 root root       4096 Apr 23  2024 cron.monthly/
-rw-r--r--   1 root root       1136 Apr 23  2024 crontab
drwxr-xr-x   2 root root       4096 Apr 23  2024 cron.weekly/
drwxr-xr-x   2 root root       4096 Apr 23  2024 cron.yearly/
drwxr-xr-x   2 root root       4096 Jul  2 18:21 cryptsetup-initramfs/
-rw-r--r--   1 root root         54 Apr 23  2024 crypttab
drwxr-xr-x   4 root root       4096 Apr 23  2024 dbus-1/
-rw-r--r--   1 root root       2967 Apr 12  2024 debconf.conf
-rw-r--r--   1 root root         11 Apr 22  2024 debian_version
drwxr-xr-x   4 root root       4096 Aug  7 16:58 default/
-rw-r--r--   1 root root       1706 Jul  6  2023 deluser.conf
drwxr-xr-x   2 root root       4096 Jul  2 18:21 depmod.d/
drwxr-xr-x   4 root root       4096 Jul  2 18:25 dhcp/
-rw-r--r--   1 root root       1429 Mar 31  2024 dhcpcd.conf
drwxr-xr-x   4 root root       4096 Jul  2 18:18 dpkg/
-rw-r--r--   1 root root        685 Apr  8  2024 e2scrub.conf
-rw-r--r--   1 root root        106 Apr 23  2024 environment
-rw-r--r--   1 root root       1853 Oct 18  2022 ethertypes
drwxr-xr-x   4 root root       4096 Jul  2 18:17 fonts/
-rw-r--r--   1 root root        541 Jul  2 18:28 fstab
-rw-r--r--   1 root root        694 Apr  8  2024 fuse.conf
drwxr-xr-x   4 root root       4096 Jul  2 18:21 fwupd/
-rw-r--r--   1 root root       2584 Jan 31  2024 gai.conf
drwxr-xr-x   2 root root       4096 Jul  2 18:12 gnutls/
-rw-r--r--   1 root root       3986 Mar 10 21:52 gprofng.rc
drwxr-xr-x   2 root root       4096 Apr 23  2024 groff/
-rw-r--r--   1 root root        785 Aug  7 16:39 group
-rw-r--r--   1 root root        771 Jul  2 18:17 group-
drwxr-xr-x   2 root root       4096 Jul  2 18:25 grub.d/
-rw-r-----   1 root shadow      659 Aug  7 16:39 gshadow
-rw-r-----   1 root shadow      649 Jul  2 18:17 gshadow-
drwxr-xr-x   3 root root       4096 Apr 23  2024 gss/
-rw-r--r--   1 root root       4436 Apr 23  2024 hdparm.conf
-rw-r--r--   1 root root         92 Apr 22  2024 host.conf
-rw-r--r--   1 root root         24 Aug  7 16:39 hostname
-rw-r--r--   1 root root        204 Jul  2 18:28 hosts
-rw-r--r--   1 root root        411 Jul  2 18:09 hosts.allow
-rw-r--r--   1 root root        711 Jul  2 18:09 hosts.deny
drwxr-xr-x   2 root root       4096 Aug  7 16:58 init.d/
drwxr-xr-x   5 root root       4096 Jul  2 18:21 initramfs-tools/
-rw-r--r--   1 root root       1875 Mar 31  2024 inputrc
drwxr-xr-x   4 root root       4096 Apr 23  2024 iproute2/
drwxr-xr-x   2 root root       4096 Jul  2 18:21 iscsi/
-rw-r--r--   1 root root         26 Feb  6  2025 issue
-rw-r--r--   1 root root         19 Feb  6  2025 issue.net
drwxr-xr-x   2 root root       4096 Jul  2 18:18 kdump/
drwxr-xr-x   6 root root       4096 Jul  2 18:09 kernel/
drwxrwxr-x   2 root landscape  4096 Apr 23  2024 landscape/
drwxr-xr-x   2 root root       4096 Jul  2 18:21 ldap/
-rw-r--r--   1 root root      23331 Jul  2 18:25 ld.so.cache
-rw-r--r--   1 root root         34 Aug  2  2022 ld.so.conf
drwxr-xr-x   2 root root       4096 Jul  2 18:18 ld.so.conf.d/
-rw-r--r--   1 root root        267 Apr 22  2024 legal
-rw-r--r--   1 root root        191 Mar 31  2024 libaudit.conf
drwxr-xr-x   3 root root       4096 Apr 23  2024 libblockdev/
drwxr-xr-x   2 root root       4096 Jul  2 18:21 libibverbs.d/
drwxr-xr-x   2 root root       4096 Jul  2 18:21 libnl-3/
drwxr-xr-x   4 root root       4096 Jul  2 18:18 lighttpd/
-rw-r--r--   1 root root       2996 Apr 23  2024 locale.alias
-rw-r--r--   1 root root         17 Jul  2 18:14 locale.conf
-rw-r--r--   1 root root       9563 Jul  2 18:14 locale.gen
lrwxrwxrwx   1 root root         33 Jul  2 18:14 localtime -> /usr/share/zoneinfo/Asia/Shanghai
drwxr-xr-x   4 root root       4096 Apr 23  2024 logcheck/
-rw-r--r--   1 root root      12345 Feb 22  2024 login.defs
-rw-r--r--   1 root root        586 Apr 23  2024 logrotate.conf
drwxr-xr-x   2 root root       4096 Aug  7 16:58 logrotate.d/
-rw-r--r--   1 root root        104 Feb  6  2025 lsb-release
drwxr-xr-x   3 root root       4096 Jul  2 18:21 lvm/
-r--r--r--   1 root root         33 Aug  7 16:39 machine-id
-rw-r--r--   1 root root        111 Apr 23  2024 magic
-rw-r--r--   1 root root        111 Apr 23  2024 magic.mime
-rw-r--r--   1 root root       5230 Apr 23  2024 manpath.config
drwxr-xr-x   2 root root       4096 Jul  2 18:21 mdadm/
-rw-r--r--   1 root root      75113 Jul 12  2023 mime.types
-rw-r--r--   1 root root        744 Apr  8  2024 mke2fs.conf
drwxr-xr-x   4 root root       4096 Apr 23  2024 ModemManager/
drwxr-xr-x   2 root root       4096 Jul  2 18:27 modprobe.d/
-rw-r--r--   1 root root        212 Apr 23  2024 modules
drwxr-xr-x   2 root root       4096 Jul  2 18:12 modules-load.d/
-rw-r--r--   1 root root         53 Jul  2 18:28 motd
lrwxrwxrwx   1 root root         19 Apr 23  2024 mtab -> ../proc/self/mounts
drwx------   2 root root       4096 Jul  2 18:13 multipath/
-rw-r--r--   1 root root         41 Apr  7  2024 multipath.conf
-rw-r--r--   1 root root      11424 Apr 23  2024 nanorc
drwxr-xr-x   6 root root       4096 Jul  2 18:13 needrestart/
-rw-r--r--   1 root root        767 Mar 31  2024 netconfig
drwxr-xr-x   2 root root       4096 Aug  7 16:39 netplan/
drwxr-xr-x   5 root root       4096 Jul  2 18:17 network/
drwxr-xr-x   8 root root       4096 Apr 23  2024 networkd-dispatcher/
-rw-r--r--   1 root root         91 Apr 22  2024 networks
drwxr-xr-x   2 root root       4096 Apr 23  2024 newt/
-rwxr-xr-x   1 root root        243 Apr 23  2024 nftables.conf*
drwxr-xr-x   8 root root       4096 Aug  7 17:15 nginx/
-rw-r--r--   1 root root        537 Jul  2 18:18 nsswitch.conf
-rw-r--r--   1 root root       2192 Jul  2 18:24 ntp.conf
drwxr-xr-x   2 root root       4096 Apr 23  2024 opt/
lrwxrwxrwx   1 root root         21 Feb  6  2025 os-release -> ../usr/lib/os-release
-rw-r--r--   1 root root       6920 Apr 23  2024 overlayroot.conf
drwxr-xr-x   2 root root       4096 Jul  2 18:21 PackageKit/
-rw-r--r--   1 root root        552 Oct 14  2022 pam.conf
drwxr-xr-x   2 root root       4096 Jul  2 18:20 pam.d/
-rw-r--r--   1 root root       1777 Aug  7 16:39 passwd
-rw-r--r--   1 root root       1736 Jul  2 18:22 passwd-
drwxr-xr-x   3 root root       4096 Apr 23  2024 perl/
drwxr-xr-x   4 root root       4096 Apr 23  2024 pki/
drwxr-xr-x   2 root root       4096 Mar 31  2024 plymouth/
drwxr-xr-x   3 root root       4096 Apr 23  2024 pm/
drwxr-xr-x   3 root root       4096 Apr 23  2024 polkit-1/
drwxr-xr-x   2 root root       4096 Jul  2 18:21 pollinate/
drwxr-xr-x   4 root root       4096 Jul  2 18:17 ppp/
-rw-r--r--   1 root root        582 Apr 22  2024 profile
drwxr-xr-x   2 root root       4096 Jul  2 18:21 profile.d/
-rw-r--r--   1 root root       3144 Oct 18  2022 protocols
-rw-------   1 root root          0 Apr 23  2024 .pwd.lock
drwxr-xr-x   2 root root       4096 Apr 23  2024 python3/
drwxr-xr-x   2 root root       4096 Jul  2 18:13 python3.12/
drwxr-xr-x   2 root root       4096 Aug  7 16:58 rc0.d/
drwxr-xr-x   2 root root       4096 Aug  7 16:58 rc1.d/
drwxr-xr-x   2 root root       4096 Aug  7 16:58 rc2.d/
drwxr-xr-x   2 root root       4096 Aug  7 16:58 rc3.d/
drwxr-xr-x   2 root root       4096 Aug  7 16:58 rc4.d/
drwxr-xr-x   2 root root       4096 Aug  7 16:58 rc5.d/
drwxr-xr-x   2 root root       4096 Aug  7 16:58 rc6.d/
drwxr-xr-x   2 root root       4096 Apr 23  2024 rcS.d/
lrwxrwxrwx   1 root root         39 Apr 23  2024 resolv.conf -> ../run/systemd/resolve/stub-resolv.conf
-rw-r--r--   1 root root        648 Apr 23  2024 .resolv.conf.systemd-resolved.bak
lrwxrwxrwx   1 root root         13 Apr  9  2024 rmt -> /usr/sbin/rmt*
-rw-r--r--   1 root root        911 Oct 18  2022 rpc
-rw-r--r--   1 root root       1213 Apr 23  2024 rsyslog.conf
drwxr-xr-x   2 root root       4096 Jul  2 18:14 rsyslog.d/
-rw-r--r--   1 root root       3663 Apr 23  2024 screenrc
drwxr-xr-x   4 root root       4096 Jul  2 18:13 security/
drwxr-xr-x   2 root root       4096 Apr 23  2024 selinux/
-rw-r--r--   1 root root      10593 Apr 23  2024 sensors3.conf
drwxr-xr-x   2 root root       4096 Apr 23  2024 sensors.d/
-rw-r--r--   1 root root      12813 Mar 28  2021 services
drwxr-xr-x   2 root root       4096 Apr 23  2024 sgml/
-rw-r-----   1 root shadow      935 Aug  7 16:53 shadow
-rw-r-----   1 root shadow      836 Jul  2 18:28 shadow-
-rw-r--r--   1 root root        148 Jul  2 18:21 shells
drwxr-xr-x   2 root root       4096 Apr 23  2024 skel/
drwxr-xr-x   6 root root       4096 Jul  2 18:21 sos/
drwxr-xr-x   4 root root       4096 Aug  7 16:53 ssh/
drwxr-xr-x   4 root root       4096 Jul  2 18:13 ssl/
-rw-r--r--   1 root root         19 Aug  7 16:39 subgid
-rw-r--r--   1 root root          0 Apr 23  2024 subgid-
-rw-r--r--   1 root root         19 Aug  7 16:39 subuid
-rw-r--r--   1 root root          0 Apr 23  2024 subuid-
-rw-r--r--   1 root root       4343 Apr  8  2024 sudo.conf
-r--r-----   1 root root       1830 Aug  7 16:39 sudoers
drwxr-xr-x   2 root root       4096 Jul  2 18:13 sudoers.d/
-rw-r--r--   1 root root       9804 Apr  8  2024 sudo_logsrvd.conf
drwxr-xr-x   2 root root       4096 Apr 23  2024 supercat/
-rw-r--r--   1 root root        566 Jul  2 18:25 sysctl.conf
drwxr-xr-x   2 root root       4096 Jul  2 18:21 sysctl.d/
drwxr-xr-x   2 root root       4096 Apr 23  2024 sysstat/
drwxr-xr-x   6 root root       4096 Jul  2 18:22 systemd/
drwxr-xr-x   2 root root       4096 Apr 23  2024 terminfo/
-rw-r--r--   1 root root         14 Jul  2 18:14 timezone
drwxr-xr-x   2 root root       4096 Apr 23  2024 tmpfiles.d/
drwxr-xr-x   3 root root       4096 Jul  2 18:25 tuned/
drwxr-xr-x   2 root root       4096 Jul  2 18:21 ubuntu-advantage/
-rw-r--r--   1 root root       1260 Jan 27  2023 ucf.conf
drwxr-xr-x   4 root root       4096 Jul  2 18:13 udev/
drwxr-xr-x   2 root root       4096 Jul  2 18:13 udisks2/
drwxr-xr-x   3 root root       4096 Apr 23  2024 ufw/
-rw-r--r--   1 root root        208 Apr 23  2024 .updated
drwxr-xr-x   3 root root       4096 Jul  2 18:21 update-manager/
drwxr-xr-x   2 root root       4096 Jul  2 18:21 update-motd.d/
drwxr-xr-x   2 root root       4096 Apr 23  2024 update-notifier/
-rw-r--r--   1 root root       1523 Apr 23  2024 usb_modeswitch.conf
drwxr-xr-x   2 root root       4096 Apr 23  2024 usb_modeswitch.d/
lrwxrwxrwx   1 root root         16 Apr 23  2024 vconsole.conf -> default/keyboard
drwxr-xr-x   2 root root       4096 Jul  2 18:13 vim/
drwxr-xr-x   4 root root       4096 Jul  2 18:13 vmware-tools/
lrwxrwxrwx   1 root root         23 Feb 26  2024 vtrgb -> /etc/alternatives/vtrgb
-rw-r--r--   1 root root       4942 Apr 23  2024 wgetrc
drwxr-xr-x   4 root root       4096 Apr 23  2024 X11/
-rw-r--r--   1 root root        681 Apr  8  2024 xattr.conf
drwxr-xr-x   4 root root       4096 Apr 23  2024 xdg/
drwxr-xr-x   2 root root       4096 Jul  2 18:21 xml/
-rw-r--r--   1 root root        460 Apr 23  2024 zsh_command_not_found
root@iZ0joekfzexmd52co5e0iiZ:/etc# rz -E
rz waiting to receive.
root@iZ0joekfzexmd52co5e0iiZ:/etc# unzip let.zip 
Archive:  let.zip
   creating: etc/letsencrypt/
   creating: etc/letsencrypt/accounts/
   creating: etc/letsencrypt/accounts/acme-v02.api.letsencrypt.org/
   creating: etc/letsencrypt/accounts/acme-v02.api.letsencrypt.org/directory/
   creating: etc/letsencrypt/accounts/acme-v02.api.letsencrypt.org/directory/ae72e5253c4159eb9d0ced1a9714b6a3/
  inflating: etc/letsencrypt/accounts/acme-v02.api.letsencrypt.org/directory/ae72e5253c4159eb9d0ced1a9714b6a3/private_key.json  
  inflating: etc/letsencrypt/accounts/acme-v02.api.letsencrypt.org/directory/ae72e5253c4159eb9d0ced1a9714b6a3/meta.json  
  inflating: etc/letsencrypt/accounts/acme-v02.api.letsencrypt.org/directory/ae72e5253c4159eb9d0ced1a9714b6a3/regr.json  
   creating: etc/letsencrypt/renewal-hooks/
   creating: etc/letsencrypt/renewal-hooks/deploy/
   creating: etc/letsencrypt/renewal-hooks/post/
   creating: etc/letsencrypt/renewal-hooks/pre/
   creating: etc/letsencrypt/renewal/
  inflating: etc/letsencrypt/renewal/hk.gototravelnow.com.conf  
  inflating: etc/letsencrypt/ssl-dhparams.pem  
   creating: etc/letsencrypt/live/
  inflating: etc/letsencrypt/live/README  
   creating: etc/letsencrypt/live/hk.gototravelnow.com/
  inflating: etc/letsencrypt/live/hk.gototravelnow.com/chain.pem  
  inflating: etc/letsencrypt/live/hk.gototravelnow.com/README  
  inflating: etc/letsencrypt/live/hk.gototravelnow.com/fullchain.pem  
  inflating: etc/letsencrypt/live/hk.gototravelnow.com/cert.pem  
  inflating: etc/letsencrypt/live/hk.gototravelnow.com/privkey.pem  
 extracting: etc/letsencrypt/live/cert.tgz  
 extracting: etc/letsencrypt/live/hk.zip  
   creating: etc/letsencrypt/live/www.nneettfflliixx.shop/
  inflating: etc/letsencrypt/live/www.nneettfflliixx.shop/fullchain.pem  
  inflating: etc/letsencrypt/live/www.nneettfflliixx.shop/privkey.pem  
  inflating: etc/letsencrypt/options-ssl-nginx.conf  
   creating: etc/letsencrypt/archive/
 extracting: etc/letsencrypt/archive/cert1.tgz  
   creating: etc/letsencrypt/archive/hk.gototravelnow.com/
  inflating: etc/letsencrypt/archive/hk.gototravelnow.com/cert1.pem  
  inflating: etc/letsencrypt/archive/hk.gototravelnow.com/fullchain1.pem  
  inflating: etc/letsencrypt/archive/hk.gototravelnow.com/chain1.pem  
  inflating: etc/letsencrypt/archive/hk.gototravelnow.com/privkey1.pem  
root@iZ0joekfzexmd52co5e0iiZ:/etc# pwd
/etc
root@iZ0joekfzexmd52co5e0iiZ:/etc# cd let
-bash: cd: let: No such file or directory
root@iZ0joekfzexmd52co5e0iiZ:/etc# cd etc/
root@iZ0joekfzexmd52co5e0iiZ:/etc/etc# ll
total 12
drwxr-xr-x   3 root root 4096 Aug  7 17:16 ./
drwxr-xr-x 115 root root 4096 Aug  7 17:16 ../
drwxr-xr-x   7 root root 4096 Jan  3  2025 letsencrypt/
root@iZ0joekfzexmd52co5e0iiZ:/etc/etc# mv letsencrypt/ ../
root@iZ0joekfzexmd52co5e0iiZ:/etc/etc# cd ../
root@iZ0joekfzexmd52co5e0iiZ:/etc# rm etc/
rm: cannot remove 'etc/': Is a directory
root@iZ0joekfzexmd52co5e0iiZ:/etc# rmdir  etc/
root@iZ0joekfzexmd52co5e0iiZ:/etc# cd /usr/local/etc/v2ray/
root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# ll
total 12
drwxr-xr-x 2 root root 4096 Aug  7 16:57 ./
drwxr-xr-x 3 root root 4096 Aug  7 16:57 ../
-rw-r--r-- 1 root root    3 Aug  7 16:57 config.json
root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# mv config.json config.json.bak
root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# ll
total 12
drwxr-xr-x 2 root root 4096 Aug  7 17:18 ./
drwxr-xr-x 3 root root 4096 Aug  7 16:57 ../
-rw-r--r-- 1 root root    3 Aug  7 16:57 config.json.bak
root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# rz -E
rz waiting to receive.
root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# ll
total 16
drwxr-xr-x 2 root root 4096 Aug  7 17:18 ./
drwxr-xr-x 3 root root 4096 Aug  7 16:57 ../
-rw-r--r-- 1 root root 3401 Aug  7 17:13 config.json
-rw-r--r-- 1 root root    3 Aug  7 16:57 config.json.bak
root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# syatemctl restart v2ray
Command 'syatemctl' not found, did you mean:
  command 'systemctl' from deb systemd (255.4-1ubuntu8.6)
  command 'systemctl' from deb systemctl (1.4.4181-1.1)
Try: apt install <deb name>
root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# systemctl restart v2ray
root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# systemctl status v2ray
● v2ray.service - V2Ray Service
     Loaded: loaded (/etc/systemd/system/v2ray.service; enabled; preset: enabled)
    Drop-In: /etc/systemd/system/v2ray.service.d
             └─10-donot_touch_single_conf.conf
     Active: active (running) since Thu 2025-08-07 17:18:52 CST; 10s ago
       Docs: https://www.v2fly.org/
   Main PID: 4620 (v2ray)
      Tasks: 7 (limit: 995)
     Memory: 20.0M (peak: 21.1M)
        CPU: 73ms
     CGroup: /system.slice/v2ray.service
             └─4620 /usr/local/bin/v2ray run -config /usr/local/etc/v2ray/config.json

Aug 07 17:18:52 iZ0joekfzexmd52co5e0iiZ systemd[1]: Started v2ray.service - V2Ray Service.
Aug 07 17:18:52 iZ0joekfzexmd52co5e0iiZ v2ray[4620]: V2Ray 5.37.0 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.24.4 lin>
Aug 07 17:18:52 iZ0joekfzexmd52co5e0iiZ v2ray[4620]: A unified platform for anti-censorship.
Aug 07 17:18:52 iZ0joekfzexmd52co5e0iiZ v2ray[4620]: 2025/08/07 17:18:52 [Warning] V2Ray 5.37.0 started

root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# 
root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# systemctl restart nginx
root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# ps -ef|grep nginx
root        4642       1  0 17:19 ?        00:00:00 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
www-data    4643    4642  0 17:19 ?        00:00:00 nginx: worker process
www-data    4644    4642  0 17:19 ?        00:00:00 nginx: worker process
root        4652    2318  0 17:19 pts/0    00:00:00 grep --color=auto nginx
root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# systemctl status nginx
● nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; preset: enabled)
     Active: active (running) since Thu 2025-08-07 17:19:23 CST; 29s ago
       Docs: man:nginx(8)
    Process: 4638 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
    Process: 4641 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
   Main PID: 4642 (nginx)
      Tasks: 3 (limit: 995)
     Memory: 3.5M (peak: 3.7M)
        CPU: 50ms
     CGroup: /system.slice/nginx.service
             ├─4642 "nginx: master process /usr/sbin/nginx -g daemon on; master_process on;"
             ├─4643 "nginx: worker process"
             └─4644 "nginx: worker process"

Aug 07 17:19:23 iZ0joekfzexmd52co5e0iiZ systemd[1]: Starting nginx.service - A high performance web server and a reverse proxy serve>
Aug 07 17:19:23 iZ0joekfzexmd52co5e0iiZ nginx[4638]: 2025/08/07 17:19:23 [warn] 4638#4638: conflicting server name "_" on 0.0.0.0:80>
Aug 07 17:19:23 iZ0joekfzexmd52co5e0iiZ nginx[4638]: 2025/08/07 17:19:23 [warn] 4638#4638: conflicting server name "_" on [::]:80, i>
Aug 07 17:19:23 iZ0joekfzexmd52co5e0iiZ nginx[4641]: 2025/08/07 17:19:23 [warn] 4641#4641: conflicting server name "_" on 0.0.0.0:80>
Aug 07 17:19:23 iZ0joekfzexmd52co5e0iiZ nginx[4641]: 2025/08/07 17:19:23 [warn] 4641#4641: conflicting server name "_" on [::]:80, i>
Aug 07 17:19:23 iZ0joekfzexmd52co5e0iiZ systemd[1]: Started nginx.service - A high performance web server and a reverse proxy server.

root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# neastat -lanp | grep ng
Command 'neastat' not found, did you mean:
  command 'netstat' from deb net-tools (2.10-0.1ubuntu3)
Try: apt install <deb name>
root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# lsof -i:nginx
lsof: unknown service nginx in: -i :nginx
lsof 4.95.0
 latest revision: https://github.com/lsof-org/lsof
 latest FAQ: https://github.com/lsof-org/lsof/blob/master/00FAQ
 latest (non-formatted) man page: https://github.com/lsof-org/lsof/blob/master/Lsof.8
 usage: [-?abhKlnNoOPRtUvVX] [+|-c c] [+|-d s] [+D D] [+|-E] [+|-e s] [+|-f[gG]]
 [-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+m [m]] [+|-M] [-o [o]] [-p s]
 [+|-r [t]] [-s [p:s]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names]
Use the ``-h'' option to get more help information.
root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# lsof -i:443
COMMAND  PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
nginx   4642     root    6u  IPv4  39840      0t0  TCP *:https (LISTEN)
nginx   4642     root    7u  IPv6  39841      0t0  TCP *:https (LISTEN)
nginx   4643 www-data    6u  IPv4  39840      0t0  TCP *:https (LISTEN)
nginx   4643 www-data    7u  IPv6  39841      0t0  TCP *:https (LISTEN)
nginx   4644 www-data    6u  IPv4  39840      0t0  TCP *:https (LISTEN)
nginx   4644 www-data    7u  IPv6  39841      0t0  TCP *:https (LISTEN)
root@iZ0joekfzexmd52co5e0iiZ:/usr/local/etc/v2ray# 
0

评论 (0)

取消