Docker 容器之间通信方法
DOcker:新的联网功能允许您按容器的名称连接到容器,因此,如果创建一个新网络,则连接到该网络的任何容器都可以通过其名称访问其他容器。:
1)创建新网络
docker network create <network-name>
2)将容器连接到网络
docker run --net=<network-name> ...
或者将已存在容器加入新的网络
DOcker:新的联网功能允许您按容器的名称连接到容器,因此,如果创建一个新网络,则连接到该网络的任何容器都可以通过其名称访问其他容器。:
docker network create <network-name>
docker run --net=<network-name> ...
或者将已存在容器加入新的网络
VeryNginx 是一个功能强大而对人类友好的 Nginx 扩展程序.可作为cc、waf防火墙使用。
VeryNginx 基于 lua_nginx_module(openrestry) 开发,实现了高级的防火墙、访问统计和其他的一些功能。 集成在 Nginx 中运行,扩展了 Nginx 本身的功能,并提供了友好的 Web 交互界面。
VeryNginx在线实例
用户名 / 密码: verynginx / verynginx
详细配置说明见:VeryNginx Github WiKi
网上看了几篇规则倒是可以,但是我的用户名是admin,和后台管理界面冲突了,显示404。以下是官方的rewrite。
#Chevereto: Disable access to sensitive files
location ~* /(app|content|lib)/.*\.(po|php|lock|sql)$ {
deny all;
}
#Chevereto: CORS headers
location ~* /.*\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js) {
add_header Access-Control-Allow-Origin "*";
}
#Chevereto: Upload path for image content only and set 404 replacement
location ^~ /images/ {
location ~* (jpe?g|png|gif) {
log_not_found off;
error_page 404 /content/images/system/default/404.gif;
}
return 403;
}
#Chevereto: Pretty URLs
location / {
index index.php;
try_files $uri $uri/ /index.php?$query_string;
}
In case you installed Chevereto in a sub folder, the rules should look like this(如果您将Chevereto安装在子文件夹中,则规则应如下所示:):
----------------------------------------------------------------------
Superbench.sh -- https://www.oldking.net/350.html
Mode : Standard Version : 1.1.6
Usage : wget -qO- git.io/superbench.sh | bash
----------------------------------------------------------------------
CPU Model : Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz
CPU Cores : 4 Cores 1599.951 MHz x86_64
CPU Cache : 6144 KB
OS : Debian GNU/Linux 9 (64 Bit) Dedicated
Kernel : 4.9.0-11-amd64
Total Space : 1.7 GB / 1843.7 GB
Total RAM : 297 MB / 15950 MB (1219 MB Buff)
Total SWAP : 0 MB / 1022 MB
Uptime : 1 days 1 hour 25 min
Load Average : 0.21, 0.05, 0.02
TCP CC : bbr
ASN & ISP : AS16276, OVH ISP
Organization : OVH SAS
Location : Roubaix, France / FR
Region : Hauts-de-France
----------------------------------------------------------------------
I/O Speed( 1.0GB ) : 146 MB/s
I/O Speed( 1.0GB ) : 149 MB/s
I/O Speed( 1.0GB ) : 145 MB/s
Average I/O Speed : 146.7 MB/s
----------------------------------------------------------------------
Node Name Upload Speed Download Speed Latency
Speedtest.net 97.05 Mbit/s 92.86 Mbit/s 15.055 ms
Fast.com 0.00 Mbit/s 53.2 Mbit/s -
Beijing 5G CT 12.62 Mbit/s 8.84 Mbit/s -
Nanjing 5G CT 9.84 Mbit/s 6.91 Mbit/s -
Hefei 5G CT 8.43 Mbit/s 9.82 Mbit/s -
Guangzhou 5G CT 3.13 Mbit/s 1.16 Mbit/s -
TianJin 5G CU 19.46 Mbit/s 5.04 Mbit/s -
Shanghai 5G CU 3.47 Mbit/s 4.01 Mbit/s -
Guangzhou 5G CU 3.33 Mbit/s 3.10 Mbit/s -
Tianjin 5G CM 13.29 Mbit/s 28.92 Mbit/s -
Wuxi 5G CM 2.79 Mbit/s 4.29 Mbit/s -
Nanjing 5G CM 5.69 Mbit/s 4.19 Mbit/s -
Changsha 5G CM 8.95 Mbit/s 9.28 Mbit/s -
----------------------------------------------------------------------
Finished in : 6 min 10 sec
Timestamp : 2019-12-28 17:24:31 GMT+8
Results : /root/superbench.log
----------------------------------------------------------------------
Share result:
· http://www.speedtest.net/result/8894357995.png
· https://paste.ubuntu.com./p/wdfMqWt8KJ/
----------------------------------------------------------------------
----------------------------------------------------------------------
Superbench.sh -- https://www.oldking.net/350.html
Mode : Standard Version : 1.1.6
Usage : wget -qO- git.io/superbench.sh | bash
----------------------------------------------------------------------
CPU Model : Intel(R) Core(TM) i3-2130 CPU @ 3.40GHz
CPU Cores : 4 Cores 1672.115 MHz x86_64
CPU Cache : 3072 KB
OS : CentOS 7.7.1908 (64 Bit) Dedicated
Kernel : 4.14.129-bbrplus
Total Space : 8.4 GB / 1843.2 GB
Total RAM : 1421 MB / 7875 MB (4847 MB Buff)
Total SWAP : 303 MB / 2046 MB
Uptime : 105 days 15 hour 1 min
Load Average : 0.20, 0.17, 0.11
TCP CC : bbrplus
ASN & ISP : AS16276, OVH SAS
Organization : OVH Hosting, Inc.
Location : Montreal, Canada / CA
Region : Quebec
----------------------------------------------------------------------
I/O Speed( 1.0GB ) : 153 MB/s
I/O Speed( 1.0GB ) : 154 MB/s
I/O Speed( 1.0GB ) : 159 MB/s
Average I/O Speed : 155.3 MB/s
----------------------------------------------------------------------
Node Name Upload Speed Download Speed Latency
Speedtest.net 97.26 Mbit/s 93.23 Mbit/s 6.052 ms
Fast.com 0.00 Mbit/s 93.6 Mbit/s -
Beijing 5G CT 9.32 Mbit/s 29.70 Mbit/s -
Nanjing 5G CT 20.71 Mbit/s 29.61 Mbit/s -
Hefei 5G CT 7.68 Mbit/s 21.46 Mbit/s -
Guangzhou 5G CT 0.85 Mbit/s 8.17 Mbit/s -
TianJin 5G CU 13.29 Mbit/s 20.45 Mbit/s -
Shanghai 5G CU 8.82 Mbit/s 23.73 Mbit/s -
Guangzhou 5G CU 10.23 Mbit/s 25.83 Mbit/s -
Tianjin 5G CM 6.77 Mbit/s 13.90 Mbit/s -
Wuxi 5G CM 3.50 Mbit/s 10.39 Mbit/s -
Nanjing 5G CM 5.56 Mbit/s 17.93 Mbit/s -
Changsha 5G CM 1.96 Mbit/s 47.78 Mbit/s -
----------------------------------------------------------------------
Finished in : 7 min 4 sec
Timestamp : 2019-12-28 17:22:38 GMT+8
Results : /root/superbench.log
----------------------------------------------------------------------
Share result:
· http://www.speedtest.net/result/8894353677.png
· https://paste.ubuntu.com./p/W5s7w5j9SB/
----------------------------------------------------------------------
----------------------------------------------------------------------
Superbench.sh -- https://www.oldking.net/350.html
Mode : Standard Version : 1.1.6
Usage : wget -qO- git.io/superbench.sh | bash
----------------------------------------------------------------------
CPU Model : Intel(R) Celeron(R) CPU G3930 @ 2.90GHz
CPU Cores : 2 Cores 2900.132 MHz x86_64
CPU Cache : 2048 KB
OS : CentOS 7.7.1908 (64 Bit) Dedicated
Kernel : 4.14.129-bbrplus
Total Space : 496.1 GB / 1844.2 GB
Total RAM : 857 MB / 7935 MB (5935 MB Buff)
Total SWAP : 196 MB / 1023 MB
Uptime : 120 days 20 hour 9 min
Load Average : 0.04, 0.06, 0.01
TCP CC : bbrplus
ASN & ISP : AS21409, Ikoula Ripe
Organization :
Location : Boulogne-Billancourt, France / FR
Region : Île-de-France
----------------------------------------------------------------------
I/O Speed( 1.0GB ) : 177 MB/s
I/O Speed( 1.0GB ) : 180 MB/s
I/O Speed( 1.0GB ) : 186 MB/s
Average I/O Speed : 181.0 MB/s
----------------------------------------------------------------------
Node Name Upload Speed Download Speed Latency
Speedtest.net 776.17 Mbit/s 865.04 Mbit/s 9.314 ms
Fast.com 0.00 Mbit/s 154.9 Mbit/s -
Beijing 5G CT 3.88 Mbit/s 58.06 Mbit/s -
Nanjing 5G CT 7.71 Mbit/s 85.37 Mbit/s -
Hefei 5G CT 4.14 Mbit/s 32.01 Mbit/s -
Guangzhou 5G CT 2.73 Mbit/s 19.70 Mbit/s -
TianJin 5G CU 60.37 Mbit/s 89.34 Mbit/s -
Shanghai 5G CU 3.52 Mbit/s 12.35 Mbit/s -
Guangzhou 5G CU 3.17 Mbit/s 20.52 Mbit/s -
Tianjin 5G CM 12.40 Mbit/s 50.79 Mbit/s -
Wuxi 5G CM 0.23 Mbit/s 0.19 Mbit/s -
Nanjing 5G CM 5.03 Mbit/s 24.05 Mbit/s -
Changsha 5G CM 9.78 Mbit/s 336.54 Mbit/s -
----------------------------------------------------------------------
Finished in : 6 min 20 sec
Timestamp : 2019-12-28 17:16:02 GMT+8
Results : /root/superbench.log
----------------------------------------------------------------------
Share result:
· http://www.speedtest.net/result/8894341158.png
· https://paste.ubuntu.com./p/fZ4YMRWsfz/
----------------------------------------------------------------------
每次手机上搜资料时,只要进入了简书,那么必定会跳转到各种app(淘宝、京东、天猫、京东金融等等),很烦的啊。
2020-02-02 更新:
在csdn、豆瓣上也发现这个问题。
上个月买的ex42机器,到今天才有时间测试,结果发现网速达不到G口,只有500m的样子,在群里大佬的帮助下,确定了是网卡驱动的问题,但是这款机器的网卡不一定全部一样,我的是
最近上手一台dell R720 的服务器,配置如下:
cpu:E5 2650*2
内存:128G ddr3 1600
三星ssd *1 (具体型号忘记了)
2T 7200 sas硬盘 *2
双电源 H710阵列卡
iDRAC7 远程控制卡
然后我把原来的两块sas硬盘拆了装到这个机器上,组Raid5,平时没跑东西时功耗 98W(更新,功率计测试 106 W),CPU满载260W。
然后通过ipmitool限制风扇转速(因为硬盘不是原厂的,导致识别不了风扇会提高转速)为20%,这样就不吵了,同时写脚本监控,如果cpu温度大于50°就开启风扇自动控制,以免温度过高,脚本参考链接。
这个月hetzner机器都没有安装费,上手了一台EX42款的机器试一下,听说只有正价机器才有ddos防御?
我运气不错,开到的cpu是7700,随便玩玩就做的raid0,反正数据每半个小时就会同步到google drive,还好是无限空间,随意传~