GG修改器破解版下载地址:https://ghb2023zs.bj.bcebos.com/gg/xgq/ggxgq?GGXGQ
大家好,今天小编为大家分享关于GG免root框架修改器64位的内容,赶快来一起来看看吧。
export ES_HOME=/software/elasticsearch-8.1.0
export ES_JAVA_HOME=/software/jdk-17.0.2
useradd elastic
chown elastic /software/elasticsearch-8.1.0 -R
查看当前用户文件数限制
ulimit -n
vi /etc/security/limits.conf 文件最后添加两行
elastic soft nofile 65536
elastic hard nofile 65536
将elastic用户的文件数限制调整为65536
vi /etc/sysctl.conf 文件最后添加一行
vm.max_map_count=655360
使用sysctl -p使系统配置生效
vi config/elasticsearch.yml
修改两项host
network.host: 192.168.91.133
discovery.seed_hosts: ["192.168.91.133"]
并在文件最后添加一行
ingest.geoip.downloader.enabled: false
su elastic
cd /software/elasticsearch-8.1.0
./bin/elasticsearch
首次启动后控制台会打印出一些预设置的log信息,以及会在elasticsearch.yml配置文件的的最后面增加SECURITY相关配置,可以不用理会,因为需要使用时可用脚本工具去修改默认生成的一些配置信息;
第一次启动完成后会自动生成一些信息,接下来修改一下默认密码
bin/elasticsearch-reset-password --username elastic -i
elastic8888
xpack.security.http.ssl:
enabled: false
curl -u elastic:elastic8888 http://192.168.91.133:9200
{
"name" : "localhost.localdomain",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "W4dJfYBGTOyJr2S1w2W8Hg",
"version" : {
"number" : "8.1.0",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "3700f7679f7d95e36da0b43762189bab189bc53a",
"build_date" : "2022-03-03T14:20:00.690422633Z",
"build_snapshot" : false,
"lucene_version" : "9.0.0",
"minimum_patibility_version" : "7.17.0",
"minimum_patibility_version" : "7.0.0"
},
"tagline" : "You Know, for Search"
}
此时是未开启ssl的情况下可以正常访问,同时也可以开启ssl完成请求
打开config/elasticsearch.yml中可以看到配置项xpack.security.http.ssl.keystore.path: certs/http.p12,此http.p12证书为默认生成的,使用脚本工具重新生成一份替换它,生成命令如下
./bin/elasticsearch-certutil http
Generate a CSR? [y/N] N
Use an existing CA? [y/N] N
Do you wish to change any of these options? [y/N] y
CA Name [CN=Elasticsearch HTTP CA] www.
CA password: [<ENTER> for none] 123456
Repeat password to confirm: 123456
For how long should your certificate be valid? [5y] [ENTER]
Generate a certificate per node? [y/N]N
Enter all the hostnames that you need, one per line.
When you are done, press <ENTER> once more to move on to the next step.
www.
You entered the following hostnames.
- www.
Is this correct [Y/n]Y
Key Name: www.
Subject DN: CN=www, DC=minxyz,
Key Size: 2048
Do you wish to change any of these options? [y/N]N
If you wish to use a blank password, simply press <enter> at the prompt below.
Provide a password for the "http.p12" file: [<ENTER> for none] 123456
Repeat password to confirm: 123456
What filename should be used for the output zip file? [/software/elasticsearch-8.1.0/elasticsearch-ssl-http.zip] [ENTER]
Zip file written to /software/elasticsearch-8.1.0/elasticsearch-ssl-http.zip
解压elasticsearch-ssl-http.zip后,在目录elasticsearch中可以看到新生成的文件http.p12,将其替换掉config/cert/http.p12,由于生成此证书时密码为123456,所以需要重新设置keystore的密码(需注意不是在配置文件上添加密码配置项),命令如下
./bin/elasticsearch-keystore add "xpack.security.http.ssl.keystore.secure_password"
重新打开ssl配置
xpack.security.http.ssl:
enabled: true
配置hosts为192.168.91.133 www.(此域名为任意定义的),重启elasticsearch,此时需要使用https来访问ES,可以先增加-k参数允许不使用证书连接到SSL站点(若浏览器可以强制访问不安全的地址)
curl -k -u elastic:elastic8888 https://www.:9200
{
"name" : "localhost.localdomain",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "W4dJfYBGTOyJr2S1w2W8Hg",
"version" : {
"number" : "8.1.0",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "3700f7679f7d95e36da0b43762189bab189bc53a",
"build_date" : "2022-03-03T14:20:00.690422633Z",
"build_snapshot" : false,
"lucene_version" : "9.0.0",
"minimum_patibility_version" : "7.17.0",
"minimum_patibility_version" : "7.0.0"
},
"tagline" : "You Know, for Search"
}
若需要安全访问,需要增加证书配置,通过以下命令生成http.pem后,使用http.pem证书完成https请求访问
openssl pkcs12 -nodes -in http.p12 -out http.pem
curl --cert ./http.pem --cacert ./http.pem -u elastic:elastic8888 https://www.:9200
在浏览器上需要安全访问,可将http.p12证书安装到根证书目录下之后访问
由于直接使用curl操作相对较麻烦,临时扩展定义一个ecurl别名,如下(后面即可用ecurl简化操作)
alias ecurl=’curl --cert ./http.pem --cacert ./http.pem -u elastic:elastic8888’
ecurl https://www.:9200
ecurl https://www.:9200/_cat/indices?v
ecurl -X PUT https://www.:9200/user-index
ecurl -X PUT -H "content-type:application/json;charset=utf-8" https://www.:9200/user-index/_settings -d "{"number_of_replicas": 0}"
ecurl https://www.:9200/user-index/_mapping?pretty
ecurl -X POST --cert ./http.pem --cacert ./http.pem -u elastic:elastic8888 -H "content-type:application/json;charset=utf-8" https://www.:9200/user-index/_mapping -d
"{
"properties": {
"name": {
"type": "keyword"
},
"type": {
"type": "integer"
},
"content": {
"type": "text"
}
}
}"
ecurl -X POST -H "content-type:application/json;charset=utf-8" https://www.:9200/user-index/_create/1 -d "{"name":"测试姓名","type":100,"content":"测试永远滴神啊。。。"}"
ecurl https://www.:9200/user-index/_doc/1?pretty
或
ecurl https://www.:9200/user-index/_search?q=_id:1
ecurl -X POST -H "Content-Type:application/json;charset=UTF-8" "https://www.:9200/user-index/_search?pretty" -d "{"query":{"match_all":{}}}"
ecurl -X POST -H "content-type:application/json;charset=utf-8" https://www.:9200/user-index/_search?pretty -d
"{
"query": {
"match": {
"content": "永远滴神"
}
}
}"
ecurl -X DELETE https://www.:9200/user-index/_doc/1?pretty
ecurl https://www.:9200/_settings/_all?pretty
ecurl https://www.:9200/user-index/_settings?pretty
创建索引别名
ecurl -X POST -H "content-type:application/json;charset=utf-8" https://www.:9200/_aliases -d’
{
"actions": [{
"add": {
"index": "test-create-3",
"alias": "article-index-master"
}
}
]
}
’
查看索引别名
ecurl https://www.:9200/_aliases?pretty
删除索引别名
ecurl -X POST https://www.:9200/_aliases -H ’Content-Type: application/json’ -d’
{
"actions": [
{
"remove": {
"index": "test-create-3",
"aliases": "article-index-master"
}
}
]
}
’
ecurl -X DELETE https://www.:9200/user-index
ecurl https://www.:9200/_cat/shards?v
ecurl https://www.:9200/_cluster/health?pretty=true
ecurl -X GET "https://www.:9200/_cluster/allocation/explain?pretty" -H ’Content-Type: application/json’ -d’
{
"index": "user-index",
"shard": 0,
"primary": false,
"current_node": "localhost.localdomain"
}
’
ecurl https://www.:9200/_cat/allocation?v
安装中文分词插件sudo bin/elasticsearch-plugin install analysis-,安装成功后重启es
ecurl -X POST -H ’Content-Type: application/json’ https://www.:9200/_analyze?pretty -d’
{
"analyzer":"",
"text":"测试永远滴神啊。。。"
}’
./elasticsearch-plugin install https:///medcl/elasticsearch-analysis-ik/releases/download/v8.1.0/elasticsearch-analysis-ik-8.1.0.zip
比如要将“永远滴神”定义为一个词,需要在配置IKAnalyzer.cfg.xml中指定<entry key=”ext_dict”>customer.dic</entry>,然后创建文件customer.dic,并添加一行“永远滴神”,重启后再次访问即可看到分词结果
ecurl -X POST -H ’Content-Type: application/json’ https://www.:9200/_analyze?pretty -d’
> {
> "analyzer":"ik_smart",
> "text":"测试永远滴神啊。。。"
> }’
{
"tokens" : [
{
"token" : "测试",
"start_offset" : 0,
"end_offset" : 2,
"type" : "CN_WORD",
"position" : 0
},
{
"token" : "永远滴神",
"start_offset" : 2,
"end_offset" : 6,
"type" : "CN_WORD",
"position" : 1
},
{
"token" : "啊",
"start_offset" : 6,
"end_offset" : 7,
"type" : "CN_CHAR",
"position" : 2
}
]
}
以上就是关于GG免root框架修改器64位的全部内容,感谢大家的浏览观看,如果你喜欢本站的文章可以CTRL+D收藏哦。
暴走大侠gg修改器使用教程,暴走大侠gg修改器怎么用教学 大小:6.72MB7,014人安装 某一天你打开手机,发现手机变成了一个自助投胎系统,你心想终于可以结束屌丝人生开……
下载gg修改器免root版的网址,GG修改器免Root版-让你的游戏更畅享 大小:7.89MB5,887人安装 GG修改器是一款专门为游戏玩家定制的修改工具,它可以通过修改游戏内部数据来实现游……
下载Gg修改器免root版最新版下载,gg修改器免root版中文版 大小:1.07MB6,879人安装 没有足够的努力,就不要去谈未来以及梦想。 大家好,今天小编为大家分享关于Gg修改……
下载gg修改器无root中文,为什么GG修改器无root版是一款优秀的工具? 大小:14.64MB5,797人安装 随着智能手机技术的不断提升,越来越多的人开始玩手机游戏。但是,有些游戏存在一些……
下载gg修改器元气骑士最新,让元气骑士更好玩的神器gg修改器 大小:3.98MB5,461人安装 作为一款年轻人喜爱的竞技游戏,《元气骑士》在不断地推陈出新,提供更好玩的游戏体……
下载手机如何安装gg游戏修改器,让你畅玩游戏 手机如何安装gg游戏修改器 大小:12.25MB6,018人安装 作为一名游戏爱好者,有时候我们可能会遇到游戏瓶颈,总感觉差那么一点才能优秀地完……
下载gg修改器中文官网n_gg修改器中文版官网下载 大小:18.43MB6,799人安装 大家好,今天小编为大家分享关于gg修改器中文官网n_gg修改器中文版官网下载的内容,……
下载最新gg修改器怎么下载,最新gg修改器下载 大小:5.74MB5,535人安装 最新gg修改器是一款非常好用的游戏辅助工具,它可以帮助玩家轻松地修改游戏数据,提……
下载gg修改器最新版2022,GG修改器最新版下载-GG修改器官方汉化版下载v82 大小:4.75MB6,811人安装 GG修改器汉化版是一款强大的手机游戏修改神器,完全免费使用,没有广告,安全可靠,……
下载免root游戏gg修改器_gg修改器怎么免root版 大小:6.56MB6,870人安装 大家好,今天小编为大家分享关于免root游戏gg修改器_gg修改器怎么免root版的内容,……
下载