设为首页收藏本站

简体中文 繁體中文 English 日本語 Deutsch 한국 사람 بالعربية TÜRKÇE português คนไทย Français

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 49|回复: 9

【云筏科技CloudRaft】 NAT

[复制链接]

85

主题

1369

回帖

3049

积分

论坛元老

积分
3049
发表于 2020-9-26 21:45:06 | 显示全部楼层 |阅读模式
本帖最后由 zxxx 于 2020-9-26 21:45 编辑

【云筏科技CloudRaft】 NAT-EU 服务器配置

实例规格 1核2G        
SSD系统盘 40G        
弹性数据盘 460G
公网带宽上行 30Mbps        
下行G口共享 不限流量     
防御峰值 10G (免费提供10Gbps)
独立IPv6+含20个IPv4端口(可自助配置)





安装全新系统

官方可选择的系统有Centos7.6、Ubuntu16.04、WindowsServer2019

我选择的是 Ubuntu16.04





端口管理 公网端口 18709 转发到内网 22





通过 SSH 登录 VPS

[ol]
  • root@server:~# ssh 1.2.3.4 -p 18709
  • Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.4.0-142-generic x86_64)
  • * Documentation:  https://help.ubuntu.com
  • * Management:     https://landscape.canonical.com
  • * Support:        https://ubuntu.com/advantage
  • 201 packages can be updated.
  • 145 updates are security updates.
  • Last login: Tue Jul 21 23:16:32 2020[/ol]复制代码

    查看信息

    [ol]
  • root@pFGjtC1000180:~# uname -a
  • Linux pFGjtC1000180 4.4.0-142-generic #168-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
  • root@pFGjtC1000180:~# cat /proc/cpuinfo
  • processor       : 0
  • vendor_id       : GenuineIntel
  • cpu family      : 6
  • model           : 63
  • model name      : Intel(R) Xeon(R) CPU E5-1650 v3 @ 3.50GHz
  • stepping        : 2
  • microcode       : 0xffffffff
  • cpu MHz         : 3491.856
  • cache size      : 15360 KB
  • physical id     : 0
  • siblings        : 1
  • core id         : 0
  • cpu cores       : 1
  • apicid          : 0
  • initial apicid  : 0
  • fpu             : yes
  • fpu_exception   : yes
  • cpuid level     : 15
  • wp              : yes
  • flags           : fpu vme de ...
  • bugs            : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf
  • bogomips        : 6983.71
  • clflush size    : 64
  • cache_alignment : 64
  • address sizes   : 44 bits physical, 48 bits virtual
  • power management:
  • root@pFGjtC1000180:~# free -h
  •               total        used        free      shared  buff/cache   available
  • Mem:           1.9G        1.4G        153M        3.0M        354M        338M
  • Swap:            0B          0B          0B
  • root@pFGjtC1000180:~# df -h
  • Filesystem      Size  Used Avail Use% Mounted on
  • udev            971M     0  971M   0% /dev
  • tmpfs           199M  3.1M  196M   2% /run
  • /dev/sda1        40G  2.0G   36G   6% /
  • tmpfs           992M     0  992M   0% /dev/shm
  • tmpfs           5.0M     0  5.0M   0% /run/lock
  • tmpfs           992M     0  992M   0% /sys/fs/cgroup
  • tmpfs           199M     0  199M   0% /run/user/0[/ol]复制代码

    默认只有 SSD系统盘 40G, 弹性数据盘 460G 并没有挂载

    [ol]
  • root@pFGjtC1000180:~# fdisk -l
  • Disk /dev/sda: 40 GiB, 42949672960 bytes, 83886080 sectors
  • Units: sectors of 1 * 512 = 512 bytes
  • Sector size (logical/physical): 512 bytes / 4096 bytes
  • I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  • Disklabel type: dos
  • Disk identifier: 0xd8ab9232
  • Device     Boot Start      End  Sectors Size Id Type
  • /dev/sda1  *     2048 83884031 83881984  40G 83 Linux
  • Disk /dev/sdb: 460 GiB, 493921239040 bytes, 964689920 sectors
  • Units: sectors of 1 * 512 = 512 bytes
  • Sector size (logical/physical): 512 bytes / 4096 bytes
  • I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  • Disklabel type: dos
  • Disk identifier: 0xb3e9939a
  • Device     Boot Start       End   Sectors  Size Id Type
  • /dev/sdb1        2048 964689919 964687872  460G 83 Linux[/ol]复制代码

  • 本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    ×
    回复

    使用道具 举报

    85

    主题

    1369

    回帖

    3049

    积分

    论坛元老

    积分
    3049
     楼主| 发表于 2020-9-26 21:45:07 | 显示全部楼层
    本帖最后由 zxxx 于 2020-9-19 23:55 编辑

    Ubuntu 系统版本太低,用起来也不太顺手,我个人用Debian比较多,安装 Debian 10 系统吧

    [ol]
  • apt update && apt install -y xz-utils openssl gawk file wget
  • cat  /etc/resolv.conf
  • nameserver 8.8.8.8
  • nameserver 8.8.4.4
  • search localhost
  • EOF
  • wget https://moeclub.org/attachment/LinuxShell/InstallNET.sh && \
  • chmod a+x InstallNET.sh && \
  • bash InstallNET.sh -d 10 -v 64 -a
  • ... ... ...
  • ./init
  • ./proc
  • ./media
  • 191444 blocks
  • Connection to 1.2.3.4 closed by remote host.
  • Connection to 1.2.3.4 closed.[/ol]复制代码

    等待大约 15 分钟之后,重新连接到 VPS

    IP: 1.2.3.4
    Port: 22
    用户:root
    密码: MoeClub.org

    连接之后第一件事是修改密码
    [ol]
  • root@debian:~# passwd
  • New password:
  • Retype new password:
  • passwd: password updated successfully[/ol]复制代码

    然后添加公钥 /root/.ssh/authorized_keys
    [ol]
  • root@debian:~# mkdir -p /root/.ssh && \
  • cat  /root/.ssh/authorized_keys
  • ssh-rsa AAAAB3NzaCqjc7PQ1cSsldM2Euw== root@server
  • EOF[/ol]复制代码

    接着修改 sshd 配置 /etc/ssh/sshd_config

    [ol]
  • root@debian:~# cat  /etc/ssh/sshd_config
  • AcceptEnv LANG LC_*
  • AllowTcpForwarding yes
  • ChallengeResponseAuthentication no
  • ClientAliveInterval 60
  • GatewayPorts yes
  • PasswordAuthentication no
  • PermitRootLogin yes
  • Port 22
  • PrintMotd no
  • PubkeyAuthentication yes
  • Subsystem sftp /usr/lib/openssh/sftp-server
  • TCPKeepAlive yes
  • UsePAM yes
  • X11Forwarding yes
  • EOF[/ol]复制代码

    重启 SSHD
    [ol]
  • systemctl restart sshd[/ol]复制代码

    查看信息

    [ol]
  • root@debian:~# uname -a
  • Linux debian 4.19.0-10-amd64 #1 SMP Debian 4.19.132-1 (2020-07-24) x86_64 GNU/Linux
  • root@debian:~# free -h
  •               total        used        free      shared  buff/cache   available
  • Mem:          1.9Gi       117Mi       1.7Gi       5.0Mi        64Mi       1.6Gi
  • Swap:         2.0Gi          0B       2.0Gi
  • root@debian:~# df -h
  • Filesystem      Size  Used Avail Use% Mounted on
  • udev            940M     0  940M   0% /dev
  • tmpfs           191M  5.2M  186M   3% /run
  • /dev/sda1        38G  793M   35G   3% /
  • tmpfs           954M     0  954M   0% /dev/shm
  • tmpfs           5.0M     0  5.0M   0% /run/lock
  • tmpfs           954M     0  954M   0% /sys/fs/cgroup
  • tmpfs           191M     0  191M   0% /run/user/0
  • [/ol]复制代码

    内存占用似乎比Ubuntu少一些,自动配置了 2G 的 Swap 分区。

    挂载数据磁盘
    [ol]
  • root@debian:~# fdisk -l
  • Disk /dev/sdb: 460 GiB, 493921239040 bytes, 964689920 sectors
  • Disk model: Virtual Disk   
  • Units: sectors of 1 * 512 = 512 bytes
  • Sector size (logical/physical): 512 bytes / 4096 bytes
  • I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  • Disklabel type: dos
  • Disk identifier: 0xb3e9939a
  • Device     Boot Start       End   Sectors  Size Id Type
  • /dev/sdb1        2048 964689919 964687872  460G 83 Linux
  • root@debian:~# mkdir /data
  • root@debian:~# mkfs.ext4 /dev/sdb
  • Filesystem UUID: 05ac747b-5b1e-48b0-850e-350cae955da8
  • root@debian:~# mount /dev/sdb /data
  • root@debian:~# df -h
  • Filesystem      Size  Used Avail Use% Mounted on
  • /dev/sda1        38G  793M   35G   3% /
  • /dev/sdb        452G   73M  429G   1% /data[/ol]复制代码

    系统启动自动挂载数据磁盘

    [ol]
  • root@debian:~# blkid
  • /dev/sda1: UUID="9f077f58-53d4-46b3-b3c9-6883bec58368" TYPE="ext4" PARTUUID="086191ba-01"
  • /dev/sda5: UUID="fa9c77c5-1e7b-4615-b6f2-cdc440948f78" TYPE="swap" PARTUUID="086191ba-05"
  • /dev/sdb: UUID="05ac747b-5b1e-48b0-850e-350cae955da8" TYPE="ext4"
  • cat > /etc/fstab
  • UUID=05ac747b-5b1e-48b0-850e-350cae955da8 /data ext4 defaults 0 0
  • EOF[/ol]复制代码

    速度测试

    Timestamp    : 2020-09-19 22:24:06 GMT+8

    [ol]
  • root@debian:~# apt install wget screen
  • root@debian:~# screen -S s
  • root@debian:~# wget -qO- https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash
  • ----------------------------------------------------------------------
  • Superbench.sh -- https://www.oldking.net/350.html
  • Mode  : Standard    Version : 1.1.7
  • Usage : wget -qO- sb.oldking.net | bash
  • ----------------------------------------------------------------------
  • CPU Model            : Intel(R) Xeon(R) CPU E5-1650 v3 @ 3.50GHz
  • CPU Cores            : 1 Cores 3491.912 MHz x86_64
  • CPU Cache            : 15360 KB
  • OS                   : Debian GNU/Linux 10 (64 Bit) Hyper-V
  • Kernel               : 4.19.0-10-amd64
  • Total Space          : 1.0 GB / 490.0 GB
  • Total RAM            : 1481 MB / 1907 MB (270 MB Buff)
  • Total SWAP           : 2 MB / 2045 MB
  • Uptime               : 0 days 0 hour 19 min
  • Load Average         : 0.83, 0.38, 0.19
  • TCP CC               : cubic
  • ASN & ISP            : AS24940, Hetzner Online GmbH
  • Organization         : Hetzner
  • Location             : Falkenstein, Germany / DE
  • Region               : Saxony
  • ----------------------------------------------------------------------
  • I/O Speed( 1.0GB )   : 87.2 MB/s
  • I/O Speed( 1.0GB )   : 83.5 MB/s
  • I/O Speed( 1.0GB )   : 83.7 MB/s
  • Average I/O Speed    : 84.8 MB/s
  • ----------------------------------------------------------------------
  • Node Name        Upload Speed      Download Speed      Latency     
  • Fast.com         0.00 Mbit/s       109.6 Mbit/s        -           
  • ----------------------------------------------------------------------
  • Finished in  : 1 min 7 sec
  • Timestamp    : 2020-09-19 22:24:06 GMT+8
  • Results      : ./superbench.log
  • ----------------------------------------------------------------------
  • Share result:
  • · https://paste.ubuntu.com/p/SpNX9K5HRS/
  • ----------------------------------------------------------------------
  • root@debian:~# wget -qO- bench.sh | bash
  • ----------------------------------------------------------------------
  • CPU Model             : Intel(R) Xeon(R) CPU E5-1650 v3 @ 3.50GHz
  • CPU Cores             : 1
  • CPU Frequency         : 3491.912 MHz
  • CPU Cache             : 15360 KB
  • Total Disk            : 490.0 GB (1.0 GB Used)
  • Total Mem             : 1907 MB (1478 MB Used)
  • Total Swap            : 2045 MB (5 MB Used)
  • System uptime         : 0 days, 0 hour 23 min
  • Load average          : 0.10, 0.32, 0.21
  • OS                    : Debian GNU/Linux 10
  • Arch                  : x86_64 (64 Bit)
  • Kernel                : 4.19.0-10-amd64
  • TCP CC                : cubic
  • Virtualization        : Hyper-V
  • Organization          : AS24940 Hetzner Online GmbH
  • Location              : Frankfurt am Main / DE
  • Region                : Hesse
  • ----------------------------------------------------------------------
  • I/O Speed(1st run)    : 87.6 MB/s
  • I/O Speed(2nd run)    : 83.4 MB/s
  • I/O Speed(3rd run)    : 83.3 MB/s
  • Average I/O speed     : 84.8 MB/s
  • ----------------------------------------------------------------------
  • Node Name        Upload Speed      Download Speed      Latency     
  • Speedtest.net    28.51 Mbps        454.87 Mbps         30.78 ms   
  • Beijing    CU    20.35 Mbps        317.75 Mbps         273.54 ms   
  • Shanghai   CU    0.66 Mbps         345.87 Mbps         337.29 ms   
  • Guangzhou  CT    28.19 Mbps        226.68 Mbps         213.54 ms   
  • Hongkong   CN    27.00 Mbps        371.01 Mbps         198.58 ms   
  • Singapore  SG    26.38 Mbps        506.01 Mbps         260.11 ms   
  • Tokyo      JP    28.70 Mbps        6.02 Mbps           255.40 ms   
  • ----------------------------------------------------------------------[/ol]复制代码




    [ol]
  • wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench-CN.sh && bash ZBench-CN.sh
  • --------------------------------------------------------------------------
  • 节点名称                  IP地址            下载速度            延迟
  • CacheFly                  205.234.175.175   28.6MB/s            6.371 ms   
  • Linode, Singapore, SG     2400:8901::4b     11.0MB/s            169.522 ms  
  • Linode, London, UK        2a01:7e00::4b     27.6MB/s            21.662 ms   
  • Linode, Frankfurt, DE     2a01:7e01::4b     26.8MB/s            5.952 ms   
  • Linode, Fremont, CA       2600:3c01::4b     9.42MB/s            147.431 ms  
  • Softlayer, Dallas, TX     2607:f0d0:1101:4::28.25MB/s            118.702 ms  
  • Softlayer, Seattle, WA    2607:f0d0:2001:3::25.18MB/s            147.954 ms  
  • Softlayer, Frankfurt, DE  2a03:8180:1201:45::426.0MB/s            16.801 ms   
  • Softlayer, Singapore, SG  2401:c900:1101:8::25.63MB/s            178.230 ms  
  • Softlayer, HongKong, CN   2401:c900:1201:60::24.93MB/s            206.958 ms  
  • --------------------------------------------------------------------------
  • 节点名称                  上传速度          下载速度            延迟
  • --------------------------------------------------------------------------
  • 合肥        : Fail       北京        : Fail       武汉        : 295.08 ms
  • 昌吉        : Fail       成都        : Fail       上海        : Fail
  • 太原        : 264.27 ms  杭州        : 223.57 ms  宁夏        : Fail
  • 呼和浩特    : 188.34 ms  南昌        : Fail       拉萨        : Fail
  • 乌鲁木齐    : 278.93 ms  天津        : 163.02 ms  襄阳        : Fail
  • 郑州        : Fail       沈阳        : Fail       兰州        : Fail
  • 哈尔滨      : Fail       宁波        : Fail       苏州        : Fail
  • 济南        : 299.66 ms  西安        : 256.86 ms  西宁        : Fail
  • 重庆        : Fail       深圳        : Fail       南京        : Fail
  • 长沙        : Fail       长春        : 285.3 ms   福州        : 293.77 ms
  • --------------------------------------------------------------------------[/ol]复制代码
  • 本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    ×
    回复

    使用道具 举报

    85

    主题

    1369

    回帖

    3049

    积分

    论坛元老

    积分
    3049
     楼主| 发表于 2020-9-26 21:45:08 | 显示全部楼层
    本帖最后由 zxxx 于 2020-9-20 10:23 编辑

    unixbench 跑分 163.1

    [ol]
  • wget --no-check-certificate https://github.com/teddysun/across/raw/master/unixbench.sh && \
  • chmod +x unixbench.sh && \
  • ./unixbench.sh
  • ========================================================================
  •    BYTE UNIX Benchmarks (Version 5.1.3)
  •    System: debian: GNU/Linux
  •    OS: GNU/Linux -- 4.19.0-10-amd64 -- #1 SMP Debian 4.19.132-1 (2020-07-24)
  •    Machine: x86_64 (unknown)
  •    Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
  •    CPU 0: Intel(R) Xeon(R) CPU E5-1650 v3 @ 3.50GHz (6983.8 bogomips)
  •           x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
  •    10:46:55 up 43 min,  1 user,  load average: 1.13, 0.55, 0.36; runlevel 5
  • ------------------------------------------------------------------------
  • Benchmark Run: Sat Sep 19 2020 10:46:55 - 11:15:14
  • 1 CPU in system; running 1 parallel copy of tests
  • Dhrystone 2 using register variables        6057653.9 lps   (10.0 s, 7 samples)
  • Double-Precision Whetstone                      950.9 MWIPS (9.7 s, 7 samples)
  • Execl Throughput                                495.8 lps   (29.9 s, 2 samples)
  • File Copy 1024 bufsize 2000 maxblocks         90051.0 KBps  (30.0 s, 2 samples)
  • File Copy 256 bufsize 500 maxblocks           24275.2 KBps  (30.0 s, 2 samples)
  • File Copy 4096 bufsize 8000 maxblocks        264990.4 KBps  (30.0 s, 2 samples)
  • Pipe Throughput                              127399.5 lps   (10.0 s, 7 samples)
  • Pipe-based Context Switching                  37649.3 lps   (10.0 s, 7 samples)
  • Process Creation                               1272.9 lps   (30.0 s, 2 samples)
  • Shell Scripts (1 concurrent)                    977.1 lpm   (60.1 s, 2 samples)
  • Shell Scripts (8 concurrent)                    124.5 lpm   (60.2 s, 2 samples)
  • System Call Overhead                          72348.3 lps   (10.0 s, 7 samples)
  • System Benchmarks Index Values               BASELINE       RESULT    INDEX
  • Dhrystone 2 using register variables         116700.0    6057653.9    519.1
  • Double-Precision Whetstone                       55.0        950.9    172.9
  • Execl Throughput                                 43.0        495.8    115.3
  • File Copy 1024 bufsize 2000 maxblocks          3960.0      90051.0    227.4
  • File Copy 256 bufsize 500 maxblocks            1655.0      24275.2    146.7
  • File Copy 4096 bufsize 8000 maxblocks          5800.0     264990.4    456.9
  • Pipe Throughput                               12440.0     127399.5    102.4
  • Pipe-based Context Switching                   4000.0      37649.3     94.1
  • Process Creation                                126.0       1272.9    101.0
  • Shell Scripts (1 concurrent)                     42.4        977.1    230.4
  • Shell Scripts (8 concurrent)                      6.0        124.5    207.5
  • System Call Overhead                          15000.0      72348.3     48.2
  •                                                                    ========
  • System Benchmarks Index Score                                         163.1
  • ======= Script description and score comparison completed! =======[/ol]复制代码

    YABS Geekbench 5 跑分 114 上行网速限制 30M 下行 1G

    [ol]
  • root@debian:~# curl -s https://raw.githubusercontent.com/masonr/yet-another-bench-script/master/yabs.sh | bash
  • 开始 Sat 19 Sep 2020 11:19:29 AM EDT
  • 结束 Sat 19 Sep 2020 11:51:17 AM EDT
  • # ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
  • #              Yet-Another-Bench-Script              #
  • #                     v2020-09-15                    #
  • # https://github.com/masonr/yet-another-bench-script #
  • # ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
  • Sat 19 Sep 2020 11:19:29 AM EDT
  • Basic System Information:
  • ---------------------------------
  • Processor  : Intel(R) Xeon(R) CPU E5-1650 v3 @ 3.50GHz
  • CPU cores  : 1 @ 3491.912 MHz
  • AES-NI     : ✔ Enabled
  • VM-x/AMD-V : ❌ Disabled
  • RAM        : 1.9Gi
  • Swap       : 2.0Gi
  • Disk       : 489G
  • fio Disk Speed Tests (Mixed R/W 50/50):
  • ---------------------------------
  • Block Size | 4k            (IOPS) | 64k           (IOPS)
  •   ------   | ---            ----  | ----           ----
  • Read       | 20.61 MB/s    (5.1k) | 41.15 MB/s     (643)
  • Write      | 20.63 MB/s    (5.1k) | 41.45 MB/s     (647)
  • Total      | 41.24 MB/s   (10.3k) | 82.61 MB/s    (1.2k)
  •            |                      |
  • Block Size | 512k          (IOPS) | 1m            (IOPS)
  •   ------   | ---            ----  | ----           ----
  • Read       | 40.34 MB/s      (78) | 39.71 MB/s      (38)
  • Write      | 42.26 MB/s      (82) | 42.80 MB/s      (41)
  • Total      | 82.61 MB/s     (160) | 82.51 MB/s      (79)
  • iperf3 Network Speed Tests (IPv4):
  • ---------------------------------
  • Provider                  | Location (Link)           | Send Speed      | Recv Speed
  •                           |                           |                 |
  • Bouygues Telecom          | Paris, FR (10G)           | 28.0 Mbits/sec  | 910 Mbits/sec
  • Online.net                | Paris, FR (10G)           | 28.6 Mbits/sec  | 586 Mbits/sec
  • WorldStream               | The Netherlands (10G)     | 29.1 Mbits/sec  | 735 Mbits/sec
  • wilhelm.tel               | Hamburg, DE (10G)         | 29.1 Mbits/sec  | 666 Mbits/sec
  • Biznet                    | Bogor, Indonesia (1G)     | 27.0 Mbits/sec  | 86.9 Mbits/sec
  • Hostkey                   | Moscow, RU (1G)           | 28.0 Mbits/sec  | 870 Mbits/sec
  • Velocity Online           | Tallahassee, FL, US (10G) | 27.4 Mbits/sec  | 290 Mbits/sec
  • Airstream Comms           | Eau Claire, WI, US (10G)  | 27.6 Mbits/sec  | 270 Mbits/sec
  • Hurricane Electric        | Fremont, CA, US (10G)     | busy            | busy
  • iperf3 Network Speed Tests (IPv6):
  • ---------------------------------
  • Provider                  | Location (Link)           | Send Speed      | Recv Speed
  •                           |                           |                 |
  • Bouygues Telecom          | Paris, FR (10G)           | 28.4 Mbits/sec  | 915 Mbits/sec
  • Online.net                | Paris, FR (10G)           | 28.6 Mbits/sec  | 656 Mbits/sec
  • WorldStream               | The Netherlands (10G)     | 29.1 Mbits/sec  | 710 Mbits/sec
  • wilhelm.tel               | Hamburg, DE (10G)         | 28.2 Mbits/sec  | 610 Mbits/sec  
  • Airstream Comms           | Eau Claire, WI, US (10G)  | 27.2 Mbits/sec  | 190 Mbits/sec  
  • Hurricane Electric        | Fremont, CA, US (10G)     | busy            | busy           
  • Geekbench 5 Benchmark Test:
  • ---------------------------------
  • Test            | Value                        
  •                 |                              
  • Single Core     | 114                           
  • Multi Core      | 114                           
  • Full Test       | https://browser.geekbench.com/v5/cpu/3822211 [/ol]复制代码

  • 回复

    使用道具 举报

    85

    主题

    1369

    回帖

    3049

    积分

    论坛元老

    积分
    3049
     楼主| 发表于 2020-9-26 21:45:09 | 显示全部楼层
    安装 NFS 服务器

    [ol]
  • root@debian:~# apt update && apt install nfs-kernel-server
  • root@debian:~# cat > /etc/exports
  • /data  *(rw,no_root_squash,no_subtree_check,sync,fsid=1)
  • EOF
  • root@debian:~# exportfs -ra
  • root@debian:~# systemctl restart nfs-server[/ol]复制代码

    安装 NFS 客户端

    [ol]
  • root@debian:~# apt update && apt install nfs-common
  • root@debian:~# mkdir /mnt/data
  • root@debian:~# mount -t nfs [ipv6:address]:/data /mnt/data
  • root@debian:~# cd /mnt/data
  • root@debian:/mnt/data# touch hello.txt
  • root@debian:/mnt/data# ls -l
  • total 16
  • -rw-r--r-- 1 root root     0 Sep 19 12:30 hello.txt
  • drwx------ 2 root root 16384 Sep 19 10:12 lost+found
  • root@debian:/mnt/data# ls /data -l
  • total 16
  • -rw-r--r-- 1 root root     0 Sep 19 12:30 hello.txt
  • drwx------ 2 root root 16384 Sep 19 10:12 lost+found
  • [/ol]复制代码

    可以通过 IPv6 连接NFS服务器,但是通过 IPv4 无法连接NFS服务器。
  • 回复

    使用道具 举报

    85

    主题

    1369

    回帖

    3049

    积分

    论坛元老

    积分
    3049
     楼主| 发表于 2020-9-26 21:45:10 | 显示全部楼层
    注册 ZeroTier 配置网络

    进入官网 https://www.zerotier.com/ 选择 Sign Up 注册帐号,并通过EMail中的链接进行验证。

    进入 https://my.zerotier.com/network 创建网络





    [ol]
  • Your Networks
  • All ZeroTier networks have a unique ID like: 9f77fc393ef81859
  • Devices use a Network's ID to join the network.[/ol]复制代码

    安装 ZeroTier 加入网络

    [ol]
  • root@debian:~# apt install curl gnupg gnupg2 && curl -s https://install.zerotier.com | bash
  • *** Success! You are ZeroTier address [ 71688a6c4c ].
  • root@debian:~# zerotier-cli join 9f77fc393ef81859
  • 200 join OK
  • root@debian:~# ip a
  • 3: ztuzeqiilh:
    mtu 2800 qdisc pfifo_fast state UNKNOWN group default qlen 1000
  •     link/ether 5a:69:90:b4:55:b0 brd ff:ff:ff:ff:ff:ff
  •     inet6 fe80::5869:90ff:feb4:55b0/64 scope link
  •        valid_lft forever preferred_lft forever[/ol]复制代码

    管理网络 https://my.zerotier.com/network/9f77fc393ef81859

    勾选 Auth 栏的对号,允许加入网路,出现 ip 地址 - 192.168.193.150





    再次查看 ip 地址已经被分配 - 192.168.193.150

    [ol]
  • root@debian:~# ip a
  • 3: ztuzeqiilh:
    mtu 2800 qdisc pfifo_fast state UNKNOWN group default qlen 1000
  •     link/ether 5a:69:90:b4:55:b0 brd ff:ff:ff:ff:ff:ff
  •     inet 192.168.193.150/24 brd 192.168.193.255 scope global ztuzeqiilh
  •        valid_lft forever preferred_lft forever
  •     inet6 fe80::5869:90ff:feb4:55b0/64 scope link
  •        valid_lft forever preferred_lft forever[/ol]复制代码

    查看 NFS 服务器导出的文件夹

    [ol]
  • root@debian:~# showmount -e 192.168.193.150
  • Export list for 192.168.193.150:
  • /data *[/ol]复制代码

    通过 IPv4 连接 NFS 服务器

    [ol]
  • root@debian:~# umount /mnt/data
  • root@debian:~# mount -t nfs 192.168.193.150:/data /mnt/data
  • root@debian:~# ls /mnt/data -l
  • total 16
  • -rw-r--r-- 1 root root     0 Sep 19 12:30 hello.txt
  • drwx------ 2 root root 16384 Sep 19 10:12 lost+found
  • root@debian:~# ls /data -l
  • total 16
  • -rw-r--r-- 1 root root     0 Sep 19 12:30 hello.txt
  • drwx------ 2 root root 16384 Sep 19 10:12 lost+found[/ol]复制代码
  • 本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    ×
    回复

    使用道具 举报

    85

    主题

    1369

    回帖

    3049

    积分

    论坛元老

    积分
    3049
     楼主| 发表于 2020-9-26 21:45:11 | 显示全部楼层
    在另外一个 VPS 上面测试

    [ol]
  • root@ubuntu:~# apt install curl gnupg gnupg2 && curl -s https://install.zerotier.com | bash
  • *** Success! You are ZeroTier address [ 06fa4577ff].
  • root@debian:~# zerotier-cli join 9f77fc393ef81859
  • 200 join OK
  • root@ubuntu:~# ip a
  • 3:ztuzeqiilh:
    mtu 2800 qdisc fq state UNKNOWN group default qlen 1000
  •     link/ether 5a:1e:02:7b:4e:03 brd ff:ff:ff:ff:ff:ff
  •     inet6 fe80::581e:2ff:fe7b:4e03/64 scope link
  •        valid_lft forever preferred_lft forever[/ol]复制代码





    IP - 192.168.193.141

    [ol]
  • root@ubuntu:~# ip a
  • 3: ztuzeqiilh:
    mtu 2800 qdisc fq state UNKNOWN group default qlen 1000
  •     link/ether 5a:1e:02:7b:4e:03 brd ff:ff:ff:ff:ff:ff
  •     inet 192.168.193.141/24 brd 192.168.193.255 scope global ztuzeqiilh
  •        valid_lft forever preferred_lft forever
  •     inet6 fe80::581e:2ff:fe7b:4e03/64 scope link
  •        valid_lft forever preferred_lft forever
  • root@ubuntu:~# showmount -e 192.168.193.150
  • Export list for 192.168.193.150:
  • /data *
  • root@ubuntu:~# mkdir /mnt/data
  • root@ubuntu:~# mount -t nfs 192.168.193.150:/data /mnt/data
  • root@ubuntu:~# cd /mnt/data
  • root@ubuntu:/mnt/data# ls -al
  • total 24
  • drwxr-xr-x 3 root root  4096 Sep 19 11:30 .
  • drwxr-xr-x 4 root root  4096 Sep 19 12:09 ..
  • -rw-r--r-- 1 root root     0 Sep 19 11:30 hello.txt
  • drwx------ 2 root root 16384 Sep 19 09:12 lost+found
  • [/ol]复制代码

    连接成功。
  • 本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    ×
    回复

    使用道具 举报

    7

    主题

    183

    回帖

    413

    积分

    中级会员

    积分
    413
    发表于 2020-9-26 21:46:43 | 显示全部楼层
    这么辛苦的嘛


    回复

    使用道具 举报

    85

    主题

    1369

    回帖

    3049

    积分

    论坛元老

    积分
    3049
     楼主| 发表于 2020-9-26 21:47:28 | 显示全部楼层

    zenghaochen 发表于 2020-9-26 21:46

    这么辛苦的嘛

    NFS 用到端口太多了,没办法映射。

    回复

    使用道具 举报

    4

    主题

    388

    回帖

    816

    积分

    高级会员

    积分
    816
    发表于 2020-9-26 21:46:00 | 显示全部楼层
    很厉害的评测,大佬考虑下上个图床?!
    回复

    使用道具 举报

    49

    主题

    5001

    回帖

    1万

    积分

    论坛元老

    积分
    10271
    发表于 2020-9-26 21:47:40 | 显示全部楼层
    测试得很全面了
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Archiver|手机版|小黑屋|Discuz! X

    GMT+8, 2026-2-7 13:38 , Processed in 0.022344 second(s), 4 queries , Gzip On, Redis On.

    Powered by Discuz! X3.5

    © 2001-2025 Discuz! Team.

    快速回复 返回顶部 返回列表