1. Install the lnmp environment with one click: http://lnmp.org/install.html
2. Get the backup file to the corresponding directory
scp -r mysqlbak.tar.gz root@192.227.245.172:/home/wwwroot /dlqbak/
scp -r wwwrootbak.tar.gz root@192.227.245.172:/home/wwwroot/dlqbak/
Copy from local to remote
scp /home/daisy/full.tar.gz root@172.19.2.75 :/home/root (You will then be prompted to enter the login password of the root user of the other 172.19.2.75 host, and then the copy will start). Copy the directory and add the parameter -r to
Copy from remote to local
scp root @/172.19.2.75:/home/root/full.tar.gz /home/daisy/full.tar.gz
3. Unzip the backup file to the current folder: tar -zxvf compressed file name.tar.gz
eg:tar -zxvf wwwrootbak.tar.gz
4. Copy the file to the home/wwwroot/ directory
eg: cp -R /home/wwwroot/dlqbak/home/wwwroot/chaingo.com /home/wwwroot/
5. Add the XXXX.com.conf configuration file
Path: cd ./usr/local/nginx/conf/vhost/chaingo.com.conf
6. Finally, remember to restart the nginx service
cd /usr/local/ nginx/sbin
./nginx -s reload