当前位置: 首页 > news >正文

怎样优化网站企业邮箱申请

怎样优化网站,企业邮箱申请,青海海东平安县建设局网站,wordpress菜单顶部安装elasticsearch rpm包安装 下载地址 https://mirrors.aliyun.com/elasticstack/7.x/yum/7.10.2/ 生成证书 #1.生成CA证书 # 生成CA证书,执行命令后,系统还会提示你输入密码,可以直接留空 cd /usr/share/elasticsearch/bin ./elasticsearch-certutil ca#会在/usr/share/el…

安装elasticsearch

rpm包安装
下载地址
https://mirrors.aliyun.com/elasticstack/7.x/yum/7.10.2/

生成证书

#1.生成CA证书
# 生成CA证书,执行命令后,系统还会提示你输入密码,可以直接留空
cd /usr/share/elasticsearch/bin
./elasticsearch-certutil ca#会在/usr/share/elasticsearch/下生成一个elastic-stack-ca.p12文件
ls -l /usr/share/elasticsearch/
-rw-------. 1 elastic elastic 2527 May 21 14:29 elastic-stack-ca.p12#2.根据elastic-stack-ca.p12文件 生成elastic-certificates.p12
# 生成证书和私钥,系统还会提示你输入密码,你可以输入证书和密钥的密码,也可以留空
cd /usr/share/elasticsearch/
./bin/elasticsearch-certutil cert --ca elastic-stack-ca.p12

把生成的证书放到 /etc/elasticsearch/目录下,并授权

不加认证,启动集群模式

egrep -v “#|^$” /etc/elasticsearch/elasticsearch.yml

cluster.name: es
node.name: es1
path.data: /app/es/data
path.logs: /app/es/log
network.host: 0.0.0.0
node.master: true
node.data: true
discovery.seed_hosts: ["172.17.13.10:9300", "172.17.13.11:9300", "172.17.13.12:9300"]
cluster.initial_master_nodes: ["es1", "es2", "es3"]
discovery.zen.minimum_master_nodes: 2
http.cors.enabled: true
http.cors.allow-origin: "*"
#xpack.security.enabled: true
#xpack.security.transport.ssl.enabled: true
#xpack.security.transport.ssl.verification_mode: certificate
#xpack.security.transport.ssl.keystore.path: elastic-certificates.p12
#xpack.security.transport.ssl.truststore.path: elastic-stack-ca.p12
http.cors.allow-headers: Authorization,X-Requested-With,Content-Length,Content-Type

启动集群,查看状态

curl -XGET  "http://127.0.0.1:9200/_cat/nodes"

添加认证和证书,重启集群

egrep -v “#|^$” /etc/elasticsearch/elasticsearch.yml

cluster.name: es
node.name: es1
path.data: /app/es/data
path.logs: /app/es/log
network.host: 0.0.0.0
node.master: true
node.data: true
discovery.seed_hosts: ["172.17.13.10:9300", "172.17.13.11:9300", "172.17.13.12:9300"]
#cluster.initial_master_nodes: ["es1", "es2", "es3"]
discovery.zen.minimum_master_nodes: 2
http.cors.enabled: true
http.cors.allow-origin: "*"
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: elastic-certificates.p12
xpack.security.transport.ssl.truststore.path: elastic-stack-ca.p12
http.cors.allow-headers: Authorization,X-Requested-With,Content-Length,Content-Type

设置口令

./bin/elasticsearch-setup-passwords interactive

查看集群信息

curl -XGET -u elastic:123456 "http://127.0.0.1:9200/_cluster/health?pretty"
curl -XGET -u elastic:123456 "http://127.0.0.1:9200/_cat/nodes"

kibana

vim /etc/kibana/kibana.yml

server.port: 5601
server.host: 0.0.0.0
elasticsearch.hosts: ["http://192.168.0.11:9200","http://192.168.0.12:9200","http://192.168.0.13:9200"]
xpack.security.enabled: true
kibana.index: ".kibana"
i18n.locale: "zh-CN"
elasticsearch.username: "elastic"
elasticsearch.password: "123456"
http://www.dt0577.cn/news/55445.html

相关文章:

  • 闵行区网站制作昆明网站seo优化
  • 商务网站建设流程免费发布广告
  • 广告网站建设最专业淘宝的前100个关键词排名
  • 建网站需要哪些费用网店代运营公司哪家好
  • wordpress 书站软文技巧
  • 订阅号怎么做微网站百度关键词搜索怎么做
  • 上海cms建站国内免费建网站
  • 自己做的网站加载不出验证码b站引流推广网站
  • wordpress七牛cdn w3tc网站优化排名金苹果下拉
  • 苏州做门户网站的公司引擎seo优
  • 做交易网站需要办什么证游戏推广公司好做吗
  • 自己有一个域名怎么做网站长岭网站优化公司
  • h5手机网站模板下载站长网站工具
  • 网站地图的使用百度搜索排名优化哪家好
  • 做网站投广告攻略沈阳seo博客
  • 福永做网站的公司优化百度搜索
  • 成功的网站设计手机做网页的软件
  • jsp网站开发可行性分析怎么在百度发布自己的文章
  • 网站托管服务协议广州疫情升级
  • 拖拽做网站网站seo教材
  • 政府网站建设情况介绍百度免费
  • 毕业设计做网站教程网推接单平台
  • 北京博洛尼装饰公司产品seo基础优化
  • 顺义公司网站建设阐述网络推广的主要方法
  • 音乐展示网站建设平台做推广公司
  • 沈阳网站备案照相郑州网络推广效果
  • 重庆轨道交通最新西安关键字优化哪家好
  • 用二级域名做网站群百度贴吧人工客服
  • 昆山网页设计公司seo网站优化系统
  • 宜昌网站开发焊工培训技术学校