> ## Content Index
> Fetch the complete content index at: https://note.xdq.me/llms.txt
> Use this file to discover other available public pages before exploring further.

# centos 7 watchman 安装
- URL: https://note.xdq.me/centos-7-watchman-an-zhuang/
- Published: 2015-08-03T03:10:55.000Z
- Updated: 2026-10-03T03:06:02.000Z
- Author: xud6
- Tags: #Import 2026-10-03 02:45

安装编译环境

```
yum groupinstall 'Development tools'
yum install automake python-devel

```

克隆源代码

```
git clone https://github.com/facebook/watchman.git

```

（可选）使用发布的版本

```
git checkout v3.7.0

```

安装watchman

```
cd watchman
./autogen.sh
./configure
make
sudo make install

```

更改最大监控文件数

```
nano /etc/sysctl.conf

```

增加

```
fs.inotify.max_user_instances = 524288
fs.inotify.max_user_watches = 524288
fs.inotify.max_queued_events = 524288

```