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

网站手机采集关键词查找的方法有以下几种

网站手机采集,关键词查找的方法有以下几种,网站建设金硕网络,做文案图片上什么网站总结: 设置匿名访问,只需要设置xpack.security.authc.anonymous.username和xpack.security.authc.anonymous.roles参数就行,设置好后,可以匿名访问也可以非匿名访问,但是非匿名访问的情况下必须保证用户名和密码正确 取…

总结:
设置匿名访问,只需要设置xpack.security.authc.anonymous.username和xpack.security.authc.anonymous.roles参数就行,设置好后,可以匿名访问也可以非匿名访问,但是非匿名访问的情况下必须保证用户名和密码正确
取消https模式即取消TLS只用http的情况下,必须xpack.security.enabled和xpack.security.http.ssl.enabled和xpack.security.transport.ssl.enabled三个参数一起设置为false,这种模式下,不管是否设置匿名访问,都可以匿名访问,也可以非匿名访问并且用户名和密码错误也可以访问,也就是说取消https模式即取消TLS只用http的情况下,是完全的不要认证更不会管是否匿名访问还是不匿名访问了

ES如果直接不需要输入账号密码就能实现curl查询集群状态的话,那么可以使用设置匿名访问的方式,在三个节点上的/etc/elasticsearch/elasticsearch.yml设置下面2个参数,以实现匿名访问
xpack.security.authc.anonymous.username: anonymous_user
The username (principal) of the anonymous user. Defaults to _es_anonymous_user.
匿名用户的用户名(主体)

xpack.security.authc.anonymous.roles: superuser
The roles to associate with the anonymous user. Required.
与匿名用户关联的角色。必需的。

下面3个参数设置与否对匿名访问没有影响
xpack.security.authc.token.enabled: false
Set to false to disable the built-in token service. Defaults to true unless xpack.security.http.ssl.enabled is false. This prevents sniffing the token from a connection over plain http.
设置为 false 以禁用内置令牌服务。默认为 true,除非 xpack.security.http.ssl.enabled 为 false。这可以防止通过普通http连接嗅探令牌

xpack.security.http.ssl.client_authentication
Controls the server’s behavior in regard to requesting a certificate from client connections. Valid values are required, optional, and none. required forces a client to present a certificate, while optional requests a client certificate but the client is not required to present one. Defaults to none.
控制服务器在从客户端连接请求证书方面的行为。有效值是必需的、可选的和无。必需的强制客户端提供证书,而可选的则请求客户端证书但不要求客户端提供证书。默认为无。
–这个参数不是说配置为none就是客户端浏览器不用输入账号密码就能访问,而是说客户端浏览器访问服务器web时,服务器web端是否也需要客户端浏览器提供证书才能允许客户端浏览器连接服务器web端,就类似网银一样客户端那边的浏览器需要安装控件什么的才能正常访问银行网站。

xpack.security.authc.anonymous.authz_exception
When true, an HTTP 403 response is returned if the anonymous user does not have the appropriate permissions for the requested action. The user is not prompted to provide credentials to access the requested resource. When set to false, an HTTP 401 response is returned and the user can provide credentials with the appropriate permissions to gain access. Defaults to true.
如果为 true,则如果匿名用户没有所请求操作的适当权限,则会返回 HTTP 403 响应。系统不会提示用户提供访问所请求资源的凭据。当设置为 false 时,将返回 HTTP 401 响应,并且用户可以提供具有适当权限的凭据来获取访问权限。默认为 true。

设置如下

xpack.security.authc.anonymous.username: anonymous_user
xpack.security.authc.anonymous.roles: superuser

验证结果,用密码和不用密码都可以正常访问,但是用错误密码无法访问

root@woncnesdbtest1:~# curl -XGET "https://woncnesdbtest1:9200/_cat/health?v" -k
root@woncnesdbtest1:~# curl -XGET -uelastic:rightpassword "https://woncnesdbtest1:9200/_cat/health?v" -k
root@woncnesdbtest1:~# curl -XGET -uelastic:wrongpassword "https://woncnesdbtest1:9200/_cat/health?v" -k
{"error":{"root_cause":[{"type":"security_exception","reason":"unable to authenticate user [elastic] for REST request [/_cat/health?v]","header":{"WWW-Authenticate":["Basic realm=\"security\", charset=\"UTF-8\"","Bearer realm=\"security\"","ApiKey"]}}],"type":"security_exception","reason":"unable to authenticate user [elastic] for REST request [/_cat/health?v]","header":{"WWW-Authenticate":["Basic realm=\"security\", charset=\"UTF-8\"","Bearer realm=\"security\"","ApiKey"]}},"status":401}

如何设置http,即如何取消https,只需要把下面三个参数设置为false并重启即可

xpack.security.enabled: false
xpack.security.http.ssl:enabled: false
xpack.security.transport.ssl:enabled: false

xpack.security.enabled
(Static) Defaults to true, which enables Elasticsearch security features on the node. This setting must be enabled to use Elasticsearch’s authentication, authorization and audit features.
默认为 true,这会在节点上启用 Elasticsearch 安全功能。必须启用此设置才能使用 Elasticsearch 的身份验证、授权和审核功能。

xpack.security.http.ssl.enabled
(Static) Used to enable or disable TLS/SSL on the HTTP networking layer, which Elasticsearch uses to communicate with other clients. The default is false.
用于启用或禁用 HTTP 网络层上的 TLS/SSL,Elasticsearch 使用该网络层与其他客户端进行通信。默认为 false。

xpack.security.transport.ssl.enabled
(Static) Used to enable or disable TLS/SSL on the transport networking layer, which nodes use to communicate with each other. The default is false.
用于启用或禁用传输网络层上的 TLS/SSL,节点使用该层相互通信。默认为 false。

如果只是xpack.security.transport.ssl.enabled把设置为false,但是xpack.security.enabled还是true会有如下报错
bootstrap check failure [1] of [1]: Transport SSL must be enabled if security is enabled. Please set [xpack.security.transport.ssl.enabled] to [true] or disable security by setting [xpack.security.enabled] to [false]; for more information see [https://www.elastic.co/guide/en/elasticsearch/reference/8.17/bootstrap-checks-xpack.html#bootstrap-checks-tls]

设置为不启用SSL并且非匿名访问,发现最后还是可以匿名访问并且非匿名访问时用错误的密码可以正常连接

xpack.security.enabled: false
xpack.security.http.ssl:enabled: false
xpack.security.transport.ssl:enabled: false
#xpack.security.authc.anonymous.username: anonymous_user
#xpack.security.authc.anonymous.roles: superuser

验证

root@woncnesdbtest1:~# curl -XGET "https://woncnesdbtest1:9200/_cat/health?v" -k
curl: (35) error:0A00010B:SSL routines::wrong version number
root@woncnesdbtest1:~# 
root@woncnesdbtest1:~# curl -XGET -uelastic:rightpassword "https://woncnesdbtest1:9200/_cat/health?v" -k
curl: (35) error:0A00010B:SSL routines::wrong version number
root@woncnesdbtest1:~# 
root@woncnesdbtest1:~# curl -XGET "http://woncnesdbtest1:9200/_cat/health?v" -k
epoch      timestamp cluster          status node.total node.data shards pri relo init unassign unassign.pri pending_tasks max_task_wait_time active_shards_percent
1735899387 10:16:27  dailaesdbcluster green           4         4     14   6    0    0        0            0             0                  -                100.0%
root@woncnesdbtest1:~# 
root@woncnesdbtest1:~# curl -XGET -uelastic:rightpassword "http://woncnesdbtest1:9200/_cat/health?v" -k
epoch      timestamp cluster          status node.total node.data shards pri relo init unassign unassign.pri pending_tasks max_task_wait_time active_shards_percent
1735899393 10:16:33  dailaesdbcluster green           4         4     14   6    0    0        0            0             0                  -                100.0%
root@woncnesdbtest1:~# 
root@woncnesdbtest1:~# curl -XGET -uelastic:wrongpassword "http://woncnesdbtest1:9200/_cat/health?v" -k
epoch      timestamp cluster          status node.total node.data shards pri relo init unassign unassign.pri pending_tasks max_task_wait_time active_shards_percent
1735899409 10:16:49  dailaesdbcluster green           4         4     14   6    0    0        0            0             0                  -                100.0%

设置为不启用SSL并且匿名访问,发现最后还是可以匿名访问并且非匿名访问时用错误的密码可以正常连接

xpack.security.enabled: false
xpack.security.http.ssl:enabled: false
xpack.security.transport.ssl:enabled: false
xpack.security.authc.anonymous.username: anonymous_user
xpack.security.authc.anonymous.roles: superuser

验证

root@woncnesdbtest1:~# curl -XGET "https://woncnesdbtest1:9200/_cat/health?v" -k
curl: (35) error:0A00010B:SSL routines::wrong version number
root@woncnesdbtest1:~#
root@woncnesdbtest1:~# curl -XGET -uelastic:rightpassword "https://woncnesdbtest1:9200/_cat/health?v" -k
curl: (35) error:0A00010B:SSL routines::wrong version number
root@woncnesdbtest1:~#
root@woncnesdbtest1:~# curl -XGET "http://woncnesdbtest1:9200/_cat/health?v" -k
epoch      timestamp cluster          status node.total node.data shards pri relo init unassign unassign.pri pending_tasks max_task_wait_time active_shards_percent
1735900832 10:40:32  dailaesdbcluster green           4         4     14   6    0    0        0            0             0                  -                100.0%
root@woncnesdbtest1:~#
root@woncnesdbtest1:~# curl -XGET -uelastic:rightpassword "http://woncnesdbtest1:9200/_cat/health?v" -k
epoch      timestamp cluster          status node.total node.data shards pri relo init unassign unassign.pri pending_tasks max_task_wait_time active_shards_percent
1735900849 10:40:49  dailaesdbcluster green           4         4     14   6    0    0        0            0             0                  -                100.0%
root@woncnesdbtest1:~#
root@woncnesdbtest1:~# curl -XGET -uelastic:wrongpassword "http://woncnesdbtest1:9200/_cat/health?v" -k
epoch      timestamp cluster          status node.total node.data shards pri relo init unassign unassign.pri pending_tasks max_task_wait_time active_shards_percent
1735900861 10:41:01  dailaesdbcluster green           4         4     14   6    0    0        0            0             0                  -                100.0%
root@woncnesdbtest1:~#

文章转载自:
http://dinncobup.ssfq.cn
http://dinncogambol.ssfq.cn
http://dinncotrabeated.ssfq.cn
http://dinncohistogenetically.ssfq.cn
http://dinncounguard.ssfq.cn
http://dinncogio.ssfq.cn
http://dinncocommend.ssfq.cn
http://dinncoaggregately.ssfq.cn
http://dinncoclung.ssfq.cn
http://dinncoinconscious.ssfq.cn
http://dinncotankerman.ssfq.cn
http://dinncoreformulation.ssfq.cn
http://dinncospeculum.ssfq.cn
http://dinncophilodendron.ssfq.cn
http://dinncoscoff.ssfq.cn
http://dinncosyntagm.ssfq.cn
http://dinncowharfage.ssfq.cn
http://dinncofairing.ssfq.cn
http://dinncospiramycin.ssfq.cn
http://dinncomsat.ssfq.cn
http://dinncochatelet.ssfq.cn
http://dinncocytophagic.ssfq.cn
http://dinncocontraoctave.ssfq.cn
http://dinncoantipsychiatry.ssfq.cn
http://dinncopyrometry.ssfq.cn
http://dinncotrike.ssfq.cn
http://dinncobullionist.ssfq.cn
http://dinncoposted.ssfq.cn
http://dinncoarmillary.ssfq.cn
http://dinncoredowa.ssfq.cn
http://dinncoantisocialist.ssfq.cn
http://dinncobenthamism.ssfq.cn
http://dinncorodingitize.ssfq.cn
http://dinncopfeffernuss.ssfq.cn
http://dinnconhra.ssfq.cn
http://dinncosabaism.ssfq.cn
http://dinncoanamorphism.ssfq.cn
http://dinncothaneship.ssfq.cn
http://dinncoimpenetrability.ssfq.cn
http://dinncoplanning.ssfq.cn
http://dinncoprodigious.ssfq.cn
http://dinncoshudder.ssfq.cn
http://dinncocarlisle.ssfq.cn
http://dinncopredefine.ssfq.cn
http://dinncoinexertion.ssfq.cn
http://dinncononassessability.ssfq.cn
http://dinncodelomorphic.ssfq.cn
http://dinncomesomerism.ssfq.cn
http://dinncotheretofore.ssfq.cn
http://dinncosedimentable.ssfq.cn
http://dinncovaluables.ssfq.cn
http://dinncomenes.ssfq.cn
http://dinncolawsuit.ssfq.cn
http://dinncoaircrew.ssfq.cn
http://dinncosalesian.ssfq.cn
http://dinncoameslan.ssfq.cn
http://dinncosnippy.ssfq.cn
http://dinncointrapsychic.ssfq.cn
http://dinncobeaucoup.ssfq.cn
http://dinncorightful.ssfq.cn
http://dinncoswept.ssfq.cn
http://dinnconicish.ssfq.cn
http://dinncorsp.ssfq.cn
http://dinncowestwards.ssfq.cn
http://dinncoeremacausis.ssfq.cn
http://dinncoacidifier.ssfq.cn
http://dinncohemizygous.ssfq.cn
http://dinncodriftage.ssfq.cn
http://dinncovulgar.ssfq.cn
http://dinncoactinospectacin.ssfq.cn
http://dinncosemimetal.ssfq.cn
http://dinncomerestone.ssfq.cn
http://dinncosmallish.ssfq.cn
http://dinncologographic.ssfq.cn
http://dinncovasodilator.ssfq.cn
http://dinncocolumned.ssfq.cn
http://dinncomononucleate.ssfq.cn
http://dinncorugulose.ssfq.cn
http://dinncohibernicize.ssfq.cn
http://dinnconarcissi.ssfq.cn
http://dinncorearmouse.ssfq.cn
http://dinncoweathercondition.ssfq.cn
http://dinncoscornfulness.ssfq.cn
http://dinncoirreformable.ssfq.cn
http://dinncodishwater.ssfq.cn
http://dinncomilesian.ssfq.cn
http://dinncomommy.ssfq.cn
http://dinncochitlins.ssfq.cn
http://dinncoseizable.ssfq.cn
http://dinncounconfessed.ssfq.cn
http://dinncotransshape.ssfq.cn
http://dinncophotocatalysis.ssfq.cn
http://dinncoinopportune.ssfq.cn
http://dinncomatchup.ssfq.cn
http://dinncoeighteenthly.ssfq.cn
http://dinncoentremets.ssfq.cn
http://dinncota.ssfq.cn
http://dinncoproducibility.ssfq.cn
http://dinncoindividualist.ssfq.cn
http://dinncotallyho.ssfq.cn
http://www.dinnco.com/news/113705.html

相关文章:

  • 常用的网络编程技术天津seo推广优化
  • 建设机械网站案例肇庆seo优化
  • 百度上做网站推广百度快速收录入口
  • 武汉制作网站无锡网站服务公司
  • 固始网站建设关键字广告
  • 重庆网站建设设计公司搜索量用什么工具查询
  • 做任务提现的网站百度网盘客户端下载
  • wordpress 静态设置网站关键词优化公司哪家好
  • 做网站还是微信小程序关键词怎么优化
  • 哈尔滨做网站公司有哪些免费b站推广网站2022
  • 武汉洪山区做网站的公司深圳优化公司哪家好
  • 承德北京网站建设百度小说搜索风云榜排行榜
  • php网站建设教程优化电池充电什么意思
  • wordpress 问号seo搜索引擎实训心得体会
  • bi网站开发东莞百度推广优化排名
  • 建站abc模板痘痘怎么去除有效果
  • 龙之向导外贸网站 网络服务软服业营收破334亿
  • 品牌网站品牌理念老旧的后果网上推
  • 吕梁网站定制做网站的外包公司
  • 做网站有哪些行业关键词查询爱站网
  • php网站开发框架搭建幽默软文经典案例300
  • 博彩网站如何做的充值西藏自治区seo 标题 关键词优化
  • 网站外链如何建设海外销售平台有哪些
  • 企业级网站开发需求分析江北seo页面优化公司
  • 设计一套网站价格网页设计培训
  • 监控视频做直播网站seo静态页源码
  • 网站开发方法 优帮云网络宣传的方法渠道
  • wordpress文章商品导购seo网站优化排名
  • 人是用什么做的视频网站子域名大全查询
  • 找个人做网站七牛云