主頁 >  其他 > Nginx 配置詳細檔案

Nginx 配置詳細檔案

2020-09-11 01:16:59 其他

概述

Nginx 是使用一個 master 行程來管理多個 worker 行程提供服務,master 負責管理 worker 行程,而 worker 行程則提供真正的客戶服務,worker 行程的數量一般跟服務器上 CPU 的核心數相同,worker 之間通過一些行程間通信機制實作負載均衡等功能,Nginx 行程之間的關系可由下圖表示:

Nginx 服務啟動時會讀入組態檔,后續的行為則按照組態檔中的指令進行,Nginx 的組態檔是純文本檔案,默認安裝 Nginx 后,其組態檔均在 /usr/local/nginx/conf/ 目錄下,其中,nginx.conf  為主組態檔,組態檔中以 # 開始的行,或者是前面有若干空格或者 TAB 鍵,然后再跟 # 的行,都被認為是注釋,這里只是了解主組態檔的結構,

Nginx 組態檔是以 block(塊)形式組織,每個 block 都是以一個塊名字和一對大括號 “{}” 表示組成,block 分為幾個層級,整個組態檔為 main 層級,即最大的層級;在 main 層級下可以有 event、http 、mail 等層級,而 http 中又會有 server block,server block中可以包含 location block,即塊之間是可以嵌套的,內層塊繼承外層塊,最基本的配置項語法格式是“配置項名  配置項值1  配置項值2  配置項值3  ... ”;

每個層級可以有自己的指令(Directive),例如 worker_processes 是一個main層級指令,它指定 Nginx 服務的 Worker 行程數量,有的指令只能在一個層級中配置,如worker_processes 只能存在于 main 中,而有的指令可以存在于多個層級,在這種情況下,子 block 會繼承 父 block 的配置,同時如果子block配置了與父block不同的指令,則會覆寫掉父 block 的配置,指令的格式是“指令名 引數1 引數2 … 引數N;”,注意引數間可用任意數量空格分隔,最后要加分號,

下圖是 Nginx 組態檔通常結構圖示,

Nginx 服務的基本配置項

Nginx 服務運行時,需要加載幾個核心模塊和一個事件模塊,這些模塊運行時所支持的配置項稱為基本配置;基本配置項大概可分為以下四類:

  • 用于除錯、定位的配置項;
  • 正常運行的必備配置項;
  • 優化性能的配置項;
  • 事件類配置項;

各個配置項的具體實作如下:

/* Nginx 服務基本配置項 */

/* 用于除錯、定位的配置項 */

#以守護行程 Nginx 運行方式
#語法:daemon off | on;
#默認:daemon on;

#master / worker 作業方式
#語法:master_process on | off;
#默認:master_process on;

#error 日志設定
#                   路徑        錯誤級別
#語法:error_log    /path/file  level;
#默認:error_log    logs/error.log  error;
#其中/path/file是一個具體檔案;level是日志的輸出級別,其取值如下:
#   debug info notice warn error crit alert emerg
#從左至右級別增大;若設定一個級別后,則在輸出的日志檔案中只輸出級別大于或等于已設定的級別;

#處理特殊除錯點
#語法:debug_points [stop | abort]
#這個設定是來跟蹤除錯 Nginx 的;

#僅對指定的客戶端輸出 debug 級別的日志
#語法:debug_connection [IP | DIR]

#限制 coredump 核心轉儲檔案的大小
#語法:worker_rlimit_core   size;

#指定 coredump 檔案的生成目錄
#語法:working_directory    path;

/* 正常運行的配置項 */

#定義環境變數
#語法:env  VAR | VAR=VALUE;
#VAR 是變數名,VALUE 是目錄;

#嵌入其他組態檔
#語法:include  /path/file;
#include 配置項可以將其他組態檔嵌入到 Nginx 的 nginx.conf 檔案中;

#pid 的檔案路徑
#語法:pid  path/file;
#默認:pid  logs/nginx.pid;
#保存 master 行程 ID 的 pid 檔案存放路徑;

#Nginx worker 運行的用戶及用戶組
#語法:user username    [groupname];
#默認:user nobody nobody;

#指定 Nginx worker行程可打開最大句柄個數
#語法:worker_rlimit_nofile limit;

#限制信號佇列
#語法:worker_rlimit_sigpending limit;
#設定每個用戶發給 Nginx 的信號佇列大小,超出則丟棄;

/* 優化性能配置項 */

#Nginx worker 行程的個數
#語法:worker_process   number;
#默認:worker_process   1;

#系結 Nginx worker 行程到指定的 CPU 內核
#語法:worker_cpu_affinity  cpumask [cpumask...]

#SSL 硬體加速
#語法:ssl_engine   device;

#系統呼叫 gettimeofday 的執行頻率
#語法:timer_resolution t;

#Nginx worker 行程優先級設定
#語法:worker_priority  nice;
#默認:worker_priority  0;

/* 事件類配置項  */
#一般有以下幾種配置:
#1、是否打開accept鎖
#   語法格式:accept_mutex [on | off];

#2、lock檔案的路徑
#   語法格式:lock_file  path/file;

#3、使用accept鎖后到真正建立連接之間的延遲時間
#   語法格式:accept_mutex_delay Nms;

#4、批量建立新連接
#   語法格式:multi_accept [on | off];
#
#5、選擇事件模型
#   語法格式:use [kqueue | rtisg | epoll | /dev/poll | select | poll | eventport];

#6、每個worker進行的最大連接數
#   語法格式:worker_connections number;

HTTP 核心模塊的配置

具體可以參看《Nginx 中 HTTP 核心模塊配置》

/* HTTP 核心模塊配置的功能 */

/* 虛擬主機與請求分發 */

#監聽埠
#語法:listen   address:port[default | default_server | [backlong=num | rcvbuf=size | sndbuf=size | 
# accept_filter | deferred | bind | ipv6only=[on | off] | ssl]];
# 默認:listen:80;
# 說明:
#   default或default_server:將所在的server塊作為web服務的默認server塊;當請求無法匹配組態檔中的所有主機名時,就會選擇默認的虛擬主機;
#   backlog=num:表示 TCP 中backlog佇列存放TCP新連接請求的大小,默認是-1,表示不予設定;
#   rcvbuf=size:設定監聽句柄SO_RCVBUF的引數;
#   sndbuf=size:設定監聽句柄SO_SNDBUF的引數;
#   accept_filter:設定accept過濾器,只對FreeBSD作業系統有用;
#   deferred:設定該引數后,若用戶發起TCP連接請求,并且完成TCP三次握手,但是若用戶沒有發送資料,則不會喚醒worker行程,直到發送資料;
#   bind:系結當前埠 / 地址對,只有同時對一個埠監聽多個地址時才會生效;
#   ssl:在當前埠建立的連接必須基于ssl協議;
#配置塊范圍:server

#主機名稱
#語法:server_name  name[...];
#默認:server_name  "";
#配置塊范圍:server

#server name 是使用散串列存盤的
#每個散列桶占用記憶體大小
#語法:server_names_hash_bucket_size    size;
#默認:server_names_hash_bucker_size    32|64|128;
#
#散串列最大bucket數量
#語法:server_names_hash_max_size   size;
#默認:server_names_hash_max_size   512;
#默認:server_name_in_redirect  on;
#配置塊范圍:server、http、location

#處理重定向主機名
#語法:server_name_in_redirect  on | off;
#默認:server_name_in_redirect  on;
#配置塊范圍:server、http、location

#location語法:location[= | ~ | ~* | ^~ | @] /uri/ {}  
#配置塊范圍:server
        #location嘗試根據用戶請求中的URI來匹配 /uri運算式,若匹配成功,則執行{}里面的配置來處理用戶請求  
#以下是location的一般配置項  
#1、以root方式設定資源路徑  
#   語法格式:root path;  
#2、以alias方式設定資源路徑  
#   語法格式:alias path;  
#3、訪問首頁  
#   語法格式:index file...;  
#4、根據HTTP回傳碼重定向頁面  
#   語法格式:error_page code [code...] [= | =answer-code] uri | @named_location;  
#5、是否允許遞回使用error_page  
#   語法格式:recursive_error_pages [on | off];  
#6、try_files  
#   語法格式:try_files path1 [path2] uri;  

/* 檔案路徑的定義 */

#root方式設定資源路徑
#語法:root path;
#默認:root html;
#配置塊范圍:server、http、location、if

#以alias方式設定資源路徑
#語法:alias path;
#配置塊范圍:location

#訪問主頁
#語法:index    file...;
#默認:index    index.html;
#配置塊范圍:http、server、location

#根據HTTP回傳碼重定向頁面  
#   語法:error_page code [code...] [= | =answer-code] uri | @named_location;  
#配置塊范圍:server、http、location、if

#是否允許遞回使用error_page  
#   語法:recursive_error_pages [on | off];  
#配置塊范圍:http、server、location

#try_files  
#   語法:try_files path1 [path2] uri;  
#配置塊范圍:server、location

/* 記憶體及磁盤資源分配 */

# HTTP 包體只存盤在磁盤檔案中
# 語法:client_body_in_file_only    on | clean | off;
# 默認:client_body_in_file_only  off;
# 配置塊范圍:http、server、location

# HTTP 包體盡量寫入到一個記憶體buffer中
# 語法:client_body_single_buffer   on | off;
# 默認:client_body_single_buffer   off;
# 配置塊范圍:http、server、location

# 存盤 HTTP 頭部的記憶體buffer大小
# 語法:client_header_buffer_size   size;
# 默認:client_header_buffer_size   1k;
# 配置塊范圍:http、server

# 存盤超大 HTTP 頭部的記憶體buffer大小
# 語法:large_client_header_buffer_size   number    size;
# 默認:large_client_header_buffer_size   4   8k;
# 配置塊范圍:http、server

# 存盤 HTTP 包體的記憶體buffer大小
# 語法:client_body_buffer_size   size;
# 默認:client_body_buffer_size   8k/16k;
# 配置塊范圍:http、server、location

# HTTP 包體的臨時存放目錄
# 語法:client_body_temp_path   dir-path    [level1 [level2 [level3]]];
# 默認:client_body_temp_path   client_body_temp;
# 配置塊范圍:http、server、location

# 存盤 TCP 成功建立連接的記憶體池大小
# 語法:connection_pool_size    size;
# 默認:connection_pool_size    256;
# 配置塊范圍:http、server

# 存盤 TCP 請求連接的記憶體池大小
# 語法:request_pool_size    size;
# 默認:request_pool_size    4k;
# 配置塊范圍:http、server

/* 網路連接設定 */

# 讀取 HTTP 頭部的超時時間
# 語法:client_header_timeout   time;
# 默認:client_header_timeout   60;
# 配置塊范圍:http、server、location

# 讀取 HTTP 包體的超時時間
# 語法:client_body_timeout   time;
# 默認:client_body_timeout   60;
# 配置塊范圍:http、server、location

# 發送回應的超時時間
# 語法:send_timeout   time;
# 默認:send_timeout   60;
# 配置塊范圍:http、server、location

# TCP 連接的超時重置
# 語法:reset_timeout_connection   on | off;
# 默認:reset_timeout_connection   off;
# 配置塊范圍:http、server、location

# 控制關閉 TCP 連接的方式
# 語法:lingering_close off | on | always;
# 默認:lingering_close on;
# 配置塊范圍:http、server、location
# always 表示關閉連接之前無條件處理連接上所有用戶資料;
# off 表示不處理;on 一般會處理;

# lingering_time
# 語法:lingering_time   time;
# 默認:lingering_time   30s;
# 配置塊范圍:http、server、location

# lingering_timeout
# 語法:lingering_timeout   time;
# 默認:lingering_time   5s;
# 配置塊范圍:http、server、location

# 對某些瀏覽器禁止keepalive功能
# 語法:keepalive_disable   [mise6 | safari | none]...
# 默認:keepalive_disable   mise6  safari;
# 配置塊范圍:http、server、location

# keepalive超時時間
# 語法:keepalive_timeout   time;
# 默認:keepalive_timeout   75;
# 配置塊范圍:http、server、location

# keepalive長連接上允許最大請求數
# 語法:keepalive_requests  n;
# 默認:keepalive_requests  100;
# 配置塊范圍:http、server、location

# tcp_nodelay
# 語法:tcp_nodelay on | off;
# 默認:tcp_nodelay on;
# 配置塊范圍:http、server、location

# tcp_nopush
# 語法:tcp_nopush on | off;
# 默認:tcp_nopush off;
# 配置塊范圍:http、server、location

/* MIME 型別設定 */

# MIME type 與檔案擴展的映射
# 語法:type{...}
# 配置塊范圍:http、server、location
# 多個擴展名可映射到同一個 MIME type

# 默認 MIME type
# 語法:default_type    MIME-type;
# 默認:default_type    text/plain;
# 配置塊范圍:http、server、location

# type_hash_bucket_size
# 語法:type_hash_bucket_size   size;
# 默認:type_hash_bucket_size   32 | 64 | 128;
# 配置塊范圍:http、server、location

# type_hash_max_size
# 語法:type_hash_max_size   size;
# 默認:type_hash_max_size   1024;
# 配置塊范圍:http、server、location

/* 限制客戶端請求 */

# 按 HTTP 方法名限制用戶請求
# 語法:limit_except    method...{...}
# 配置塊:location
# method 的取值如下:
# GET、HEAD、POST、PUT、DELETE、MKCOL、COPY、MOVE、OPTIONS、
# PROPFIND、PROPPATCH、LOCK、UNLOCK、PATCH

# HTTP 請求包體的最大值
# 語法:client_max_body_size    size;
# 默認:client_max_body_size    1m;
# 配置塊范圍:http、server、location

# 對請求限制速度
# 語法:limit_rate  speed;
# 默認:limit_rate  0;
# 配置塊范圍:http、server、location、if
# 0 表示不限速

# limit_rate_after規定時間后限速
# 語法:limit_rate_after  time;
# 默認:limit_rate_after    1m;
# 配置塊范圍:http、server、location、if

/* 檔案操作的優化 */

# sendfile系統呼叫
# 語法:sendfile    on | off;
# 默認:sendfile    off;
# 配置塊:http、server、location

# AIO 系統呼叫
# 語法:aio on | off;
# 默認:aio off;
# 配置塊:http、server、location

# directio
# 語法:directio    size | off;
# 默認:directio    off;
# 配置塊:http、server、location

# directio_alignment
# 語法:directio_alignment    size;
# 默認:directio_alignment    512;
# 配置塊:http、server、location

# 打開檔案快取
# 語法:open_file_cache max=N [inactive=time] | off;
# 默認:open_file_cache off;
# 配置塊:http、server、location

# 是否快取打開檔案的錯誤資訊
# 語法:open_file_cache_errors  on | off;
# 默認:open_file_cache_errors  off;
# 配置塊:http、server、location

# 不被淘汰的最小訪問次數
# 語法:open_file_cache_min_user  number;
# 默認:open_file_cache_min_user  1;
# 配置塊:http、server、location

# 檢驗快取中元素有效性的頻率
# 語法:open_file_cache_valid  time;
# 默認:open_file_cache_valid  60s;
# 配置塊:http、server、location

/* 客戶請求的特殊處理 */

# 忽略不合法的 HTTP 頭部
# 語法:ignore_invalid_headers  on | off;
# 默認:ignore_invalid_headers  on;
# 配置塊:http、server

# HTTP 頭部是否允許下劃線
# 語法:underscores_in_headers  on | off;
# 默認:underscores_in_headers  off;
# 配置塊:http、server

# If_Modified_Since 頭部的處理策略
# 語法:if_modified_since   [off | exact | before]
# 默認:if_modified_since   exact;
# 配置塊:http、server、location

# 檔案未找到時是否記錄到error日志
# 語法:log_not_found   on | off;
# 默認:log_not_found   on;
# 配置塊:http、server、location

# 是否合并相鄰的“/”
# 語法:merge_slashes   on | off;
# 默認:merge_slashes   on;
# 配置塊:http、server、location

# DNS決議地址
# 語法:resolver    address...;
# 配置塊:http、server、location

# DNS決議的超時時間
# 語法:resolver_timeout    time;
# 默認:resolver_timeout    30s;
# 配置塊:http、server、location

# 回傳錯誤頁面是否在server中注明Nginx版本
# 語法:server_tokens   on | off;
# 默認:server_tokens   on;
# 配置塊:http、server、location

以下是在 Ubuntu 12.04 系統成功安裝 Nginx 之后的主組態檔:

#Nginx服務器正常啟動時會讀取該組態檔,以下的值都是默認的,若需要可自行修改;
#以下是配置選項

#Nginx worker行程運行的用戶以及用戶組
#語法格式:user  username[groupname]
#user  nobody;

#Nginx worker 行程個數
worker_processes  1;

#error 日志設定
#語法格式:error /path/file level
#其中/path/file是一個具體檔案;level是日志的輸出級別,其取值如下:
#debug info notice warn error crit alert emerg,從左至右級別增大;
#若設定一個級別后,則在輸出的日志檔案中只輸出級別大于或等于已設定的級別;
#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

#保存master行程ID的pid檔案存放路徑
#語法格式:pid path/file
#pid        logs/nginx.pid;

#事件類配置項
#一般有以下幾種配置:
#1、是否打開accept鎖
#   語法格式:accept_mutex [on | off];
#2、lock檔案的路徑
#   語法格式:lock_file  path/file;
#3、使用accept鎖后到真正建立連接之間的延遲時間
#   語法格式:accept_mutex_delay Nms;
#4、批量建立新連接
#   語法格式:multi_accept [on | off];
#5、選擇事件模型
#   語法格式:use [kqueue | rtisg | epoll | /dev/poll | select | poll | eventport];
#6、每個worker進行的最大連接數
#   語法格式:worker_connections number;
events {
    worker_connections  1024;
}

#以下是http模塊
http {
    include       mime.types;
    default_type  application/octet-stream;

    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
    #                  '$status $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';

    #access_log  logs/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    #gzip  on;

#server塊
#   每個server塊就是一個虛擬主機,按照server_name來區分
    server {
#監聽埠
        listen       80;
#主機名稱
        server_name  localhost;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;
#location語法:location[= | ~ | ~* | ^~ | @] /uri/ {}
        #location嘗試根據用戶請求中的URI來匹配 /uri運算式,若匹配成功,則執行{}里面的配置來處理用戶請求
#以下是location的一般配置項
#1、以root方式設定資源路徑
#   語法格式:root path;
#2、以alias方式設定資源路徑
#   語法格式:alias path;
#3、訪問首頁
#   語法格式:index file...;
#4、根據HTTP回傳碼重定向頁面
#   語法格式:error_page code [code...] [= | =answer-code] uri | @named_location;
#5、是否允許遞回使用error_page
#   語法格式:recursive_error_pages [on | off];
#6、try_files
#   語法格式:try_files path1 [path2] uri;
        location / {
            root   html;
            index  index.html index.htm;
        }

        #error_page  404              /404.html;

        # redirect server error pages to the static page /50x.html
        #
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }

        # proxy the PHP scripts to Apache listening on 127.0.0.1:80
        #
        #location ~ \.php$ {
        #    proxy_pass   http://127.0.0.1;
        #}

        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
        #
        #location ~ \.php$ {
        #    root           html;
        #    fastcgi_pass   127.0.0.1:9000;
        #    fastcgi_index  index.php;
        #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
        #    include        fastcgi_params;
        #}

        # deny access to .htaccess files, if Apache's document root
        # concurs with nginx's one
        #
        #location ~ /\.ht {
        #    deny  all;
        #}
    }

    # another virtual host using mix of IP-, name-, and port-based configuration
    #
    #server {
    #    listen       8000;
    #    listen       somename:8080;
    #    server_name  somename  alias  another.alias;

    #    location / {
    #        root   html;
    #        index  index.html index.htm;
    #    }
    #}

    # HTTPS server
    #
    #server {
    #    listen       443 ssl;
    #    server_name  localhost;

    #    ssl_certificate      cert.pem;
    #    ssl_certificate_key  cert.key;

    #    ssl_session_cache    shared:SSL:1m;
    #    ssl_session_timeout  5m;

    #    ssl_ciphers  HIGH:!aNULL:!MD5;
    #    ssl_prefer_server_ciphers  on;

    #    location / {
    #        root   html;
    #        index  index.html index.htm;
    #    }
    #}

}

參考資料:

《深入理解Nginx》

《Nginx模塊開發入門》

《Nginx開發從入門到精通》

https://www.kancloud.cn/digest/understandingnginx/202587

點擊得好禮

> 本文由作者pm1024:JAVA實驗手冊 發布,交流:583284584!

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

標籤:其他

上一篇:GStreamer基礎教程12 - 常用命令工具

下一篇:Elasticsearch系列---Elasticsearch的基本概念及作業原理

標籤雲
其他(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