Skip to content

Commit

Permalink
update course
Browse files Browse the repository at this point in the history
  • Loading branch information
leeyoshinari committed Jun 27, 2024
1 parent 4a9fd66 commit 3353e73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 40 deletions.
21 changes: 1 addition & 20 deletions server/templates/course_en.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,25 +45,7 @@ <h2>Usage</h2>
</p>
</li>
<li>
<p>Deploy InfluxDB, installation steps on CentOS are as follows:</p>
<p>
(1) Download and install<br>
&ensp;&ensp;&ensp;&ensp;<code>wget https://dl.influxdata.com/influxdb/releases/influxdb-1.8.3.x86_64.rpm</code> <br>
&ensp;&ensp;&ensp;&ensp;<code>yum localinstall influxdb-1.8.3.x86_64.rpm</code> <br>
(2) Start<br>
&ensp;&ensp;&ensp;&ensp;<code>systemctl enable influxdb</code> <br>
&ensp;&ensp;&ensp;&ensp;<code>systemctl start influxdb</code> <br>
(3) Modify configuration<br>
&ensp;&ensp;&ensp;&ensp;<code>vim /etc/influxdb/influxdb.conf</code> <br>
&ensp;&ensp;&ensp;&ensp;Around line 256, modify port: <code>bind-address = ":8086"</code> <br>
&ensp;&ensp;&ensp;&ensp;Around line 265, log disable: <code>log-enabled = false</code> <br>
&ensp;&ensp;&ensp;&ensp;Restart InfluxDB <br>
(4) Create database<br>
&ensp;&ensp;&ensp;&ensp;<code>create database test</code> <br>
&ensp;&ensp;&ensp;&ensp;<code>use test</code> <br>
&ensp;&ensp;&ensp;&ensp;<code>create user root with password '123456'</code> <br>
&ensp;&ensp;&ensp;&ensp;<code>grant all privileges on test to root</code> <br>
</p>
<p>Deploy InfluxDB2, the latest version is recommended.</p>
</li>
<li>
<p>Respectively modify the configuration files <code>config.ini</code> in the server and agent folders. </p>
Expand Down Expand Up @@ -132,7 +114,6 @@ <h2>Note</h2>
<li>The version of <code>sysstat</code> must be 12+, the 12 version has been tested, other versions have not been tested, and using old version may cause data abnormalities; please<a href="http://sebastien.godard.pagesperso-orange.fr/download.html"> click me </a>to download the latest version.</li>
<li>The network card of server must be in full duplex mode, if not, the network usage will be incorrect.</li>
<li>The code can be run on almost any linux system that can run python. The tested systems have <code>CentOS</code>, <code>Ubuntu</code>, <code>KylinOS</code>, <code>NeoKylin</code>, support <code>X86_64</code> and <code>ARM</code> architecture.</li>
<li>If you encounter <a href="https://github.com/leeyoshinari/performance_monitor/issues/8" target="_blank">the issue #8 </a> , please rename <code>draw_performance1.py</code> to <code>draw_performance.py</code>, and rename <code>performance_monitor1.py</code> to <code>performance_monitor.py</code>. If you know how to solve the issue, please tell me, thank you very much!</li>
</ol>
</div>
{% endblock %}
21 changes: 1 addition & 20 deletions server/templates/course_zh_CN.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,25 +50,7 @@ <h2>使用</h2>
</p>
</li>
<li>
<p>部署InfluxDB数据库。CentOS安装过程如下:</p>
<p>
(1)下载并安装<br>
&ensp;&ensp;&ensp;&ensp;<code>wget https://dl.influxdata.com/influxdb/releases/influxdb-1.8.3.x86_64.rpm</code> <br>
&ensp;&ensp;&ensp;&ensp;<code>yum localinstall influxdb-1.8.3.x86_64.rpm</code> <br>
(2)启动<br>
&ensp;&ensp;&ensp;&ensp;<code>systemctl enable influxdb</code> <br>
&ensp;&ensp;&ensp;&ensp;<code>systemctl start influxdb</code> <br>
(3)修改配置<br>
&ensp;&ensp;&ensp;&ensp;<code>vim /etc/influxdb/influxdb.conf</code> <br>
&ensp;&ensp;&ensp;&ensp;第256行左右,修改端口:<code>bind-address = ":8086"</code> <br>
&ensp;&ensp;&ensp;&ensp;第265行左右,不打印日志:<code>log-enabled = false</code> <br>
&ensp;&ensp;&ensp;&ensp;重启 <br>
(4)创建数据库<br>
&ensp;&ensp;&ensp;&ensp;<code>create database test</code> <br>
&ensp;&ensp;&ensp;&ensp;<code>use test</code> <br>
&ensp;&ensp;&ensp;&ensp;<code>create user root with password '123456'</code> <br>
&ensp;&ensp;&ensp;&ensp;<code>grant all privileges on test to root</code> <br>
</p>
<p>部署InfluxDB2数据库。推荐安装最新版,已不支持InfluxDB1.x:</p>
</li>
<li>
<p>分别修改server和agent文件夹里的配置文件 <code>config.ini</code></p>
Expand Down Expand Up @@ -146,7 +128,6 @@ <h2>注意</h2>
<li>服务器上的<code>sysstat</code>必须是新版本,当前测试使用的版本是12,如不支持,请<a href="http://sebastien.godard.pagesperso-orange.fr/download.html">下载安装</a></li>
<li>统计监控数据时,对监控数据进行排序,使用js排序,默认使用自带的排序算法(冒泡排序)排序,如果觉得慢,可以使用快速排序算法,可在<code>plot_port.js</code><code>plot_system.js</code>中按需修改;快速排序算法可能会导致堆栈溢出。</li>
<li>当前程序几乎可以运行在任何可以运行python的linux系统上,已测试过的系统<code>CentOS</code><code>Ubuntu</code><code>中标麒麟</code><code>银河麒麟</code>,支持<code>X86_64</code><code>ARM</code>架构。</li>
<li>如果你遇到了<a href="https://github.com/leeyoshinari/performance_monitor/issues/8" target="_blank">这个问题 #8 </a>,请把<code>draw_performance1.py</code>重命名成<code>draw_performance.py</code>,把<code>performance_monitor1.py</code>重命名成<code>performance_monitor.py</code>。如果你知道这个问题的解决方法,麻烦告诉我,万分感谢。</li>
</ol>
</div>
{% endblock %}

0 comments on commit 3353e73

Please sign in to comment.