|
14 | 14 | <a xmlns="" href="http://cn.linkedin.com/in/netkiller/">Linkedin</a> | |
15 | 15 | <a xmlns="" href="https://www.youtube.com/user/bg7nyt/videos">Youtube</a> | |
16 | 16 | <a xmlns="" href="//www.netkiller.cn/home/donations.html">打赏(Donations)</a> | |
17 | | - <a xmlns="" href="//www.netkiller.cn/home/about.html">About</a><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">第 3 章 阿里云</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="index.html">上一页</a> </td><th width="60%" align="center">部分 I. 云计算</th><td width="20%" align="right"> <a accesskey="n" href="RDS.html">下一页</a></td></tr></table><hr /></div><table xmlns=""><tr><td><iframe src="//ghbtns.com/github-btn.html?user=netkiller&repo=netkiller.github.io&type=watch&count=true&size=large" height="30" width="170" frameborder="0" scrolling="0" style="width:170px; height: 30px;" allowTransparency="true"></iframe></td><td><iframe src="//ghbtns.com/github-btn.html?user=netkiller&repo=netkiller.github.io&type=fork&count=true&size=large" height="30" width="170" frameborder="0" scrolling="0" style="width:170px; height: 30px;" allowTransparency="true"></iframe></td><td><iframe src="//ghbtns.com/github-btn.html?user=netkiller&type=follow&count=true&size=large" height="30" width="240" frameborder="0" scrolling="0" style="width:240px; height: 30px;" allowTransparency="true"></iframe></td><td></td><td><a href="https://zhuanlan.zhihu.com/netkiller"><img src="/images/logo/zhihu-card-default.svg" height="25" /></a></td><td valign="middle"><a href="https://zhuanlan.zhihu.com/netkiller">知乎专栏</a> | <a href="https://www.zhihu.com/club/1241768772601950208">多维度架构</a></td><td></td><td></td><td></td><td></td></tr></table><div class="chapter"><div class="titlepage"><div><div><h2 class="title"><a id="idm6992677152"></a>第 3 章 阿里云</h2></div></div></div><div class="toc"><p><strong>目录</strong></p><dl class="toc"><dt><span class="section"><a href="ch03.html#ECS">3.1. ECS</a></span></dt><dd><dl><dt><span class="section"><a href="ch03.html#idm6997236784">3.1.1. Rocky Linux 镜像</a></span></dt><dd><dl><dt><span class="section"><a href="ch03.html#idm6993666128">3.1.1.1. 阿里云 Rocky Linux 镜像初始化</a></span></dt><dt><span class="section"><a href="ch03.html#idm7110341232">3.1.1.2. Python 环境</a></span></dt><dt><span class="section"><a href="ch03.html#idm7110340080">3.1.1.3. 阿里云平台 Rocky Linux 系统 BUG</a></span></dt><dt><span class="section"><a href="ch03.html#idm7110335008">3.1.1.4. 开启交换分区</a></span></dt><dt><span class="section"><a href="ch03.html#idm6994937280">3.1.1.5. 启用 rc.local</a></span></dt></dl></dd><dt><span class="section"><a href="ch03.html#idm6994930704">3.1.2. 阿里云 AlmaLinux 9.0 镜像初始化</a></span></dt><dt><span class="section"><a href="ch03.html#idm6994606880">3.1.3. CentOS 8.4 初始化</a></span></dt><dt><span class="section"><a href="ch03.html#idm6994603856">3.1.4. 阿里云 Ubuntu 16.04.7 LTS 镜像 cron.daily 不执行 BUG 排除过程</a></span></dt></dl></dd><dt><span class="section"><a href="RDS.html">3.2. RDS MySQL</a></span></dt><dd><dl><dt><span class="section"><a href="RDS.html#idm6994592240">3.2.1. RDS MySQL => 本地 MySQL 数据库</a></span></dt><dd><dl><dt><span class="section"><a href="RDS.html#idm6994590144">3.2.1.1. MySQL 5.7</a></span></dt><dt><span class="section"><a href="RDS.html#idm6997232912">3.2.1.2. MySQL 8.0</a></span></dt></dl></dd><dt><span class="section"><a href="RDS.html#idm6997229936">3.2.2. 换表升级</a></span></dt></dl></dd><dt><span class="section"><a href="日志服务.html">3.3. 日志服务</a></span></dt><dd><dl><dt><span class="section"><a href="日志服务.html#idm6994922880">3.3.1. SLB 日志</a></span></dt><dd><dl><dt><span class="section"><a href="日志服务.html#idm6994922128">3.3.1.1. IP 地址查看</a></span></dt><dt><span class="section"><a href="日志服务.html#idm6994583760">3.3.1.2. Top 100 IP 地址</a></span></dt><dt><span class="section"><a href="日志服务.html#idm6994582416">3.3.1.3. 统计 GET/POST/PUT/DELETE/HEAD/OPTIONS</a></span></dt><dt><span class="section"><a href="日志服务.html#idm6994581024">3.3.1.4. 分析接口请求时间</a></span></dt><dt><span class="section"><a href="日志服务.html#idm6994580896">3.3.1.5. TOP 20 URL</a></span></dt><dt><span class="section"><a href="日志服务.html#idm6994580384">3.3.1.6. QPS</a></span></dt></dl></dd><dt><span class="section"><a href="日志服务.html#idm6994578592">3.3.2. Kubernetes 日志</a></span></dt><dt><span class="section"><a href="日志服务.html#idm6994577824">3.3.3. Aliyun LOG Java Producer</a></span></dt></dl></dd></dl></div> |
| 17 | + <a xmlns="" href="//www.netkiller.cn/home/about.html">About</a><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">第 3 章 阿里云</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="index.html">上一页</a> </td><th width="60%" align="center">部分 I. 云计算</th><td width="20%" align="right"> <a accesskey="n" href="RDS.html">下一页</a></td></tr></table><hr /></div><table xmlns=""><tr><td><iframe src="//ghbtns.com/github-btn.html?user=netkiller&repo=netkiller.github.io&type=watch&count=true&size=large" height="30" width="170" frameborder="0" scrolling="0" style="width:170px; height: 30px;" allowTransparency="true"></iframe></td><td><iframe src="//ghbtns.com/github-btn.html?user=netkiller&repo=netkiller.github.io&type=fork&count=true&size=large" height="30" width="170" frameborder="0" scrolling="0" style="width:170px; height: 30px;" allowTransparency="true"></iframe></td><td><iframe src="//ghbtns.com/github-btn.html?user=netkiller&type=follow&count=true&size=large" height="30" width="240" frameborder="0" scrolling="0" style="width:240px; height: 30px;" allowTransparency="true"></iframe></td><td></td><td><a href="https://zhuanlan.zhihu.com/netkiller"><img src="/images/logo/zhihu-card-default.svg" height="25" /></a></td><td valign="middle"><a href="https://zhuanlan.zhihu.com/netkiller">知乎专栏</a> | <a href="https://www.zhihu.com/club/1241768772601950208">多维度架构</a></td><td></td><td></td><td></td><td></td></tr></table><div class="chapter"><div class="titlepage"><div><div><h2 class="title"><a id="idm310642555056"></a>第 3 章 阿里云</h2></div></div></div><div class="toc"><p><strong>目录</strong></p><dl class="toc"><dt><span class="section"><a href="ch03.html#ECS">3.1. ECS</a></span></dt><dd><dl><dt><span class="section"><a href="ch03.html#idm310642552512">3.1.1. Rocky Linux 镜像</a></span></dt><dd><dl><dt><span class="section"><a href="ch03.html#idm310642551872">3.1.1.1. 阿里云 Rocky Linux 镜像初始化</a></span></dt><dt><span class="section"><a href="ch03.html#idm310642536048">3.1.1.2. Python 环境</a></span></dt><dt><span class="section"><a href="ch03.html#idm310642535248">3.1.1.3. 阿里云平台 Rocky Linux 系统 BUG</a></span></dt><dt><span class="section"><a href="ch03.html#idm310642529744">3.1.1.4. 开启交换分区</a></span></dt><dt><span class="section"><a href="ch03.html#idm310642529616">3.1.1.5. 启用 rc.local</a></span></dt></dl></dd><dt><span class="section"><a href="ch03.html#idm310626777072">3.1.2. 阿里云 AlmaLinux 9.0 镜像初始化</a></span></dt><dt><span class="section"><a href="ch03.html#idm310626771840">3.1.3. CentOS 8.4 初始化</a></span></dt><dt><span class="section"><a href="ch03.html#idm310626762544">3.1.4. 阿里云 Ubuntu 16.04.7 LTS 镜像 cron.daily 不执行 BUG 排除过程</a></span></dt></dl></dd><dt><span class="section"><a href="RDS.html">3.2. RDS MySQL</a></span></dt><dd><dl><dt><span class="section"><a href="RDS.html#idm310626750688">3.2.1. RDS MySQL => 本地 MySQL 数据库</a></span></dt><dd><dl><dt><span class="section"><a href="RDS.html#idm310626749072">3.2.1.1. MySQL 5.7</a></span></dt><dt><span class="section"><a href="RDS.html#idm310626748816">3.2.1.2. MySQL 8.0</a></span></dt></dl></dd><dt><span class="section"><a href="RDS.html#idm310626738640">3.2.2. 换表升级</a></span></dt></dl></dd><dt><span class="section"><a href="日志服务.html">3.3. 日志服务</a></span></dt><dd><dl><dt><span class="section"><a href="日志服务.html#idm310627280112">3.3.1. SLB 日志</a></span></dt><dd><dl><dt><span class="section"><a href="日志服务.html#idm310627279312">3.3.1.1. IP 地址查看</a></span></dt><dt><span class="section"><a href="日志服务.html#idm310630270096">3.3.1.2. Top 100 IP 地址</a></span></dt><dt><span class="section"><a href="日志服务.html#idm310630249680">3.3.1.3. 统计 GET/POST/PUT/DELETE/HEAD/OPTIONS</a></span></dt><dt><span class="section"><a href="日志服务.html#idm310630248208">3.3.1.4. 分析接口请求时间</a></span></dt><dt><span class="section"><a href="日志服务.html#idm310630246832">3.3.1.5. TOP 20 URL</a></span></dt><dt><span class="section"><a href="日志服务.html#idm310630244832">3.3.1.6. QPS</a></span></dt></dl></dd><dt><span class="section"><a href="日志服务.html#idm310630243280">3.3.2. Kubernetes 日志</a></span></dt><dt><span class="section"><a href="日志服务.html#idm310630242432">3.3.3. Aliyun LOG Java Producer</a></span></dt></dl></dd></dl></div> |
18 | 18 |
|
19 | 19 | <p>时代变了!!!今局面是云计算全面替代自建IDC的时代,所以必须将云计算单列一个章节,严肃对待。</p> |
20 | 20 |
|
21 | 21 | <div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="ECS"></a>3.1. ECS</h2></div></div></div> |
22 | 22 |
|
23 | | - <div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm6997236784"></a>3.1.1. Rocky Linux 镜像</h3></div></div></div> |
| 23 | + <div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm310642552512"></a>3.1.1. Rocky Linux 镜像</h3></div></div></div> |
24 | 24 |
|
25 | | - <div class="section"><div class="titlepage"><div><div><h4 class="title"><a id="idm6993666128"></a>3.1.1.1. 阿里云 Rocky Linux 镜像初始化</h4></div></div></div> |
| 25 | + <div class="section"><div class="titlepage"><div><div><h4 class="title"><a id="idm310642551872"></a>3.1.1.1. 阿里云 Rocky Linux 镜像初始化</h4></div></div></div> |
26 | 26 |
|
27 | 27 | <p>首次安装后初始化系统</p> |
28 | 28 | <pre class="screen"> |
|
168 | 168 |
|
169 | 169 | </pre> |
170 | 170 | </div> |
171 | | - <div class="section"><div class="titlepage"><div><div><h4 class="title"><a id="idm7110341232"></a>3.1.1.2. Python 环境</h4></div></div></div> |
| 171 | + <div class="section"><div class="titlepage"><div><div><h4 class="title"><a id="idm310642536048"></a>3.1.1.2. Python 环境</h4></div></div></div> |
172 | 172 |
|
173 | 173 | <pre class="screen"> |
174 | 174 |
|
|
177 | 177 |
|
178 | 178 | </pre> |
179 | 179 | </div> |
180 | | - <div class="section"><div class="titlepage"><div><div><h4 class="title"><a id="idm7110340080"></a>3.1.1.3. 阿里云平台 Rocky Linux 系统 BUG</h4></div></div></div> |
| 180 | + <div class="section"><div class="titlepage"><div><div><h4 class="title"><a id="idm310642535248"></a>3.1.1.3. 阿里云平台 Rocky Linux 系统 BUG</h4></div></div></div> |
181 | 181 |
|
182 | 182 | <p>系统更新链接不上</p> |
183 | 183 | <pre class="screen"> |
|
270 | 270 | </pre> |
271 | 271 | <p>再次运行 dnf upgrade -y 顺利通过</p> |
272 | 272 | </div> |
273 | | - <div class="section"><div class="titlepage"><div><div><h4 class="title"><a id="idm7110335008"></a>3.1.1.4. 开启交换分区</h4></div></div></div> |
| 273 | + <div class="section"><div class="titlepage"><div><div><h4 class="title"><a id="idm310642529744"></a>3.1.1.4. 开启交换分区</h4></div></div></div> |
274 | 274 |
|
275 | 275 | <p>开启交换分区</p> |
276 | 276 | <pre class="screen"> |
|
314 | 314 | 80 |
315 | 315 |
|
316 | 316 | </pre> |
317 | | - <div class="example"><a id="idm7110330016"></a><p class="title"><strong>例 3.1. 开启交换分区</strong></p><div class="example-contents"> |
| 317 | + <div class="example"><a id="idm310626779648"></a><p class="title"><strong>例 3.1. 开启交换分区</strong></p><div class="example-contents"> |
318 | 318 |
|
319 | 319 | <pre class="screen"> |
320 | 320 |
|
|
347 | 347 | </pre> |
348 | 348 | </div></div><br class="example-break" /> |
349 | 349 | </div> |
350 | | - <div class="section"><div class="titlepage"><div><div><h4 class="title"><a id="idm6994937280"></a>3.1.1.5. 启用 rc.local</h4></div></div></div> |
| 350 | + <div class="section"><div class="titlepage"><div><div><h4 class="title"><a id="idm310642529616"></a>3.1.1.5. 启用 rc.local</h4></div></div></div> |
351 | 351 |
|
352 | 352 | <p>/etc/rc.local 是一个开机启动脚本</p> |
353 | 353 | <pre class="screen"> |
|
412 | 412 | </pre> |
413 | 413 | </div> |
414 | 414 | </div> |
415 | | - <div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm6994930704"></a>3.1.2. 阿里云 AlmaLinux 9.0 镜像初始化</h3></div></div></div> |
| 415 | + <div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm310626777072"></a>3.1.2. 阿里云 AlmaLinux 9.0 镜像初始化</h3></div></div></div> |
416 | 416 |
|
417 | 417 | <p>阿里云ECS购买之后建议对 AlmaLinux 做标准初始化配置</p> |
418 | 418 | <pre class="screen"> |
|
470 | 470 |
|
471 | 471 | </pre> |
472 | 472 | </div> |
473 | | - <div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm6994606880"></a>3.1.3. CentOS 8.4 初始化</h3></div></div></div> |
| 473 | + <div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm310626771840"></a>3.1.3. CentOS 8.4 初始化</h3></div></div></div> |
474 | 474 |
|
475 | 475 | <p>阿里云启动之后</p> |
476 | 476 | <pre class="screen"> |
|
508 | 508 | </pre> |
509 | 509 | </div> |
510 | 510 |
|
511 | | - <div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm6994603856"></a>3.1.4. 阿里云 Ubuntu 16.04.7 LTS 镜像 cron.daily 不执行 BUG 排除过程</h3></div></div></div> |
| 511 | + <div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm310626762544"></a>3.1.4. 阿里云 Ubuntu 16.04.7 LTS 镜像 cron.daily 不执行 BUG 排除过程</h3></div></div></div> |
512 | 512 |
|
513 | 513 | <p>/etc/cron.daily 下面任务不执行</p> |
514 | 514 | <p>检查日志并无异常</p> |
|
0 commit comments