日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程语言 > php >内容正文

php

php 添加inotify扩展,php inotify 扩展的安装

發(fā)布時(shí)間:2024/9/27 php 48 豆豆
生活随笔 收集整理的這篇文章主要介紹了 php 添加inotify扩展,php inotify 扩展的安装 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

一、安裝

1)? 從內(nèi)核和目錄里面查看是否支持inotify

[root@nfs01 ~]#?uname -r

2.6.32-573.el6.x86_64

[root@nfs01 ~]#**?ls -l /proc/sys/fs/inotify/**??? -→主要查看下面有沒有三個(gè)目錄

總用量 0

-rw-r--r-- 1 root root 0 1月? 21 13:03 max_queued_events

-rw-r--r-- 1 root root 0 1月? 21 13:03 max_user_instances

-rw-r--r-- 1 root root 0 1月? 21 13:03 max_user_watches

2**)檢查是否有安裝inotify?**如果沒有就安裝

rpm -qa inotify-tools

沒有就先安裝epol源

yum.repos.d]#

之后安裝

[root@nfs01 ~]#**?yum install inotify-tools -y**

二、參數(shù)講解、

[root@nfs01 ~]#?which inotifywait

/usr/bin/inotifywait

[root@nfsserver inotify-tools]#?bin/inotifywait —help

r :遞歸查詢目錄

q:打印很少的信息,僅僅打印監(jiān)控事件的信息? 安靜狀態(tài)

m:始終保持事件監(jiān)聽狀態(tài)

excluder#排除文件或者目錄的時(shí)候不區(qū)分大小寫

timefmt:指定時(shí)間輸出的格式

d :后臺(tái)運(yùn)行

-e: 事件 里面有很多方法

下面是事件參數(shù)

Events:

access file or directory contents were read 訪問

modify file or directory contents were written 修改

attrib file or directory attributes changed 屬性發(fā)生變化

close_write file or directory closed, after being opened in 寫入之后關(guān)閉

writeable mode

close_nowrite file or directory closed, after being opened in read-only mode

close file or directory closed, regardless of read/write mode

open file or directory opened

moved_to file or directory moved to watched directory 移動(dòng)到哪里

moved_from file or directory moved from watched directory

move file or directory moved to or from watched directory

create file or directory created within watched directory

delete file or directory deleted within watched directory

delete_self file or directory was deleted

unmount file system containing file or directory unmounted卸載

之后就可以和nfs共享服務(wù)器之間的實(shí)時(shí)備份

我曾七次鄙視自己的靈魂: 第一次,當(dāng)它本可進(jìn)取時(shí),卻故作謙卑; 第二次,當(dāng)它空虛時(shí),用愛欲來填充; 第三次,在困難和容易之間,它選擇了容易; 第四次,它犯了錯(cuò),卻借由別人也會(huì)犯錯(cuò)來寬慰自己; 第五次,它自由軟弱,卻把它認(rèn)為是生命的堅(jiān)韌; 第六次,當(dāng)它鄙夷一張丑惡的嘴臉時(shí),卻不知那正是自己面具中的一副; 第七次,它側(cè)身于生活的污泥中雖不甘心,卻又畏首畏尾。

總結(jié)

以上是生活随笔為你收集整理的php 添加inotify扩展,php inotify 扩展的安装的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。