文件操作 - macos.md
返回文件管理
返回主菜单
删除本文件
文件: /usr/local/src/netdata/packaging/installer/methods/macos.md
编辑文件内容
<!-- --- title: "Install Netdata on macOS" custom_edit_url: https://github.com/netdata/netdata/edit/master/packaging/installer/methods/macos.md --- --> # Install Netdata on macOS Netdata works on macOS, albeit with some limitations. The number of charts displaying system metrics is limited, but you can use any of Netdata's [external plugins](../../../collectors/plugins.d/README.md) to monitor any services you might have installed on your macOS system. You could also use a macOS system as the parent node in a [streaming configuration](/streaming/README.md). We recommend installing Netdata with the community-created and -maintained [**Homebrew package**](#install-netdata-with-the-homebrew-package). - [Install Netdata via the Homebrew package](#install-netdata-with-the-homebrew-package) - [Install Netdata from source](#install-netdata-from-source) ## Install Netdata with the Homebrew package If you don't have [Homebrew](https://brew.sh/) installed already, begin with their installation script: ```bash /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ``` Next, you can use Homebrew's package, which installs Netdata all its dependencies in a single step: ```sh brew install netdata ``` > Homebrew will place your Netdata configuration directory at `/usr/local/etc/netdata/`. Use the `edit-config` script > and the files in this directory to configure Netdata. For reference, you can find stock configuration files at > `/usr/local/Cellar/netdata/{NETDATA_VERSION}/lib/netdata/conf.d/`. Skip on ahead to the [What's next?](#whats-next) section to find links to helpful post-installation guides. ## Install Netdata from source We don't recommend installing Netdata from source on macOS, as it can be difficult to configure and install dependencies manually. First open your terminal of choice and install the Xcode development packages. ```bash xcode-select --install ``` Click **Install** on the Software Update popup window that appears. Then, use the same terminal session to use Homebrew to install some of Netdata's prerequisites. ```bash brew install ossp-uuid autoconf automake pkg-config libuv lz4 json-c openssl@1.1 ``` If you want to use the [database engine](/database/engine/README.md) to store your metrics, you need to download and install the [Judy library](https://sourceforge.net/projects/judy/) before proceeding compiling Netdata. Next, download Netdata from our GitHub repository: ```bash git clone https://github.com/netdata/netdata.git ``` Finally, `cd` into the newly-created directory and then start the installer script: ```bash cd netdata/ sudo ./netdata-installer.sh --install /usr/local ``` > Your Netdata configuration directory will be at `/usr/local/netdata/`, and your stock configuration directory will > be at **`/usr/local/lib/netdata/conf.d/`.** > > The installer will also install a startup plist to start Netdata when your macOS system boots. ## What's next? When you finish installing Netdata, be sure to visit our [step-by-step guide](/docs/guides/step-by-step/step-00.md) for a fully-guided tour into Netdata's capabilities and how to configure it according to your needs. Or, if you're a monitoring and system administration pro, skip ahead to our [getting started guide](/docs/getting-started.md) for a quick overview.
修改文件时间
将文件时间修改为当前时间的前一年
删除文件