James's BLOG
MySQL Get Tree Parents, Childrens
›
// get childrens SELECT GROUP_CONCAT(lv SEPARATOR ',') as childrens FROM ( SELECT @pv:=( SELECT GROUP_CONCAT( uid SEPARATOR ...
Change Nginx UID and GID
›
stop nginx stop php-fpm usermod -u 1500 nginx groupmod -g 1500 nginx find / -user 998 -exec chown -h 1500 {} \; find / -group 996 -ex...
CentOS 7 Install NFS Server and Windows 10 NFS Client to Connect
›
CentOS 1. yum install yum install nfs-utils 2. systemctl start and enable systemctl enable rpcbind systemctl enable nfs-server...
move file by date
›
find PATH_A -type f ! -newermt 2017-01-01 -exec mv {} PATH_B \;
SELinux 影響 MySQL 連結
›
MySQL local 連 remote 時, 要關閉 SELinux 或設定才能連線
PHP upgrade always breaks session folder permissions
›
PHP 升級後都會自動改成 session owner 回原本設定, 網路建議是為 owner 另建子資料夾對應, 下次就不會被更動. user = nginx ; Set session path to a directory owned by process use...
‹
›
首頁
查看網路版