> 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` 在 **主机或 IP 地址** 并 `10001` 在 **端口**。你可以在我们的 [文档](/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 轮换等其他设置，请访问 [此文档页面](/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 地址的端口 [**代理列表**](/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 地址的端口 [代理列表](/products/cn/proxies/dedicated-isp-proxies/self-service/proxy-list.md)，你可以在 Oxylabs 控制面板中找到。 `8001` 端口将为所有请求选取列表中的第一个 IP 地址。使用端口 `8000` 可自动进行 [代理 IP 轮换](/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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
