Skip to content

Commit bc131f9

Browse files
committed
(付政委)<配置更新> #config配置内容更新
1 parent f4f2fff commit bc131f9

File tree

7 files changed

+164
-4
lines changed

7 files changed

+164
-4
lines changed

CNAME

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bugstack.cn

_config.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,12 @@ navs:
7979
label: 首页
8080

8181
- href: /
82-
label: 编程基础
82+
label: Java
8383
target: _self
8484
subnav:
85+
-
86+
subHref: /itstack-demo-any/itstack-demo-any.html
87+
subLabel: 编程基础
8588
-
8689
subHref: /itstack-demo-springcloud/itstack-demo-springcloud.html
8790
subLabel: Spring Cloud

_includes/footer.html

+11-3
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,17 @@
5454
<script src="/assets/js/{{javascript}}"></script>
5555
{% endfor %}
5656

57-
<!-- Cnzz Analytics -->
57+
<!-- 百度统计 -->
5858
<div style="display:none">
59-
<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? "https://" : "http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1277973383'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s9.cnzz.com/z_stat.php%3Fid%3D1277973383' type='text/javascript'%3E%3C/script%3E"));</script>
59+
<script>
60+
var _hmt = _hmt || [];
61+
(function() {
62+
var hm = document.createElement("script");
63+
hm.src = "https://hm.baidu.com/hm.js?0b31b4c146bf7126aed5009e1a4a11c8";
64+
var s = document.getElementsByTagName("script")[0];
65+
s.parentNode.insertBefore(hm, s);
66+
})();
67+
</script>
6068
</div>
61-
<!-- Cnzz Analytics -->
69+
<!-- 百度统计 -->
6270
</footer>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<div class="row">
2+
3+
<div class="col-md-12">
4+
5+
<ul id="posts-list">
6+
{% for post in site.posts %}
7+
{% if post.category=='itstack-demo-any' %}
8+
<li class="posts-list-item">
9+
<div class="posts-content">
10+
<span class="posts-list-meta">{{ post.date | date: "%Y-%m-%d" }}</span>
11+
<a class="posts-list-name bubble-float-left" href="{{ site.url }}{{ post.url }}">{{ post.title }}</a>
12+
<span class='circle'></span>
13+
</div>
14+
</li>
15+
{% endif %}
16+
{% endfor %}
17+
</ul>
18+
19+
<!-- Pagination -->
20+
{% include pagination.html %}
21+
22+
<!-- Comments -->
23+
<div class="comment">
24+
{% include comments.html %}
25+
</div>
26+
</div>
27+
28+
</div>
29+
<script>
30+
$(document).ready(function(){
31+
32+
// Enable bootstrap tooltip
33+
$("body").tooltip({ selector: '[data-toggle=tooltip]' });
34+
35+
});
36+
</script>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
layout: post
3+
category: itstack-demo-any
4+
title: windows环境下安装elasticsearch6.2.2
5+
tagline: by 付政委
6+
tag: [ddd,itstack-demo-any]
7+
---
8+
9+
## 前言介绍
10+
在windows环境下安装Elasticsearch 6.2.2
11+
12+
>ElasticSearch是一个基于Lucene的搜索服务器。它提供了一个分布式多用户能力的全文搜索引擎,基于RESTful web接口。Elasticsearch是用Java语言开发的,并作为Apache许可条款下的开放源码发布,是一种流行的企业级搜索引擎。ElasticSearch用于云计算中,能够达到实时搜索,稳定,可靠,快速,安装使用方便。官方客户端在Java、.NET(C#)、PHP、Python、Apache Groovy、Ruby和许多其他语言中都是可用的。根据DB-Engines的排名显示,Elasticsearch是最受欢迎的企业搜索引擎,其次是Apache Solr,也是基于Lucene。
13+
14+
## 安装环境
15+
**1、Elasticsearch 6.2.2 下载** [https://www.elastic.co/cn/downloads/past-releases/elasticsearch-6-2-2](https://www.elastic.co/cn/downloads/past-releases/elasticsearch-6-2-2)
16+
![](https://fuzhengwei.github.io/assets/images/pic-content/2019/08/elasticsearch6.6.2.png)
17+
18+
**2、JDK 1.8 (jdk1.7及以下不能支持Elasticsearch)下载** [https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html](https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
19+
![](https://fuzhengwei.github.io/assets/images/pic-content/2019/08/es-3.png)
20+
21+
**3、安装cmd进入elasticsearch-6.2.2\bin,执行elasticsearch.bat**
22+
![](https://fuzhengwei.github.io/assets/images/pic-content/2019/08/es-1.png)
23+
24+
**4、启动完成后打开http://localhost:9200 {默认端口9200}**
25+
![](https://fuzhengwei.github.io/assets/images/pic-content/2019/08/es-2.png)
26+
27+
------------
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
---
2+
layout: post
3+
category: itstack-demo-any
4+
title: elasticsearch-head插件安装
5+
tagline: by 付政委
6+
tag: [ddd,itstack-demo-any]
7+
---
8+
9+
## 前言介绍
10+
安装Elasticsearch的head插件,用于方便操作Elasticsearch
11+
12+
>elasticsearch-head 是用于监控 Elasticsearch 状态的客户端插件,包括数据可视化、执行增删改查操作等。elasticsearch-head 插件的安装在 Linux 和 Windows 没什么区别,安装之前确保当前系统已经安装 nodejs 即可。
13+
14+
## 安装环境
15+
1、安装[node.js](https://nodejs.org/en/download/)并配置环境变量PATH{path:D:\Program Files\nodejs\}
16+
17+
- [nodejs下载](https://nodejs.org/en/download/)
18+
![](https://fuzhengwei.github.io/assets/images/pic-content/2019/08/nodejs.png)
19+
- 执行安装,配置环境变量{path:D:\Program Files\nodejs\}
20+
![](https://fuzhengwei.github.io/assets/images/pic-content/2019/08/nodejspath.png)
21+
- 查看nodejs版本;node -v
22+
![](https://fuzhengwei.github.io/assets/images/pic-content/2019/08/nodejsversion.png)
23+
24+
2、安装elasticsearch-head
25+
- [下载elasticsearch-head](https://github.com/mobz/elasticsearch-head)
26+
- 将elasticsearch-head放到与elasticsearch同层级文件夹下
27+
- 修改elasticsearch-head/Gruntfile.js
28+
```xml
29+
connect: {
30+
server: {
31+
options: {
32+
port: 9100,
33+
base: '.',
34+
keepalive: true
35+
}
36+
}
37+
}
38+
```
39+
- 修改elasticsearch-6.2.2/config/elasticsearch.yml *添加配置信息
40+
```xml
41+
http.cors.enabled: true
42+
http.cors.allow-origin: "*"
43+
```
44+
45+
3、启动elasticsearch-head
46+
```java
47+
Microsoft Windows [版本 6.1.7601]
48+
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
49+
50+
C:\Users\user>node -v
51+
v10.16.0
52+
53+
C:\Users\user>D:
54+
55+
D:\>cd D:\Program Files\elasticsearch\head
56+
57+
D:\Program Files\elasticsearch\head>npm run start
58+
59+
> elasticsearch-head@0.0.0 start D:\Program Files\elasticsearch\head
60+
> grunt server
61+
62+
Running "connect:server" (connect) task
63+
Waiting forever...
64+
Started connect web server on http://localhost:9100
65+
66+
```
67+
**运行结果**
68+
![](https://fuzhengwei.github.io/assets/images/pic-content/2019/08/eshead.png)
69+
70+
------------
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
layout: page
3+
title: 基础编程
4+
titlebar: java
5+
subtitle: <span class="mega-octicon octicon-cloud-download"></span>&nbsp;&nbsp;
6+
<a href ="https://github.com/fuzhengwei">更多编程专题案例 , <font color="#EB9439">点我</font>查看!</a><br/><br/>
7+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
8+
<a href ="/assets/images/qrcode.png">微信搜索:<font color="#00FF00">bugstack虫洞栈</font>,关注公众号点击“关于->加群交流”。</a>
9+
menu: java
10+
css: ['blog-page.css']
11+
permalink: /itstack-demo-any/itstack-demo-any
12+
keywords: java,基础编程
13+
---
14+
15+
{% include itstack-demo-any/itstack-demo-any.html %}

0 commit comments

Comments
 (0)