James's BLOG

CentOS 7 Systemd PHP

›
CentOS 7 Systemd 預設會打開  PrivateTmp 需要將它關掉才能與其他服務共用 /tmp Close Systemd PHP Private Tmp /usr/lib/systemd/system/php-fpm.service PrivateTm...

Getting MySQL path in command prompt

›
select @@basedir select @@datadir ref: https://stackoverflow.com/questions/14805567/getting-mysql-path-in-command-prompt

VirtualBox CentOS 加大硬碟空間

›
1. 關閉虛擬機器 poweroff 2. 以指令增加資料卷容量 VBoxManage  modifyhd  "D:\VDI\CentOS7.vdi"  --resize  40960 (40G) 3. 虛擬機器設定 EFI 開機並掛載 GPart...

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...
‹
›
首頁
查看網路版
技術提供:Blogger.