發表文章

目前顯示的是 5月, 2018的文章

使用slapcat 備份 去除系統產生的資料

創建正規表達 vim openldap-backup.synax 內容 /^creatorsName: /d /^createTimestamp: /d /^modifiersName: /d /^modifyTimestamp: /d /^structuralObjectClass: /d /^entryUUID: /d /^entryCSN: /d # cat openldap-backup.ldif | sed -f openldap-backup.synax > openldap-compute.ldif # openldap-backup.ldif 原先的檔案 # openldap-backup.syna 處理資料的檔案 # openldap-compute.ldif 處理後的檔案

httpd 禁止訪問目錄

vim  /etc/httpd/conf/httpd.conf <Directory "/var/www/html">     Options Indexes FollowSymLinks     AllowOverride None     Require all granted </Directory> 將上方  Indexes   移除 之後執行 service httpd restart