配置 HTTP 代理 (HTTP proxy)

配置 HTTP 代理 [HTTP proxy]

  • 1. Proxies
  • 2. curl
    • 2.1. Environment
    • 2.2. Proxy protocol prefixes
  • 3. Use an HTTP proxy (使用 HTTP 代理)
    • 3.1. Using the examples (使用示例)
      • 3.1.1. Linux or macOS
      • 3.1.2. Windows Command Prompt
    • 3.2. Authenticating to a proxy (向代理進行身份驗證)
      • 3.2.1. Linux or macOS
      • 3.2.2. Windows Command Prompt
  • 4. 配置 HTTP 代理 (HTTP proxy)
    • 4.1. Linux 系統配置 `http_proxy` 和 `https_proxy` 環境變量
    • 4.2. Windows 系統配置 `http_proxy` 和 `https_proxy` 環境變量
      • 4.2.1. cmd
      • 4.2.2. PowerShell
  • 5. 為 WSL2 (Windows Subsystem for Linux 2) 配置 HTTP 代理
    • 5.1. `wsl --list --verbose`
    • 5.2. 在 Windows 系統上配置 Cl* for Windows
    • 5.3. 在 WSL2 (Windows Subsystem for Linux 2) 系統上配置
    • 5.4. 為 git 設置代理
  • References

1. Proxies

https://www.gnu.org/software/wget/manual/html_node/Proxies.html

proxy UK [?pr?k.si] US [?prɑ?k.si]:n. 代理人,代表,代理權,代表權

Proxies are special-purpose HTTP servers designed to transfer data from remote servers to local clients.

Wget supports proxies for both HTTP and FTP retrievals. The standard way to specify proxy location, which Wget recognizes, is using the following environment variables:

  • http_proxy
  • https_proxy

If set, the http_proxy and https_proxy variables should contain the URLs of the proxies for HTTP and HTTPS connections respectively.

  • ftp_proxy

This variable should contain the URL of the proxy for FTP connections. It is quite common that http_proxy and ftp_proxy are set to the same URL.

  • no_proxy

This variable should contain a comma-separated list of domain extensions proxy should not be used for. For instance, if the value of no_proxy is ‘.mit.edu’, proxy will not be used to retrieve documents from MIT.

Some proxy servers require authorization to enable you to use them. The authorization consists of username and password, which must be sent by Wget.

You may specify your username and password either through the proxy URL or through the command-line options. Assuming that the company’s proxy is located at ‘proxy.company.com’ at port 8001, a proxy URL location containing authorization data might look like this:

http://hniksic:mypassword@proxy.company.com:8001/

2. curl

https://curl.se/docs/manpage.html

curl is a tool for transferring data from or to a server using URLs. It supports these protocols: DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, RTMP, RTMPS, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET, TFTP, WS and WSS.

2.1. Environment

The environment variables can be specified in lower case or upper case. The lower case version has precedence. "http_proxy" is an exception as it is only available in lower case.
環境變量可以以小寫或大寫形式指定,小寫版本優先。"http_proxy" 是個例外,因為它僅以小寫形式提供。

precedence UK [?pres.?.d?ns] US [?pres.?.dens]:n. 優先,優先權

2.2. Proxy protocol prefixes

The proxy string may be specified with a protocol:// prefix to specify alternative proxy protocols.

If no protocol is specified in the proxy string or if the string does not match a supported one, the proxy is treated as an HTTP proxy.

  • http://

Makes it use it as an HTTP proxy. The default if no scheme prefix is used.

  • https://

Makes it treated as an HTTPS proxy.

3. Use an HTTP proxy (使用 HTTP 代理)

https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-proxy.html

3.1. Using the examples (使用示例)

The following examples show the environment variable name in all uppercase letters. However, if you specify a variable twice using different cases, the lowercase letters take precedence. We recommend that you define each variable only once to avoid system confusion and unexpected behavior.
以下示例顯示了全部使用大寫字母的環境變量名稱。但是,如果使用不同的大小寫指定一個變量兩次,則優先使用小寫字母。建議您只定義每個變量一次,以避免系統混淆和意外行為。

3.1.1. Linux or macOS

$ export HTTP_PROXY=http://10.15.20.25:1234
$ export HTTP_PROXY=http://proxy.example.com:1234
$ export HTTPS_PROXY=http://10.15.20.25:5678
$ export HTTPS_PROXY=http://proxy.example.com:5678$ export NO_PROXY=169.254.169.254

NO_PROXY 環境變量設置為無需代理的主機或域名。

3.1.2. Windows Command Prompt

  • To set for current session only (僅為當前會話設置)

Using set to set an environment variable changes the value used until the end of the current command prompt session, or until you set the variable to a different value.
使用 set 設置環境變量會更改使用的值,直到當前命令提示符會話結束,或者直到您將該變量設置為其他值。

C:\> set HTTP_PROXY=http://10.15.20.25:1234
C:\> set HTTP_PROXY=http://proxy.example.com:1234
C:\> set HTTPS_PROXY=http://10.15.20.25:5678
C:\> set HTTPS_PROXY=http://proxy.example.com:5678 C:\> set NO_PROXY=169.254.169.254
  • To set for all sessions (為所有會話設置)
C:\> setx HTTP_PROXY http://10.15.20.25:1234
C:\> setx HTTP_PROXY http://proxy.example.com:1234
C:\> setx HTTPS_PROXY http://10.15.20.25:5678
C:\> setx HTTPS_PROXY http://proxy.example.com:5678 C:\> setx NO_PROXY 169.254.169.254

Using setx to set an environment variable changes the value used in both the current command prompt session and all command prompt sessions that you create after running the command. It does not affect other command shells that are already running at the time you run the command.
使用 setx 設置環境變量會更改當前命令提示符會話和運行該命令后創建的所有命令提示符會話中使用的值。它不影響在運行該命令時已經運行的其他命令 shell。

3.2. Authenticating to a proxy (向代理進行身份驗證)

The AWS CLI supports HTTP Basic authentication. Specify the username and password in the proxy URL, as follows.

3.2.1. Linux or macOS

$ export HTTP_PROXY=http://username:password@proxy.example.com:1234
$ export HTTPS_PROXY=http://username:password@proxy.example.com:5678

3.2.2. Windows Command Prompt

  • To set for current session only (僅為當前會話設置)

Using set to set an environment variable changes the value used until the end of the current command prompt session, or until you set the variable to a different value.
使用 set 設置環境變量會更改使用的值,直到當前命令提示符會話結束,或者直到您將該變量設置為其他值。

C:\> set HTTP_PROXY=http://username:password@proxy.example.com:1234
C:\> set HTTPS_PROXY=http://username:password@proxy.example.com:5678
  • To set for all sessions (為所有會話設置)
C:\> setx HTTP_PROXY http://username:password@proxy.example.com:1234
C:\> setx HTTPS_PROXY http://username:password@proxy.example.com:5678

Using setx to set an environment variable changes the value used in both the current command prompt session and all command prompt sessions that you create after running the command. It does not affect other command shells that are already running at the time you run the command.
使用 setx 設置環境變量會更改當前命令提示符會話和運行該命令后創建的所有命令提示符會話中使用的值。它不影響在運行該命令時已經運行的其他命令 shell。

4. 配置 HTTP 代理 (HTTP proxy)

You can configure the HTTP_PROXY and HTTPS_PROXY environment variables with either the DNS domain names or IP addresses and port numbers that your proxy servers use.
使用 HTTP 代理需要配置環境變量 http_proxyhttps_proxy

4.1. Linux 系統配置 http_proxyhttps_proxy 環境變量

ProxyServer 為代理服務器的域名或者 IPport 為端口號。如果你的代理服務器需要用戶名和密碼才能訪問,需要填寫上面的 usernamepassword 部分,否則的話,可以省略這兩部分。

  • 為當前用戶臨時配置環境變量
export http_proxy="http://username:password@ProxyServer:port"
export https_proxy="https://username:password@ProxyServer:port"export http_proxy="http://ProxyServer:port"
export https_proxy="https://ProxyServer:port"
# With Authentication
export HTTP_PROXY=[username]:[password]@[proxy-web-or-IP-address]:[port-number]
export HTTPS_PROXY=[username]:[password]@[proxy-web-or-IP-address]:[port-number]
export FTP_PROXY=[username]:[password]@ [proxy-web-or-IP-address]:[port-number]
export NO_PROXY=localhost,127.0.0.1# Without Authentication
export HTTP_PROXY=[proxy-web-or-IP-address]:[port-number]
export HTTPS_PROXY=[proxy-web-or-IP-address]:[port-number]
export FTP_PROXY=[proxy-web-or-IP-address]:[port-number]
export NO_PROXY=localhost,127.0.0.1

通過 export 指令臨時設置代理:

(base) yongqiang@yongqiang:~$ export http_proxy="http://192.105.9.13:7890"
(base) yongqiang@yongqiang:~$ export https_proxy="https://192.105.9.13:7890"

查看代理:

(base) yongqiang@yongqiang:~$ env | grep -i proxy
https_proxy=https://192.105.9.13:7890
http_proxy=http://192.105.9.13:7890
(base) yongqiang@yongqiang:~$

臨時取消代理:

(base) yongqiang@yongqiang:~$ unset http_proxy
(base) yongqiang@yongqiang:~$ unset https_proxy

查看代理:

(base) yongqiang@yongqiang:~$ env | grep -i proxy
(base) yongqiang@yongqiang:~$

測試方法:

wget www.google.com
curl www.google.comwget --proxy http://192.105.9.13:7890 www.google.com
curl --proxy http://192.105.9.13:7890 www.google.com
(base) yongqiang@yongqiang:~$ wget www.google.com
--2024-06-01 23:30:18--  http://www.google.com/
Connecting to 192.105.9.13:7890... connected.
Proxy request sent, awaiting response... 302 Found
Location: http://www.google.com.hk/url?sa=p&hl=zh-CN&pref=hkredirect&pval=yes&q=http://www.google.com.hk/&ust=1717255848963743&usg=AOvVaw3YRiYLmVQtcHhr0aEN_TJG [following]
--2024-06-01 23:30:19--  http://www.google.com.hk/url?sa=p&hl=zh-CN&pref=hkredirect&pval=yes&q=http://www.google.com.hk/&ust=1717255848963743&usg=AOvVaw3YRiYLmVQtcHhr0aEN_TJG
Reusing existing connection to 192.105.9.13:7890.
Proxy request sent, awaiting response... 302 Found
Location: http://www.google.com.hk/ [following]
--2024-06-01 23:30:19--  http://www.google.com.hk/
Reusing existing connection to 192.105.9.13:7890.
Proxy request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html.1’index.html.1                           [ <=>                                                          ]  19.33K  --.-KB/s    in 0.01s2024-06-01 23:30:20 (1.98 MB/s) - ‘index.html.1’ saved [19794](base) yongqiang@yongqiang:~$
(base) yongqiang@yongqiang:~$ curl www.google.com
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="http://www.google.com.hk/url?sa=p&amp;hl=zh-CN&amp;pref=hkredirect&amp;pval=yes&amp;q=http://www.google.com.hk/&amp;ust=1717294991706701&amp;usg=AOvVaw2Ej1rgvrxOVAsV8uF9jM2M">here</A>.
</BODY></HTML>
(base) yongqiang@yongqiang:~$
  • 為當前用戶永久配置環境變量

~/.bashrc 文件中添加如下內容,可將 http_proxyhttps_proxy 永久配置在當前用戶的環境變量中。

export http_proxy="http://username:password@ProxyServer:port"
export https_proxy="https://username:password@ProxyServer:port"export http_proxy="http://ProxyServer:port"
export https_proxy="https://ProxyServer:port"
# With Authentication
export HTTP_PROXY=[username]:[password]@[proxy-web-or-IP-address]:[port-number]
export HTTPS_PROXY=[username]:[password]@[proxy-web-or-IP-address]:[port-number]
export FTP_PROXY=[username]:[password]@ [proxy-web-or-IP-address]:[port-number]
export NO_PROXY=localhost,127.0.0.1"# Without Authentication
export HTTP_PROXY=[proxy-web-or-IP-address]:[port-number]
export HTTPS_PROXY=[proxy-web-or-IP-address]:[port-number]
export FTP_PROXY=[proxy-web-or-IP-address]:[port-number]
export NO_PROXY=localhost,127.0.0.1

永久環境變量配置完畢后,注銷并重新登錄,配置生效。

To force apply your new proxy settings in the current Terminal session, execute the source command:

source ~/.bashrc
  • 為所有用戶永久配置環境變量

/etc/environment/etc/profile 文件中添加如下內容,可將 http_proxyhttps_proxy 永久配置在所有用戶的環境變量中。

export http_proxy="http://username:password@ProxyServer:port"
export https_proxy="https://username:password@ProxyServer:port"export http_proxy="http://ProxyServer:port"
export https_proxy="https://ProxyServer:port"
# With Authentication
export HTTP_PROXY=[username]:[password]@[proxy-web-or-IP-address]:[port-number]
export HTTPS_PROXY=[username]:[password]@[proxy-web-or-IP-address]:[port-number]
export FTP_PROXY=[username]:[password]@ [proxy-web-or-IP-address]:[port-number]
export NO_PROXY=localhost,127.0.0.1"# Without Authentication
export HTTP_PROXY=[proxy-web-or-IP-address]:[port-number]
export HTTPS_PROXY=[proxy-web-or-IP-address]:[port-number]
export FTP_PROXY=[proxy-web-or-IP-address]:[port-number]
export NO_PROXY=localhost,127.0.0.1

永久環境變量配置完畢后,注銷并重新登錄,配置生效。

To force apply your new proxy settings in the current Terminal session, execute the source command:

source /etc/profile

4.2. Windows 系統配置 http_proxyhttps_proxy 環境變量

4.2.1. cmd

ProxyServer 為代理服務器的域名或者 IPport 為端口號。如果你的代理服務器需要用戶名和密碼才能訪問,需要填寫上面的 usernamepassword 部分,否則的話,可以省略這兩部分。

  • 臨時環境變量
set http_proxy=http://username:password@ProxyServer:port
set https_proxy=https://username:password@ProxyServer:portset http_proxy=http://ProxyServer:port
set https_proxy=https://ProxyServer:port
  • 永久環境變量

http_proxyhttps_proxy 永久配置在當前用戶的環境變量中。

setx "http_proxy" "http://username:password@ProxyServer:port"
setx "https_proxy" "https://username:password@ProxyServer:port"setx "http_proxy" "http://ProxyServer:port"
setx "https_proxy" "https://ProxyServer:port"

永久環境變量配置完畢后,將在新打開的終端中生效,當前終端不會立即生效。

4.2.2. PowerShell

ProxyServer 為代理服務器的域名或者 IPport 為端口號。如果你的代理服務器需要用戶名和密碼才能訪問,需要填寫上面的 usernamepassword 部分,否則的話,可以省略這兩部分。

  • 臨時環境變量
$env:http_proxy="http://username:password@ProxyServer:port"
$env:https_proxy="https://username:password@ProxyServer:port"$env:http_proxy="http://ProxyServer:port"
$env:https_proxy="https://ProxyServer:port"
  • 永久環境變量

http_proxyhttps_proxy 永久配置在當前用戶的環境變量中。

[environment]::SetEnvironmentvariable("http_proxy", "http://username:password@ProxyServer:port", "User")
[environment]::SetEnvironmentvariable("https_proxy", "https://username:password@ProxyServer:port", "User")[environment]::SetEnvironmentvariable("http_proxy", "http://ProxyServer:port", "User")
[environment]::SetEnvironmentvariable("https_proxy", "https://ProxyServer:port", "User")

永久環境變量配置完畢后,將在新打開的終端中生效,當前終端不會立即生效。

5. 為 WSL2 (Windows Subsystem for Linux 2) 配置 HTTP 代理

5.1. wsl --list --verbose

C:\Users\cheng>wsl --list --verboseNAME            STATE           VERSION
* Ubuntu-20.04    Running         2C:\Users\cheng>

5.2. 在 Windows 系統上配置 Cl* for Windows

Cl* for Windows Download - Cl*.for.Windows-0.20.39-win.7z
E:\software\Cl*.for.Windows-0.20.39-win\Cl* for Windows.exe

  • General

允許局域網代理 Allow LAN

在這里插入圖片描述

在 Gh* 控制面板里點擊左側導航欄手機代理,找到 Cl* for Windows 訂閱地址并點擊復制。

在這里插入圖片描述

  • Profiles

在 Profiles 頁面頂部,粘貼 Cl* 配置訂閱鏈接,隨后點擊 Download 下載配置文件。下載成功后,Cl* for Windows 將自動切換至下載的配置文件。

在這里插入圖片描述

  • Proxies

切換代理模式為規則 (Rule)。

全局 (Global):所有請求直接發往代理服務器,代理所有流量
規則 (Rule):所有請求根據配置文件規則進行分流,只代理國外流量
直連 (Direct):所有請求直接發往目的地,不代理任何流量

在這里插入圖片描述

5.3. 在 WSL2 (Windows Subsystem for Linux 2) 系統上配置

通過 export 指令臨時設置代理:

(base) yongqiang@yongqiang:~$ export http_proxy="http://192.105.9.13:7890"
(base) yongqiang@yongqiang:~$ export https_proxy="https://192.105.9.13:7890"

查看代理:

(base) yongqiang@yongqiang:~$ env | grep -i proxy
https_proxy=https://192.105.9.13:7890
http_proxy=http://192.105.9.13:7890
(base) yongqiang@yongqiang:~$

測試方法:

wget www.google.com
curl www.google.comwget --proxy http://192.105.9.13:7890 www.google.com
curl --proxy http://192.105.9.13:7890 www.google.com

5.4. 為 git 設置代理

臨時設置 git 代理:

# Without Authentication
git config --global http.proxy http://192.105.9.13:7890
git config --global https.proxy https://192.105.9.13:7890# With Authentication
git config --global http.proxy http://username:password@192.105.9.13:7890
git config --global https.proxy https://username:password@192.105.9.13:7890

取消 git 代理:

git config --global --unset http.proxy
git config --global --unset https.proxy

git 的任何全局設置都可以用 git config --global --unset * 來取消。

查看 git 代理:

git config --global --get http.proxy
git config --global --get https.proxy

查看 git 全局設置:

git config --global -l

查看 git 的全局設置。如果設置 git 代理成功,則列表輸出會有以 http.proxy= and https.proxy= 開頭的行。如果取消 git 代理成功,則以 http.proxy= and https.proxy= 開頭的行將不會出現在列表輸出中。

使用以下命令查看并修改 git 的配置,git 的默認編輯器會打開 ~/.gitconfig 文件。

git config --global --edit
(base) yongqiang@yongqiang:~$ git config --global http.proxy http://192.105.9.13:7890
(base) yongqiang@yongqiang:~$ git config --global https.proxy https://192.105.9.13:7890
(base) yongqiang@yongqiang:~$
(base) yongqiang@yongqiang:~$ git config --global -l
user.email=***@163.com
user.name=***@163.com
core.editor=vim
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
https.proxy=https://192.105.9.13:7890
http.proxy=http://192.105.9.13:7890
(base) yongqiang@yongqiang:~$

References

[1] Yongqiang Cheng, https://yongqiang.blog.csdn.net/
[2] 配置 HTTP 代理, https://support.huaweicloud.com/usermanual-hcli/hcli_22_001.html
[3] Use an HTTP proxy, https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-proxy.html
[4] Define proxy settings, https://help.ubuntu.com/stable/ubuntu-help/net-proxy.html.en

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/bicheng/21408.shtml
繁體地址,請注明出處:http://hk.pswp.cn/bicheng/21408.shtml
英文地址,請注明出處:http://en.pswp.cn/bicheng/21408.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

Tailwindcss Layout布局相關樣式及實戰案例,5萬字長文,附完整源碼和效果截圖

aspect 相關樣式類 基礎樣式 ClassPropertiesaspect-autoaspect-ratio: auto;aspect-squareaspect-ratio: 1 / 1;aspect-videoaspect-ratio: 16 / 9; 案例&#xff1a;引入B站視頻 Use the aspect-* utilities to set the desired aspect ratio of an element. 使用’ asp…

兩款 IntelliJ IDEA 的 AI 編程插件

介紹兩款 IntelliJ IDEA 的 AI 編程插件&#xff1a;通義靈碼和 CodeGeeX。 通義靈碼 這是由阿里推出的一個基于通義大模型的 AI 編碼助手。 它提供了代碼智能生成、研發智能問答等功能。通義靈碼經過海量優秀開源代碼數據訓練&#xff0c;可以根據當前代碼文件及跨文件的上下…

kafka-偏移量圖解

生產者偏移量&#xff1a;生產者發送消息時寫入到哪個位置&#xff08;主題的每個分區會存儲一個 leo 即將寫入消息的偏移量&#xff09;&#xff0c;每次寫完消息 leo 會 1 消費者偏移量&#xff1a;消費者從哪個位置開始消費消息&#xff0c;小于等于 leo&#xff0c;每個組…

數據賦能(107)——體系:數據采集——概述、關注焦點

概述 數據采集是指利用特定設備或技術&#xff0c;從原始數據源中捕獲和記錄數據的過程。 數據采集的主要目的是為了獲取特定目標或現象的相關信息&#xff0c;以支持后續的數據分析、決策制定、業務優化等過程。 數據采集的重要性在于為企業和組織提供了關鍵的信息基礎&…

【Qt】對話框

文章目錄 1 :peach:對話框介紹:peach:2 :peach:對話框的分類:peach:2.1 :apple:模態對話框:apple:2.2 :apple:非模態對話框:apple:2.3 :apple:混合屬性對話框:apple: 3 :peach:Qt 內置對話框:peach:3.1 :apple:消息對話框 QMessageBox:apple: 1 &#x1f351;對話框介紹&#x…

如何配置Oracle的ACL權限

配置Oracle的ACL&#xff08;訪問控制列表&#xff09;權限是一個涉及多個步驟的過程。以下是一個清晰的步驟指南&#xff0c;用于配置Oracle的ACL權限&#xff1a; 1. 創建ACL 使用DBMS_NETWORK_ACL_ADMIN.CREATE_ACL過程來創建一個新的ACL。 sql BEGIN DBMS_NETWORK_ACL_…

pod 控制器介紹

一 pod 控制器相關理論介紹 1&#xff0c;Pod控制器 是什么 Pod控制器&#xff0c;又稱之為工作負載&#xff08;workload&#xff09;&#xff0c;是用于實現管理pod的中間層&#xff0c;確保pod資源符合預期的狀態&#xff0c;pod的資源出現故障時&#xff0c;會嘗試進行…

頭歌springboot初體驗

頭歌(HeadGo)平臺上的Spring Boot初體驗課程為學習者提供了一個深入了解和實踐Spring Boot 框架的機會。以下是對頭歌Spring Boot初體驗課程的清晰歸納和介紹: 1. 課程概述 目標:通過本課程,學習者將能夠掌握Spring Boot的基礎知識、核心特性和實踐應用。 內容:課程內容…

[數據集][目標檢測]水下管道泄漏破損檢測數據集VOC+YOLO格式2069張2類別

數據集格式&#xff1a;Pascal VOC格式YOLO格式(不包含分割路徑的txt文件&#xff0c;僅僅包含jpg圖片以及對應的VOC格式xml文件和yolo格式txt文件) 圖片數量(jpg文件個數)&#xff1a;2069 標注數量(xml文件個數)&#xff1a;2069 標注數量(txt文件個數)&#xff1a;2069 標注…

【2024年5月備考新增】】 考前篇(30)《必備資料(13) - 論文串講-干系人管理》

過程定義輸入工具技術輸出實際應用識別干系人識別能影響項目決策、 活動或結果的個人、 群體或組織,以及被 項目決策、活動或結 果所影響的個人、群 體或組織,并分析和 記錄他們的相關信息 的過程1、項目章程2、立項管理文件 3、項目管理計劃.溝通管理計劃.干系人參與計劃 4、…

時間序列的譜分解pt.2

16.dvi (berkeley.edu)https://www.stat.berkeley.edu/~bartlett/courses/153-fall2010/lectures/16.pdfpt1 時間序列的譜分解-CSDN博客

理解不同層的表示(layer representations)

在機器學習和深度學習領域&#xff0c;特別是在處理音頻和自然語言處理&#xff08;NLP&#xff09;任務時&#xff0c;"層的表示"&#xff08;layer representations&#xff09;通常是指神經網絡不同層在處理輸入數據時生成的特征或嵌入。這些表示捕獲了輸入數據的…

PostgreSQL的視圖pg_locks

PostgreSQL的視圖pg_locks pg_locks 是 PostgreSQL 提供的系統視圖&#xff0c;用于顯示當前數據庫中的鎖信息。通過查詢這個視圖&#xff0c;數據庫管理員可以監控鎖的使用情況&#xff0c;識別潛在的鎖爭用和死鎖問題&#xff0c;并優化數據庫性能。 pg_locks 視圖字段說明…

新書推薦:1.2 動態鏈接庫與API

本節必須掌握的知識點&#xff1a; kernel32.dll user32.dll gdi32.dll ■動態鏈接庫 最早的軟件開發過程&#xff0c;所有的功能實現都是有程序員獨立完成的。在這個過程中&#xff0c;我們很快就會發現&#xff0c;有很多常用的功能模塊是可以重復利用的&#xff0c;我們將…

【2024年5月備考新增】】 考前篇(29)《必備資料(12) - 論文串講-溝通管理》

過程定義輸入工具技術輸出實際應用規劃 溝通 管理根據干系人的信 息需求和要求及 組織的可用資產 情況,制訂合適 的項目溝通方式 和計劃的過程1、項目章程2、項目管理計劃.資源管理計劃.干系人參與計劃 3、項目文件.需求文件.干系人登記冊4、事業環境因組織過程資1、專家判斷2…

Nginx服務的主配置文件及配置舉例

Nginx服務的主配置文件 安裝Nginx認識Nginx服務全局配置I/O 事件配置HTTP 配置日志格式設定 訪問狀態統計配置查看Nginx已安裝模塊修改 nginx.conf 配置文件重啟服務&#xff0c;訪問測試 基于授權的訪問控制準備用戶密碼認證文件修改 nginx.conf 配置文件重啟服務&#xff0c;…

java向上轉型

介紹 代碼 父類 package b;public class father_ {//father classString name"動物";int age10;public void sleep() {System.out.println("睡");}public void run() {System.out.println("跑");}public void eat() {System.out.println("…

ISCC2024之Misc方向WP

目錄 FunZip Magic_Keyboard Number_is_the_key RSA_KU 成語學習 鋼鐵俠在解密 工業互聯網模擬仿真數據分析 精裝四合一 時間刺客 有人讓我給你帶個話 FunZip 題目給了一個txt&#xff0c;內容如下 一眼丁真&#xff0c;base隱寫&#xff0c;使用工具即可得到flag Fl…

聯邦學習的簡要概述

聯邦學習的簡要概述 聯邦學習&#xff08;Federated Learning, FL&#xff09;是一種分布式機器學習方法&#xff0c;旨在保護數據隱私的同時&#xff0c;利用多方數據進行模型訓練。以下是對聯邦學習的詳細介紹&#xff0c;包括其基本概念、工作流程、優勢和挑戰&#xff0c;…

常見的 MySQL 優化方法

常見的 MySQL 優化方法 常見的 MySQL 優化方法選擇最合適的字段屬性盡量把字段設置為 NOT NULL使用連接&#xff08;JOIN&#xff09;來代替子查詢&#xff08;Sub-Queries&#xff09;使用聯合&#xff08;UNION&#xff09;來代替手動創建的臨時表事務鎖定表使用外鍵使用索引…