主頁 >  其他 > docker搭建Elasticsearch-ik中文分詞器- 安裝Kibana Java中使用

docker搭建Elasticsearch-ik中文分詞器- 安裝Kibana Java中使用

2021-02-23 12:06:28 其他

前言:Elasticsearch 是一個開源的搜索引擎,建立在一個全文搜索引擎庫 Apache Lucene? 基礎之上, Lucene 可以說是當下最先進、高性能、全功能的搜索引擎庫—?無論是開源還是私有,

但是 Lucene 僅僅只是一個庫,為了充分發揮其功能,你需要使用 Java 并將 Lucene 直接集成到應用程式中, 更糟糕的是,您可能需要獲得資訊檢索學位才能了解其作業原理,Lucene 非常 復雜,

Elasticsearch 也是使用 Java 撰寫的,它的內部使用 Lucene 做索引與搜索,但是它的目的是使全文檢索變得簡單, 通過隱藏 Lucene 的復雜性,取而代之的提供一套簡單一致的 RESTful API,

然而,Elasticsearch 不僅僅是 Lucene,并且也不僅僅只是一個全文搜索引擎, 它可以被下面這樣準確的形容:

一個分布式的實時檔案存盤,每個欄位 可以被索引與搜索
一個分布式實時分析搜索引擎
能勝任上百個服務節點的擴展,并支持 PB 級別的結構化或者非結構化資料
Elasticsearch 將所有的功能打包成一個單獨的服務,這樣你可以通程序式與它提供的簡單的 RESTful API 進行通信, 可以使用自己喜歡的編程語言充當 web 客戶端,甚至可以使用命令列(去充當這個客戶端),

就 Elasticsearch 而言,起步很簡單,對于初學者來說,它預設了一些適當的默認值,并隱藏了復雜的搜索理論知識, 它 開箱即用 ,只需最少的理解,你很快就能具有生產力,

中文檔案官網:https://www.elastic.co/guide/cn/elasticsearch/guide/current/routing-value.html
搭建使用:Elasticsearch的鏡像用7.9.0

docker pull elasticsearch:7.9.0

修改es單個節點 運行大小 啟動完成

docker run -e ES_JAVA_OPTS="-Xms256m -Xmx256m"  -e "discovery.type=single-node"  -d --name elasticsearch  -p 9200:9200 -p 9300:9300  elasticsearch:7.9.0


在這里插入圖片描述

訪問IP加埠
在這里插入圖片描述

安裝 ik分詞器我也是用7.0.0版本的
下載地址https://github.com/medcl/elasticsearch-analysis-ik/releases
在這里插入圖片描述

進入es的容器里

docker exec -it elasticsearch /bin/bash

在這里插入圖片描述
在plugins目錄下創建ik檔案夾:

mkdir /usr/share/elasticsearch/plugins/ik

退出容器:exit

拷貝下載好的ik分詞器壓縮包到ik檔案夾中:

docker cp elasticsearch-analysis-ik-7.9.0.zip elasticsearch:/usr/share/elasticsearch/plugins/ik/

在進入容器

##進入容器
docker exec -it elasticsearch /bin/bash

##進入IK檔案夾下
cd plugins/ik/

解壓檔案

unzip elasticsearch-analysis-ik-7.9.0.zip

在這里插入圖片描述
退出容器 重啟

docker restart  elasticsearch

查看 ik 分詞器是否安裝成功 可已經進去es容器里的bin目錄下

elasticsearch-plugin list

在這里插入圖片描述

接下來安裝Kibana 7 可視化工具
拉取鏡像

docker pull kibana:7.9.0

啟動容器

docker run -d -p 5601:5601 --name kibana --link elasticsearch:elasticsearch docker.io/kibana:7.9.0

ip加埠訪問
在這里插入圖片描述

安裝之后測驗一下資料是否根據官方檔案提供的一個檔案 新增一條
6.0版本以后就沒有型別這個 只有索引 我先在是7.0但是他沒報錯

穿件索引 型別 資料 PUT 請求

PUT http://192.168.124.123:9200/user/test/1

修改 有就修改沒有就新增 PUT 請求

PUT http://192.168.124.123:9200/user/test/1

新增修改 如果不帶Id es自動生成一個字串Id 帶id修改 POST 請求

POST http://192.168.124.123:9200/user/test	 

洗掉 DELETE 請求

DELETE http://192.168.124.123:9200/user/test/1

查詢 GET 請求

GET http://192.168.124.123:9200/user/test/1

在這里插入圖片描述

查看es索引
在這里插入圖片描述
在這里插入圖片描述

先說一下 查詢 條件
(1) 獲取所有資料 :索引/型別/_search
空搜索,它沒有任何查詢條件,查詢集群中的所有索引,默認回傳前10個檔案,
①took:整個搜索請求耗費了多少毫秒,
②timed_out:是否超時,false是沒有,默認無timeout
1)默認情況下,搜索請求不會超時,如果回應時間比完成結果更重要,你可以指定 timeout 為 10 或者 10ms(10毫秒),或者 1s(1秒):
2)GET /_search?timeout=10ms
3)timeout 不是停止執行查詢,它僅僅是告知正在協調的節點回傳到目前為止收集的結果并且關閉連接,
③_shards:分片數量
④hits.total:本次搜索,回傳了幾條結果
⑤hits.max_score:score的含義,就是document對于一個search的相關度的匹配分數,越相關,就越匹配,分數也高
⑥hits.hits:包含了匹配搜索的document的詳細資料,默認查詢前10條資料,按_score降序排序
⑦多索引,多型別
1)/_search:在所有的索引中搜索所有的型別
2)/gb/_search:在 gb 索引中搜索所有的型別
3)/gb,us/_search:在 gb 和 us 索引中搜索所有的檔案
4)/g*,u*/_search:在任何以 g 或者 u 開頭的索引中搜索所有的型別
5)/gb/user/_search:在 gb 索引中搜索 user 型別
6)/gb,us/user,tweet/_search:在 gb 和 us 索引中搜索 user 和 tweet 型別
7)/_all/user,tweet/_search:在所有的索引中搜索 user 和 tweet 型別

用Kibana 操作
在這里插入圖片描述
range 查詢找出那些落在指定區間內的數字或者時間:
①gt大于
②gte大于等于
③lt小于
④lte小于等于

(2)term 查詢:
term 查詢被用于精確值匹配,這些精確值可能是數字、時間、布爾或者那些 not_analyzed 的字串

(3)terms 查詢:
terms 查詢和 term 查詢一樣,但它允許你指定多值進行匹配,如果這個欄位包含了指定值中的任何一個值,那么這個檔案滿足條件

(4)exists 查詢和 missing 查詢:
exists 查詢和 missing 查詢被用于查找那些指定欄位中有值或無值的檔案,
(5)bool查詢 : 用于多欄位組合查詢
①must:檔案 必須 匹配這些條件才能被包含進來,
②must_not:檔案 必須不 匹配這些條件才能被包含進來,
③should:如果滿足這些陳述句中的任意陳述句,將增加 _score ,否則,無任何影響,它們主要用于修正每個檔案的相關性得分,
④filter:必須 匹配,但它以不評分、過濾模式來進行,

##match_all:回傳所有檔案
GET _search
{
  "query": {
    "match_all": {
     
    }
  }
}

##查詢user索引中所有的資料
GET /user/_search

##查詢user索引下employee型別中所有的資料
GET /user/employee/_search


##term 查詢被用于精確值匹配,這些精確值可能是數字、時間
GET /user/employee/_search
{
  "query": {
    "term": {
      "first_name":"張"
    }
  }
}


## 精確查詢
GET /user/employee/_search
{
  "query": {
    "match": {
      "first_name":"張"
    }
  }
}


## match_phrase:短語匹配查詢 必須完全匹配才回傳

GET /user/employee/_search
{
  "query": {
    "match_phrase": {
      "first_name":"張"
    }
  }
}

## multi_match:多欄位匹配查,query是要查詢的資料關鍵詞
##"fields": ["欄位","欄位"]

GET /user/employee/_search
{
  "query": {
    "multi_match": {
      "query": "三",
          "fields": ["first_name","last_name"]
    }
  }
}

當然還有聚合函式 這些按照es的 官方檔案就可以

使用ik 分詞器查詢
使用es自帶分詞器

##es自帶分詞器

POST _analyze
{
  
  "analyzer":"standard","text":"我叫你呢不知道new"
}

在這里插入圖片描述

IK分詞器,支持兩種演算法,分別為:

ik_smart :最少切分
ik_max_word :最細粒度切分

##es使用 IK分詞器

POST _analyze
{
  
  "analyzer":"ik_smart","text":"我叫你呢不知道new"
}

效果

搭建好在專案中使用
springboot
pom依賴
我安裝的es是7.9.0的所以依賴也是7.9.0 這 里注意springboot的版本必須2.2以上的版本

 <!-- https://mvnrepository.com/artifact/org.elasticsearch.client/elasticsearch-rest-high-level-client -->
        <dependency>
            <groupId>org.elasticsearch.client</groupId>
            <artifactId>elasticsearch-rest-high-level-client</artifactId>
            <version>7.9.0</version>
        </dependency>

pom檔案

 注意 : <!--指定Springboot的es版本-->
        <elasticsearch.version>7.9.0</elasticsearch.version>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.3.9.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.example</groupId>
    <artifactId>demo</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>demo</name>
    <description>Demo project for Spring Boot</description>
    <properties>
        <java.version>1.8</java.version>
        <!--指定Springboot的es版本-->
        <elasticsearch.version>7.9.0</elasticsearch.version>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>org.elasticsearch.client</groupId>
            <artifactId>elasticsearch-rest-high-level-client</artifactId>
            <version>7.9.0</version>
        </dependency>


        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.junit.vintage</groupId>
                    <artifactId>junit-vintage-engine</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

</project>

config檔案

package com.tang.cloud.config;

import org.apache.http.HttpHost;
import org.elasticsearch.client.RestClient;
import org.elasticsearch.client.RestHighLevelClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class EsConfig {
  //設定項
    public static final RequestOptions COMMON_OPTIONS;
    static {
        RequestOptions.Builder builder = RequestOptions.DEFAULT.toBuilder();
        COMMON_OPTIONS = builder.build();
    }
    @Bean
    public RestHighLevelClient restHighLevelClient() {
        RestHighLevelClient restHighLevelClient = new RestHighLevelClient(
                RestClient.builder(
                        new HttpHost("192.168.124.123", 9200, "http")
                )
        );
        return restHighLevelClient;
    }


}

對es 操作
注入RestHighLevelClient 對es操作

    @Autowired
    private RestHighLevelClient client;

新增索引

 @Test
    public void test() throws IOException {
        //創建索引
        IndexRequest indexRequest = new IndexRequest("user");
        //設定id
        indexRequest.id("1");
        //創建user物件
        User user=new User();
        user.setName("張三");
        user.setAge(18);
        user.setSex("男");
        String userJson = JSON.toJSONString(user );
        //創建索引
        indexRequest.source(userJson,XContentType.JSON);

        IndexResponse index = client.index(indexRequest,     EsConfig.COMMON_OPTIONS);
        System.out.println(index);
        System.out.println("ok");
    }

查詢

GET /user/_search

在這里插入圖片描述
查詢

按id查詢

//按 id查詢
    @Test
    public void  test2() throws IOException {
        //創建es檢索查詢條件
        GetRequest getRequest = new GetRequest(
                "user", //索引名稱
                "1"); //檔案id
        GetResponse getResponse = client.get(getRequest, RequestOptions.DEFAULT);
        String s = JSON.toJSONString(getResponse.getSource());
        System.out.println(s);
        User user=JSON.parseObject(s,User.class);
        System.out.println(user+"測驗結果");
    }

查看索引是不是存在

  //查看索引是不是存在 boolean型別
    @Test
    public void indexExists() throws IOException {

        GetIndexRequest request = new GetIndexRequest("user");
        boolean exists = client.indices().exists(request, RequestOptions.DEFAULT);
        System.out.println(exists);

    }

查詢檔案是是否存在


    //查詢檔案是是否存在 回傳boolean型別
    @Test
    public void test3() throws IOException {
        GetRequest getRequest = new GetRequest(
                "user", //索引
                "1");    //檔案id
        getRequest.fetchSourceContext(new FetchSourceContext(false)); //禁用fetching _source.
        getRequest.storedFields("_none_");
        boolean exists = client.exists(getRequest, RequestOptions.DEFAULT);
        System.out.println(exists);


    }

query查詢

 @Test
    public void  test1() throws IOException {
        //創建檢索
        SearchRequest searchRequest =new SearchRequest();
        //要檢索的索引
        searchRequest.indices("user");
        //指定檢索條件
        SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder();
          //使用 match 查詢
         searchSourceBuilder.query(QueryBuilders.matchQuery("name","張"));

         searchRequest.source(searchSourceBuilder);
        //開始檢索
        SearchResponse search = client.search(searchRequest, EsConfig.COMMON_OPTIONS);
        //獲取檢索的資料
        SearchHits hits = search.getHits();
        
        //獲取物件
        SearchHit[] hits1 = hits.getHits();

        for (SearchHit s:hits1) {

            String sourceAsString = s.getSourceAsString();

            User user = JSON.parseObject(sourceAsString, User.class);

            System.out.println(user);
        }
    }

在這里插入圖片描述

封裝工具類

@Slf4j
@Component
public class RestHighLevelClientUtil {

    @Qualifier("restHighLevelClient")
    @Autowired
    private RestHighLevelClient client;

    @Autowired
    private ObjectMapper mapper;

    /**
     * 創建索引
     * @param indexName
     * @param settings
     * @param mapping
     * @return
     * @throws IOException
     */
    public CreateIndexResponse createIndex(String indexName, String settings, String mapping) throws IOException {
        CreateIndexRequest request = new CreateIndexRequest(indexName);
        if (null != settings && !"".equals(settings)) {
            request.settings(settings, XContentType.JSON);
        }
        if (null != mapping && !"".equals(mapping)) {
            request.mapping(mapping, XContentType.JSON);
        }
        // 同步方式創建索引
        return client.indices().create(request, RequestOptions.DEFAULT);
    }

    /**
     * 洗掉索引
     * @param indexNames
     * @return
     * @throws IOException
     */
    public AcknowledgedResponse deleteIndex(String ... indexNames) throws IOException{
        DeleteIndexRequest request = new DeleteIndexRequest(indexNames);
        return client.indices().delete(request, RequestOptions.DEFAULT);
    }

    /**
     * 判斷 index 是否存在
     * @param indexName
     * @return
     * @throws IOException
     */
    public boolean indexExists(String indexName) throws IOException {
        GetIndexRequest request = new GetIndexRequest(indexName);
        return client.indices().exists(request, RequestOptions.DEFAULT);
    }

    /**
     * 簡單模糊匹配 默認分頁為 0,10
     * @param field
     * @param key
     * @param page
     * @param size
     * @param indexNames
     * @return
     * @throws IOException
     */
    public SearchResponse searchPage(String field, String key, int page, int size, String[] includeFields, String[] excludeFields, String ... indexNames) throws IOException{
        SearchRequest request = new SearchRequest(indexNames);
        SearchSourceBuilder builder = new SearchSourceBuilder();
        builder.query(new MatchQueryBuilder(field, key))
                .from(page)
                .size(size);
        if (includeFields.length != 0 && excludeFields.length !=0) {
            builder.fetchSource(includeFields, excludeFields);
        }
        request.source(builder);
        return client.search(request, RequestOptions.DEFAULT);
    }

    /**
     * 使用scroll查詢所有符合條件的不分頁
     * @param field
     * @param key
     * @param includeFields
     * @param excludeFields
     * @param indexNames
     * @return
     * @throws IOException
     */
    public List<SearchHit> searchAllByMatch(String field, String key, String[] includeFields, String[] excludeFields, String ... indexNames) throws IOException{
        // 建立查詢請求
        SearchRequest request = new SearchRequest(indexNames);
        SearchSourceBuilder builder = new SearchSourceBuilder();
        builder.query(new MatchQueryBuilder(field, key));
        if (includeFields.length != 0 && excludeFields.length !=0) {
            builder.fetchSource(includeFields, excludeFields);
        }
        request.source(builder);
        return this.searchAllByScroll(request);
    }

    public List<SearchHit> searchAllByWildcard(String field, String key, String[] includeFields, String[] excludeFields, String ... indexNames) throws IOException{
        // 建立查詢請求
        SearchRequest request = new SearchRequest(indexNames);
        SearchSourceBuilder builder = new SearchSourceBuilder();
        // builder.query(new MatchQueryBuilder(field, key));
        builder.query(new WildcardQueryBuilder(field, "*" + key + "*"));
        if (includeFields.length != 0 && excludeFields.length !=0) {
            builder.fetchSource(includeFields, excludeFields);
        }
        request.source(builder);
        return this.searchAllByScroll(request);
    }

    /**
     * 針對查詢請求,通過 Scroll 查詢所有,不分頁
     * @param request 查詢請求
     * @return
     */
    public List<SearchHit> searchAllByScroll(SearchRequest request) throws IOException {
        request.scroll(TimeValue.timeValueSeconds(10));

        List<SearchHit> searchHitList = new ArrayList<>();

        SearchResponse response = client.search(request, RequestOptions.DEFAULT);
        String scrollId = response.getScrollId();
        SearchHit[] searchHits = response.getHits().getHits();

        while (searchHits != null && searchHits.length > 0) {
            searchHitList.addAll(Arrays.asList(searchHits));
            response = client.scroll(new SearchScrollRequest(scrollId).scroll(TimeValue.timeValueSeconds(10)), RequestOptions.DEFAULT);
            scrollId = response.getScrollId();
            searchHits = response.getHits().getHits();
        }

        ClearScrollRequest clearScrollRequest = new ClearScrollRequest();
        clearScrollRequest.addScrollId(scrollId);
        ClearScrollResponse clearScrollResponse = client.clearScroll(clearScrollRequest, RequestOptions.DEFAULT);
        boolean succeeded = clearScrollResponse.isSucceeded();
        System.out.println("clearScroll: " + succeeded);
        return searchHitList;
    }

    public SearchResponse search(String field, String key, String rangeField, String from, String to,
                                 String termField, String termVal, String ... indexNames) throws IOException{
        SearchRequest request = new SearchRequest(indexNames);

        SearchSourceBuilder builder = new SearchSourceBuilder();
        BoolQueryBuilder boolQueryBuilder = new BoolQueryBuilder();
        boolQueryBuilder.must(new MatchQueryBuilder(field, key)).must(new RangeQueryBuilder(rangeField).from(from).to(to)).must(new TermQueryBuilder(termField, termVal));
        builder.query(boolQueryBuilder);
        request.source(builder);
        log.info("[搜索陳述句為:{}]",request.source().toString());
        return client.search(request, RequestOptions.DEFAULT);
    }

    /**
     * term 查詢 精準匹配
     * @param field
     * @param key
     * @param page
     * @param size
     * @param indexNames
     * @return
     * @throws IOException
     */
    public SearchResponse termSearch(String field, String key, int page, int size, String ... indexNames) throws IOException{
        SearchRequest request = new SearchRequest(indexNames);
        SearchSourceBuilder builder = new SearchSourceBuilder();
        builder.query(QueryBuilders.termsQuery(field, key))
                .from(page)
                .size(size);
        request.source(builder);
        return client.search(request, RequestOptions.DEFAULT);
    }

    /**
     * 批量匯入
     * @param indexName
     * @param sourceList
     * @return
     * @throws IOException
     */
    public BulkResponse importAll(String indexName, List<String> sourceList) throws IOException{
        if (0 == sourceList.size()){
            //todo 拋出例外 匯入資料為空
        }
        BulkRequest request = new BulkRequest();

        for (String source : sourceList) {
            request.add(new IndexRequest(indexName).source(source, XContentType.JSON));
        }

        return client.bulk(request, RequestOptions.DEFAULT);
    }

    /**
     * 插入或者更新
     * @param indexName
     * @param jsonMap
     * @return
     * @throws IOException
     */
    public IndexResponse insertOrUpdateOne(String indexName, String id, Map<String, Object> jsonMap) throws IOException {
        IndexRequest request = new IndexRequest(indexName);
        request.id(id);
        request.source(jsonMap);
        return client.index(request, RequestOptions.DEFAULT);
    }

    public DeleteResponse deleteDocumentById(String indexName, String id) throws IOException {
        DeleteRequest request = new DeleteRequest(indexName, id);
        return client.delete(request, RequestOptions.DEFAULT);
    }

}

更多操作 查看官方 檔案

https://www.elastic.co/guide/en/elasticsearch/client/java-api/7.11/java-docs-get.html
倒排索引
https://lesliefish.blog.csdn.net/article/details/49648363?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-7.control&dist_request_id=a74b41a9-38fb-45f7-80f1-b4bb059093f8&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-7.control

轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/262532.html

標籤:其他

上一篇:面試系列一:精選大資料面試真題10道(混合型)-附答案詳細決議

下一篇:計算機導論-7-資料型別-整數存盤

標籤雲
其他(157675) Python(38076) JavaScript(25376) Java(17977) C(15215) 區塊鏈(8255) C#(7972) AI(7469) 爪哇(7425) MySQL(7132) html(6777) 基礎類(6313) sql(6102) 熊猫(6058) PHP(5869) 数组(5741) R(5409) Linux(5327) 反应(5209) 腳本語言(PerlPython)(5129) 非技術區(4971) Android(4554) 数据框(4311) css(4259) 节点.js(4032) C語言(3288) json(3245) 列表(3129) 扑(3119) C++語言(3117) 安卓(2998) 打字稿(2995) VBA(2789) Java相關(2746) 疑難問題(2699) 细绳(2522) 單片機工控(2479) iOS(2429) ASP.NET(2402) MongoDB(2323) 麻木的(2285) 正则表达式(2254) 字典(2211) 循环(2198) 迅速(2185) 擅长(2169) 镖(2155) 功能(1967) .NET技术(1958) Web開發(1951) python-3.x(1918) HtmlCss(1915) 弹簧靴(1913) C++(1909) xml(1889) PostgreSQL(1872) .NETCore(1853) 谷歌表格(1846) Unity3D(1843) for循环(1842)

熱門瀏覽
  • 網閘典型架構簡述

    網閘架構一般分為兩種:三主機的三系統架構網閘和雙主機的2+1架構網閘。 三主機架構分別為內端機、外端機和仲裁機。三機無論從軟體和硬體上均各自獨立。首先從硬體上來看,三機都用各自獨立的主板、記憶體及存盤設備。從軟體上來看,三機有各自獨立的作業系統。這樣能達到完全的三機獨立。對于“2+1”系統,“2”分為 ......

    uj5u.com 2020-09-10 02:00:44 more
  • 如何從xshell上傳檔案到centos linux虛擬機里

    如何從xshell上傳檔案到centos linux虛擬機里及:虛擬機CentOs下執行 yum -y install lrzsz命令,出現錯誤:鏡像無法找到軟體包 前言 一、安裝lrzsz步驟 二、上傳檔案 三、遇到的問題及解決方案 總結 前言 提示:其實很簡單,往虛擬機上安裝一個上傳檔案的工具 ......

    uj5u.com 2020-09-10 02:00:47 more
  • 一、SQLMAP入門

    一、SQLMAP入門 1、判斷是否存在注入 sqlmap.py -u 網址/id=1 id=1不可缺少。當注入點后面的引數大于兩個時。需要加雙引號, sqlmap.py -u "網址/id=1&uid=1" 2、判斷文本中的請求是否存在注入 從文本中加載http請求,SQLMAP可以從一個文本檔案中 ......

    uj5u.com 2020-09-10 02:00:50 more
  • Metasploit 簡單使用教程

    metasploit 簡單使用教程 浩先生, 2020-08-28 16:18:25 分類專欄: kail 網路安全 linux 文章標簽: linux資訊安全 編輯 著作權 metasploit 使用教程 前言 一、Metasploit是什么? 二、準備作業 三、具體步驟 前言 Msfconsole ......

    uj5u.com 2020-09-10 02:00:53 more
  • 游戲逆向之驅動層與用戶層通訊

    驅動層代碼: #pragma once #include <ntifs.h> #define add_code CTL_CODE(FILE_DEVICE_UNKNOWN,0x800,METHOD_BUFFERED,FILE_ANY_ACCESS) /* 更多游戲逆向視頻www.yxfzedu.com ......

    uj5u.com 2020-09-10 02:00:56 more
  • 北斗電力時鐘(北斗授時服務器)讓網路資料更精準

    北斗電力時鐘(北斗授時服務器)讓網路資料更精準 北斗電力時鐘(北斗授時服務器)讓網路資料更精準 京準電子科技官微——ahjzsz 近幾年,資訊技術的得了快速發展,互聯網在逐漸普及,其在人們生活和生產中都得到了廣泛應用,并且取得了不錯的應用效果。計算機網路資訊在電力系統中的應用,一方面使電力系統的運行 ......

    uj5u.com 2020-09-10 02:01:03 more
  • 【CTF】CTFHub 技能樹 彩蛋 writeup

    ?碎碎念 CTFHub:https://www.ctfhub.com/ 筆者入門CTF時時剛開始刷的是bugku的舊平臺,后來才有了CTFHub。 感覺不論是網頁UI設計,還是題目質量,賽事跟蹤,工具軟體都做得很不錯。 而且因為獨到的金幣制度的確讓人有一種想去刷題賺金幣的感覺。 個人還是非常喜歡這個 ......

    uj5u.com 2020-09-10 02:04:05 more
  • 02windows基礎操作

    我學到了一下幾點 Windows系統目錄結構與滲透的作用 常見Windows的服務詳解 Windows埠詳解 常用的Windows注冊表詳解 hacker DOS命令詳解(net user / type /md /rd/ dir /cd /net use copy、批處理 等) 利用dos命令制作 ......

    uj5u.com 2020-09-10 02:04:18 more
  • 03.Linux基礎操作

    我學到了以下幾點 01Linux系統介紹02系統安裝,密碼啊破解03Linux常用命令04LAMP 01LINUX windows: win03 8 12 16 19 配置不繁瑣 Linux:redhat,centos(紅帽社區版),Ubuntu server,suse unix:金融機構,證券,銀 ......

    uj5u.com 2020-09-10 02:04:30 more
  • 05HTML

    01HTML介紹 02頭部標簽講解03基礎標簽講解04表單標簽講解 HTML前段語言 js1.了解代碼2.根據代碼 懂得挖掘漏洞 (POST注入/XSS漏洞上傳)3.黑帽seo 白帽seo 客戶網站被黑帽植入劫持代碼如何處理4.熟悉html表單 <html><head><title>TDK標題,描述 ......

    uj5u.com 2020-09-10 02:04:36 more
最新发布
  • 2023年最新微信小程式抓包教程

    01 開門見山 隔一個月發一篇文章,不過分。 首先回顧一下《微信系結手機號資料庫被脫庫事件》,我也是第一時間得知了這個訊息,然后跟蹤了整件事情的經過。下面是這起事件的相關截圖以及近日流出的一萬條資料樣本: 個人認為這件事也沒什么,還不如關注一下之前45億快遞資料查詢渠道疑似在近日復活的訊息。 訊息是 ......

    uj5u.com 2023-04-20 08:48:24 more
  • web3 產品介紹:metamask 錢包 使用最多的瀏覽器插件錢包

    Metamask錢包是一種基于區塊鏈技術的數字貨幣錢包,它允許用戶在安全、便捷的環境下管理自己的加密資產。Metamask錢包是以太坊生態系統中最流行的錢包之一,它具有易于使用、安全性高和功能強大等優點。 本文將詳細介紹Metamask錢包的功能和使用方法。 一、 Metamask錢包的功能 數字資 ......

    uj5u.com 2023-04-20 08:47:46 more
  • vulnhub_Earth

    前言 靶機地址->>>vulnhub_Earth 攻擊機ip:192.168.20.121 靶機ip:192.168.20.122 參考文章 https://www.cnblogs.com/Jing-X/archive/2022/04/03/16097695.html https://www.cnb ......

    uj5u.com 2023-04-20 07:46:20 more
  • 從4k到42k,軟體測驗工程師的漲薪史,給我看哭了

    清明節一過,盲猜大家已經無心上班,在數著日子準備過五一,但一想到銀行卡里的余額……瞬間心情就不美麗了。最近,2023年高校畢業生就業調查顯示,本科畢業月平均起薪為5825元。調查一出,便有很多同學表示自己又被平均了。看著這一資料,不免讓人想到前不久中國青年報的一項調查:近六成大學生認為畢業10年內會 ......

    uj5u.com 2023-04-20 07:44:00 more
  • 最新版本 Stable Diffusion 開源 AI 繪畫工具之中文自動提詞篇

    🎈 標簽生成器 由于輸入正向提示詞 prompt 和反向提示詞 negative prompt 都是使用英文,所以對學習母語的我們非常不友好 使用網址:https://tinygeeker.github.io/p/ai-prompt-generator 這個網址是為了讓大家在使用 AI 繪畫的時候 ......

    uj5u.com 2023-04-20 07:43:36 more
  • 漫談前端自動化測驗演進之路及測驗工具分析

    隨著前端技術的不斷發展和應用程式的日益復雜,前端自動化測驗也在不斷演進。隨著 Web 應用程式變得越來越復雜,自動化測驗的需求也越來越高。如今,自動化測驗已經成為 Web 應用程式開發程序中不可或缺的一部分,它們可以幫助開發人員更快地發現和修復錯誤,提高應用程式的性能和可靠性。 ......

    uj5u.com 2023-04-20 07:43:16 more
  • CANN開發實踐:4個DVPP記憶體問題的典型案例解讀

    摘要:由于DVPP媒體資料處理功能對存放輸入、輸出資料的記憶體有更高的要求(例如,記憶體首地址128位元組對齊),因此需呼叫專用的記憶體申請介面,那么本期就分享幾個關于DVPP記憶體問題的典型案例,并給出原因分析及解決方法。 本文分享自華為云社區《FAQ_DVPP記憶體問題案例》,作者:昇騰CANN。 DVPP ......

    uj5u.com 2023-04-20 07:43:03 more
  • msf學習

    msf學習 以kali自帶的msf為例 一、msf核心模塊與功能 msf模塊都放在/usr/share/metasploit-framework/modules目錄下 1、auxiliary 輔助模塊,輔助滲透(埠掃描、登錄密碼爆破、漏洞驗證等) 2、encoders 編碼器模塊,主要包含各種編碼 ......

    uj5u.com 2023-04-20 07:42:59 more
  • Halcon軟體安裝與界面簡介

    1. 下載Halcon17版本到到本地 2. 雙擊安裝包后 3. 步驟如下 1.2 Halcon軟體安裝 界面分為四大塊 1. Halcon的五個助手 1) 影像采集助手:與相機連接,設定相機引數,采集影像 2) 標定助手:九點標定或是其它的標定,生成標定檔案及內參外參,可以將像素單位轉換為長度單位 ......

    uj5u.com 2023-04-20 07:42:17 more
  • 在MacOS下使用Unity3D開發游戲

    第一次發博客,先發一下我的游戲開發環境吧。 去年2月份買了一臺MacBookPro2021 M1pro(以下簡稱mbp),這一年來一直在用mbp開發游戲。我大致分享一下我的開發工具以及使用體驗。 1、Unity 官網鏈接: https://unity.cn/releases 我一般使用的Apple ......

    uj5u.com 2023-04-20 07:40:19 more