一、准备1、一台可以访问互联网的云服务器,已经安装了服务商提供的Centos操作系统。2、有控制台权限,可以访问控制台(或者叫VNC)二、操作1、查询云服务器的信息ifconfig//获取IP和子网掩码route-n//获取网关cat/etc/resolv.conf//获取DNS,或者用其他公共DNS服务器2、编辑grub配置文件,增加以下启动项menuentry‘NetInstall‘{setr
分类:
其他好文 时间:
2020-08-09 11:52:53
阅读次数:
86
There are n cities connected by m flights. Each flight starts from city u and arrives at v with a price w. Now given all the cities and flights, toget ...
分类:
其他好文 时间:
2020-08-05 10:29:42
阅读次数:
73
1、启动设备,设置PC1和PC2的IP地址、子网掩码和网关 2、配置SW1信息: <Huawei>undo terminal monitor 关闭弹窗 <Huawei>system-view 进入系统试图 [Huawei]user-interface console 0 [Huawei-ui-con ...
分类:
其他好文 时间:
2020-07-30 21:44:55
阅读次数:
88
iptables: 定义:命令行工具,用来和内核的netfilter模块通信; 作用:用来管理网络,做一个流量转发; DNAT:目标地址映射 应用场景:内网做对外服务器; 电脑(外部用户):10.10.10.10(src) 公网服务器:22.22.22.22(dst) 此时,一条TCP(src - ...
分类:
其他好文 时间:
2020-07-30 01:34:15
阅读次数:
71
Flask简单使用 1、定义路由 @app.route('/')是装饰器,定义如下: app.route(rule, options) rule参数:是绑定URL与函数。 options参数:是可选参数。 2、run() 函数来让应用运行在本地服务器上。定义如下 : app.run(host, po ...
分类:
其他好文 时间:
2020-07-29 21:55:38
阅读次数:
87
效果图: 1.XAML部分 <Window x:Class="WpfApp3.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft ...
分类:
其他好文 时间:
2020-07-29 00:46:25
阅读次数:
110
use Illuminate\Support\Facades\Route; Route::get('/', 'TestController@index'); //基础路由的定义,Route::请求方式('url',匿名函数);Route::请求方式('url','控制器名称@操作方法'); Rout ...
分类:
其他好文 时间:
2020-07-28 14:01:46
阅读次数:
83
mysql读写分离读写分离首先不推荐使用,很多业务场景也没有必要,不仅增加技术复杂度,而且可能会导致读到落后的数据,建议优化数据库,推荐使用keepalive+mysql双主复制的方案然后mysql-proxy是官方推出的中间件,不仅无法高可用,而且这个项目已经夭折了,使用mysql-route了,本次仅记录mysql-proxy的安装过程。mysql-proxy不再支持mysql5.7以后的cl
分类:
数据库 时间:
2020-07-28 10:25:43
阅读次数:
103
描述 73 88 1 02 7 4 44 5 2 6 5(Figure 1)Figure 1 shows a number triangle. Write a program that calculates the highest sum of numbers passed on a route t ...
分类:
其他好文 时间:
2020-07-26 19:29:18
阅读次数:
90
第一步,在Route 53新建一个hosted zone,获取nameserver,一般有4个,分别覆盖不同地理区位的域名解析 第二步,进入GoDaddy域名管理页面,可以看到默认的nameserver和DNS记录 选择不用GoDaddy的DNS服务,自己custom nameserver,把Rou ...
分类:
其他好文 时间:
2020-07-24 21:56:43
阅读次数:
113