ES8怎么关闭HTTPS
时间: 2024-05-23 10:13:31 浏览: 8
ES8(ECMAScript 2017)是 JavaScript 的一个版本,它并没有直接与 HTTPS 相关。HTTPS 是一种 HTTP 协议的安全版本,它使用 SSL 或 TLS 来加密数据传输。因此,关闭 HTTPS 实际上是指关闭服务器上的 SSL 或 TLS。
要关闭 HTTPS,你需要编辑服务器上的配置文件,以便在服务器上停用 SSL 或 TLS。具体来说,你需要找到用于启用 HTTPS 的配置块,并将其注释掉或删除。在 Apache 服务器中,你可以在 Apache 的配置文件中找到这些配置块。在 Nginx 服务器中,你可以在 Nginx 的配置文件中找到这些配置块。
请注意,关闭 HTTPS 可能会使你的网站变得不安全,因为它会使数据在传输过程中变得易于被窃取。因此,在关闭 HTTPS 之前,请确保你已经考虑过安全问题,并采取相应的措施来保护你的网站。
相关问题
ES8 https證書
ES8的https证书是通过以下步骤获取的:首先,申请者使用自己的身份与公钥生成CSR文件(certificate signing request),请求CA给自己颁发用CA私钥签名过的证书;然后,CA验证申请者身份;接下来,CA使用自己的私钥,对申请者的身份、公钥做摘要,并对摘要进行签名,附在身份、公钥之后,生成证书;最后,其他用户在与SSL证书拥有者通信时,使用CA的公钥验证证书上的签名是CA私钥签的,从而确定身份与公钥是发送者本人的,而非经过第三方修改(中间人攻击)。
ES8.x版本中自带了jdk,所以无需安装也可以正常运行ES。第一次启动后,可访问https://10.230.36.35:9200,初始账号为elastic;修改密码可执行: ./elasticsearch-reset-password --username elastic -i 。
ES8的https证书是使用自签证书的https协议进行连接的,认证方式有两种,一种是账号密码,另一种是es服务端授权的API Key。可以根据具体需求选择合适的认证方式。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Elasticsearch 8.4.1 配置自签名证书和启用Https](https://blog.csdn.net/ximenjianxue/article/details/128034565)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [java与es8实战之五:SpringBoot应用中操作es8(带安全检查:https、账号密码、API Key)](https://blog.csdn.net/boling_cavalry/article/details/125712512)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
docker 安装 ES8
以下是在Docker中安装ES8的步骤:
1. 创建一个Docker网络
```shell
docker network create elastic
```
2. 拉取ES8的Docker镜像
```shell
docker pull docker.elastic.co/elasticsearch/elasticsearch:8.0.0
```
3. 运行ES8容器
```shell
docker run -d --name es02 --net elastic -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:8.0.0
```
4. 验证ES8是否正常运行
```shell
curl http://localhost:9200
```
如果ES8正常运行,你应该会看到类似以下的输出:
```json
{
"name" : "es02",
"cluster_name" : "docker-cluster",
"cluster_uuid" : "xxxxxxxxxxxxxxxxxxxx",
"version" : {
"number" : "8.0.0",
"build_flavor" : "default",
"build_type" : "docker",
"build_hash" : "xxxxxxxxxxxxxxxxxxxx",
"build_date" : "2021-11-11T22:08:13.918371Z",
"build_snapshot" : false,
"lucene_version" : "11.1.0",
"minimum_wire_compatibility_version" : "7.15.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "You Know, for Search"
}
```
5. 拉取Kibana8的Docker镜像
```shell
docker pull kibana:8.0.0
```
6. 运行Kibana8容器
```shell
docker run -d --name kb02 --net elastic -p 5601:5601 kibana:8.0.0
```
7. 验证Kibana8是否正常运行
在浏览器中打开 http://localhost:5601 ,如果Kibana8正常运行,你应该会看到Kibana8的欢迎页面。
相关推荐
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)