How to get WP in Xshell/Centos?

2019-05-2519:21:05 评论

Step 1: get the latest zip file from the WP website.

wget https://wordpress.org/latest.zip

Step 2: unzip the zip file to the target directory.

unzip latest.zip -d /home/wwwroot/example.com

Step 3: move the WP setup files to the root of the target directory.

cd /home/wwwroot/example.com
mv wordpress/* .
rm -rf wordpress
cd..
rm -rf latest.zip

Note: please replace the "home/wwwroot/example.com" with your own directory.

Note: in"mv wordpress/*  ." ,there is a blank betwween the "*" and the "."

avatar

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: