Home >Topics >Pagoda Panel >How to modify the website root directory after mounting a new hard drive on Pagoda
The following tutorial column of Pagoda Panel will introduce to you how to modify the root directory of the website after the Pagoda mounts a new hard disk. I hope it will be helpful to friends in need!
How to modify the root directory of the website after mounting a new hard drive
service mysqld stop service nginx stop cd /www/ #进入网站上层目录 mv wwwroot /data #把wwwroot移动到/Data目录,即数据盘 ln -s /data/wwwroot #原目录不变,并链接到数据盘,原有任何设置均不改变 mv wwwlogs /data ln -s /data/wwwlogs mv server /data ln -s /data/server service mysqld start service nginx start
The tutorial is over, record it when you are struggling
The above is the detailed content of How to modify the website root directory after mounting a new hard drive on Pagoda. For more information, please follow other related articles on the PHP Chinese website!