> 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/datacenter-proxies-guides/macos.md).

# MacOS

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

查看本指南，了解如何为 MacOS 配置 数据中心代理。

{% hint style="warning" %}
**注意：** 本指南中提供的一些截图展示的是使用 住宅代理 的设置过程，仅供说明；请参阅正文中提供的 数据中心代理 的具体指南。
{% endhint %}

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

<figure><img src="/files/3f330c7ad13db45036b1735ad20188c10c7e3d49" alt="MacOS System preferences"><figcaption></figcaption></figure>

**步骤 2。** 打开 **系统偏好设置**后，选择 **Network** 面板图标。

<figure><img src="/files/3f9fb511380f1e8896e980db24ec7b308212f362" alt="MacOS Network"><figcaption></figcaption></figure>

**步骤 3。** 选择 **Wi-Fi 网络** ，然后点击你要配置的网络， **Advanced** 位于右下角。

<figure><img src="/files/b627e806a62ad1f9107f73c88a3acbcfc48f79c6" alt="MacOS Advanced WiFi Settings"><figcaption></figcaption></figure>

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

<figure><img src="/files/f27440ae6289834520cdf1997bc9858a7f4e0fb2" alt="Web Proxy HTTP"><figcaption></figcaption></figure>

**步骤 5。** 在服务器设置下，输入你的代理详细信息：

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

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

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

<figure><img src="/files/fbcdd754266c7f571de0f6292d99d4f60ab2de13" alt="MacOS Web Proxy Server"><figcaption></figcaption></figure>

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

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

**密码：** `密码`

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

<figure><img src="/files/c03f69d8202f9fb9f9a7fcfdddffcb16c40c6308" alt="MacOS Proxy server login"><figcaption></figcaption></figure>

全部设置完成后，点击 **OK** 以确认，并点击 **应用** 以激活设置。&#x20;

就是这样，你现在正在使用代理。&#x20;

查找原始 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:

```
GET https://developers.oxylabs.io/integrations/cn/proxy-integrations/datacenter-proxies-guides/macos.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
