> For the complete documentation index, see [llms.txt](https://developers.oxylabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.oxylabs.io/integrations/cn/proxy-integrations/macos.md).

# macOS

通过系统偏好设置在 macOS 上配置 Oxylabs 代理。适用于 Apple 台式机和笔记本电脑的代理设置分步指南。

**macOS** 是 Apple 台式机和笔记本电脑的操作系统（OS）。

查看本指南，了解如何配置以下 Oxylabs **代理** 用于 macOS：

* [**住宅和移动代理**](#residential-and-mobile-proxies)
* [**数据中心代理**](#datacenter-proxies)
* [**独享数据中心代理（自助版）**](#dedicated-datacenter-proxies-self-service)
* [**ISP代理**](#isp-proxies)
* [**独享ISP代理**](#dedicated-isp-proxies)

### **步骤 1**

点击 **Apple 图标** 在左上角，然后打开 **系统偏好设置**.

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-b94675e48c471183937425fbad5d44c006341156%2Fimage.png?alt=media" alt="MacOS System preferences"><figcaption></figcaption></figure>

### **步骤 2**

打开后 **系统偏好设置**，选择 **网络** 面板图标。

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-8364366a8cd5e08da6756d05527d2c32ac1d56e5%2Fimage.png?alt=media" alt="MacOS Network"><figcaption></figcaption></figure>

### **步骤 3**

选择 **Wi-Fi 网络** 你要配置的，然后点击 **高级** 在右下角。

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-28588dc31feac75c9d727d2e2c0ede5e5e364828%2Fimage.png?alt=media" alt="MacOS Advanced WiFi Settings"><figcaption></figcaption></figure>

### **步骤 4**

点击 **代理** 标签页，然后选择 `Web 代理（HTTP）`, `安全 Web 代理（HTTPS）`，或 `SOCKS 代理`.

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-c710af78b474392e537936a299dc43c2e6eeb926%2Fimage.png?alt=media" alt="Web Proxy HTTP"><figcaption></figcaption></figure>

### **步骤 5**

在 **Web 代理服务器**，输入你选择的代理详细信息：

* [住宅和移动代理](#residential-and-mobile-proxies)
* [数据中心代理](#datacenter-proxies)
* [独享数据中心代理（自助版）](#dedicated-datacenter-proxies-self-service)
* [ISP代理](#isp-proxies)
* [独享ISP代理](#dedicated-isp-proxies)

#### 住宅和移动代理

**代理主机：** `pr.oxylabs.io`

**代理端口：** `7777`

**用户名：** `customer-username`

**密码：** `password`

{% hint style="warning" %}
别忘了添加 `customer-` 部分到你的用户名中。
{% endhint %}

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-1be5b8d481b05706bd15013202832e971f4fd25a%2Fimage.png?alt=media" alt="MacOS Web Proxy Server"><figcaption></figcaption></figure>

{% hint style="info" %}
你也可以使用按国家/地区的条目，通过粘性会话获取所需国家/地区的出口节点。例如，要使用美国出口节点，请 `us-pr.oxylabs.io` 在 **Host or IP Address** 和 `10001` 在 **端口**旁边输入。你可以在我们的 [文档](https://developers.oxylabs.io/products/cn/proxies/residential-proxies/location-settings.md).
{% endhint %}

#### 数据中心代理

**代理主机：** `dc.oxylabs.io`

**代理端口：** `8000`

**用户名：** `user-username`

**密码：** `password`

{% hint style="warning" %}
别忘了添加 `user-` 部分到你的用户名中。
{% endhint %}

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-8581e01501fa816bd295e2fa9b9a64631bcb65cb%2Fmacos_dc_details.png?alt=media" alt="MacOS Web Proxy Server"><figcaption></figcaption></figure>

{% hint style="info" %}
端口 `8000` 将随机选取一个 IP 地址。对于其他设置，例如代理 IP 轮换，请访问 [此文档页面](https://developers.oxylabs.io/products/cn/proxies/datacenter-proxies/ip-control.md).
{% endhint %}

#### 独享数据中心代理（自助版）

**代理主机：** `ddc.oxylabs.io`

**代理端口：** `8001`

**用户名：** `user-username`

**密码：** `password`

{% hint style="warning" %}
别忘了添加 `user-` 部分到你的用户名中。
{% endhint %}

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-e211ae1e5ad70af891395bff945fc85718dcd3a1%2Fmacos_ddc_details.png?alt=media" alt="MacOS Web Proxy Server"><figcaption></figcaption></figure>

{% hint style="info" %}
你需要选择分配给已购买的 IP 地址的端口， [**代理列表**](https://developers.oxylabs.io/proxies/dedicated-datacenter-proxies/self-service/proxy-list)**,** ，你可以在 Oxylabs 的仪表板中找到。该 `8001` 端口会为所有请求从你的列表中选取第一个 IP 地址。
{% endhint %}

#### ISP代理

**代理主机：** `isp.oxylabs.io`

**代理端口：** `8001`

**用户名：** `user-username`

**密码：** `password`

{% hint style="warning" %}
别忘了添加 `user-` 部分到你的用户名中。
{% endhint %}

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-57f1721b76c163e7f999a5a63c6cd4e1b1c979fa%2Fmacos_isp_details.png?alt=media" alt="MacOS Web Proxy Server"><figcaption></figcaption></figure>

{% hint style="info" %}
你需要选择分配给已购买的 IP 地址的端口， [**代理列表**](https://developers.oxylabs.io/products/cn/proxies/isp-proxies/proxy-list.md)**,** ，你可以在 Oxylabs 的仪表板中找到。该 `8001` 端口会为所有请求从你的列表中选取第一个 IP 地址。
{% endhint %}

#### 独享ISP代理

**代理主机：** `disp.oxylabs.io`

**代理端口：** `8001`

**用户名：** `user-USERNAME`

**密码：** `PASSWORD`

{% hint style="warning" %}
别忘了添加 `user-` 部分到你的用户名中。
{% endhint %}

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-e545f6b3ce49f4a882a39fe875df95935a97438a%2Fmacos-1.png?alt=media" alt="MacOS Web Proxy Server"><figcaption></figcaption></figure>

{% hint style="info" %}
你需要选择分配给已购买的 IP 地址的端口， [代理列表](https://developers.oxylabs.io/products/cn/proxies/dedicated-isp-proxies/self-service/proxy-list.md)，你可以在 Oxylabs 控制面板中找到。 `8001` 端口会为所有请求从你的列表中选取第一个 IP 地址。使用端口 `8000` 用于自动 [代理 IP 轮换](https://developers.oxylabs.io/products/cn/proxies/dedicated-isp-proxies/self-service/proxy-rotation.md).
{% endhint %}

### **步骤 7**

勾选 **代理服务器需要密码** 复选框，并输入你的 Oxylabs 代理用户凭据：

**用户名：** `Oxylabs 代理用户用户名`

**密码：** `Oxylabs 代理用户密码`

{% hint style="info" %}
你可以在我们的 [**仪表板**](https://dashboard.oxylabs.io/en/)**.**
{% endhint %}

<figure><img src="https://1216392379-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU4lV7kLC2Df45W0aLQlX%2Fuploads%2Fgit-blob-f28202d4928380439ed303ebd476b44c8f693069%2Fproxy%20usename%20and%20psw.jpg?alt=media" alt="MacOS Proxy server login"><figcaption></figcaption></figure>

{% hint style="warning" %}
别忘了添加 `customer-` 或 `user-` 根据你选择的代理类型，为用户名添加前缀。
{% endhint %}

设置完成后，点击 **确定** 以确认并 **应用** 以激活设置。

就这样，你现在正在使用代理。

查找原始 macOS 集成博客文章 [这里](https://oxylabs.io/resources/integrations/mac).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers.oxylabs.io/integrations/cn/proxy-integrations/macos.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
