stop nginx
stop php-fpm
usermod -u 1500 nginx
groupmod -g 1500 nginx
find / -user 998 -exec chown -h 1500 {} \;
find / -group 996 -exec chgrp -h 1500 {} \;
usermod -g 1500 nginx
start nginx
start php-fpm
假如 nginx UID/GID 未取代完成會造成錯誤
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
systemctl start rpcbind
systemctl start nfs-server
3. create folder and change mod
mkdir /myshare
chmod 777 /myshare
4. edit /etc/exports and reload exportfs
vi /etc/exports
/myshare 192.168.124.0/24(rw,sync,no_root_squash)
exportfs -r
5. close SELiux
vi /etc/sysconfig/selinux
SELINUX=disabled
6. add firewall rule and reload
firewall-cmd --permanent --zone public --add-service mountd
firewall-cmd --permanent --zone public --add-service rpc-bind
firewall-cmd --permanent --zone public --add-service nfs
firewall-cmd --reload
Windows 10
1. 開啟 Windwos 功能
2. 安裝 Service of NFS 全部
3. 開啟 cmd
4. 掛載 NFS
mount -o anon \\remote_ip_address\myshare z:
訂閱:
文章 (Atom)