lnmp environment construction

1. One-click installation of lnmp environment: http://lnmp.org/install.html
2. Get the backup file to the corresponding directory
   scp -r mysqlbak.tar.gz [email protected]:/home/wwwroot/dlqbak/
   scp -r wwwrootbak.tar.gz [email protected]:/home/wwwroot/dlqbak/
  
  
from local to remote
scp /home/daisy/full.tar.gz [email protected]:/home/root (then will Prompt you to enter the login password of the root user of the other 172.19.2.75 host, and then start copying), copy the directory and add the parameter -r to copy

from the remote to the local
scp root@/172.19.2.75:/home/root/ full.tar.gz /home/daisy/full.tar.gz


3. Extract the backup file to the current folder: tar -zxvf compressed filename.tar.gz
eg: tar -zxvf wwwrootbak.tar.gz

4. Copy the file to In 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

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327011665&siteId=291194637