Home> Topics> Pagoda Panel> body text

How to modify the website root directory after mounting a new hard drive on Pagoda

藏色散人
Release: 2020-08-19 13:31:10
forward
4813 people have browsed it

The following tutorial column ofPagoda Panelwill 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 website root directory after mounting a new hard drive on Pagoda

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
Copy after login

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!

Related labels:
source:bt.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!