centos7 : named bind chroot Hint

# yum -y install bind bind-utils # yum -y install bind-chroot # /usr/libexec/setup-named-chroot.sh /var/named/chroot on # systemctl start named-chroot # systemctl enable named-chroot # vi /etc/named.conf ----------------------------- options {         #listen-on port 53 { 127.0.0.1; };         #listen-on-v6 port 53 { ::1; };         directory       […]

Read More

centos7 : inotify inotifywait convmv Hint

# yum install inotify # yum install convmv test.sh --------------------------- #!/bin/sh # /root/bin/inotifywaitWP.sh /home/*/*/wordpress/wp-content/uploads EVENTS="CREATE,MOVED_TO" if [ -z "$1" ]; then     echo "Usage: $0 cmd ..."     exit -1; fi inotifywait -e "$EVENTS" -mrq --format '%w%f' $1 | (         while read FILE;         do   […]

Read More

Centos7 : apache MPM Hint

# httpd -V | grep MPM Server MPM:     prefork CentOS provide 3 way modules, need to select only one. prefork => default worker event Change prefork to worker # vi /etc/httpd/conf.modules.d/00-mpm.conf #LoadModule mpm_prefork_module modules/mod_mpm_prefork.so LoadModule mpm_worker_module modules/mod_mpm_worker.so #vi /etc/httpd/conf.modules.d/10-php.conf <IfModule prefork.c>   LoadModule php5_module modules/libphp5.so </IfModule> <IfModule worker.c>   LoadModule php5_module modules/libphp5-zts.so </IfModule> […]

Read More