Last active
June 3, 2017 10:03
-
-
Save shangdev/9e08b8e54818378a70c3352916a3464f to your computer and use it in GitHub Desktop.
xshell deploy command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 上传文件并删除原文件(主题) | |
sudo rm -rf greenherb && sudo wget http://ftpsin.ymtech.info:8888/logtmp/ftp/xiongwei.shang/site.zip && sudo unzip site.zip | |
## 修改用户组权限并mv文件 | |
sudo chown www:www -R /home/wwwroot/trueniu-php/trueniu/wp-content/themes && sudo rm -rf /home/wwwroot/trueniu-php/trueniu/wp-content/plugins/wordpress-seo && sudo mv wordpress-seo /home/wwwroot/trueniu-php/trueniu/wp-content/plugins/ | |
## 修改nginx配置文件 | |
sudo vi /usr/local/nginx/conf/vhost/trueniu/trueniu.conf | |
## 证书上传 | |
sudo mkdir /usr/local/nginx/sslkey/greenherb && cd /usr/local/nginx/sslkey/greenherb | |
sudo wget http://ftpsin.ymtech.info:8888/logtmp/ftp/xiongwei.shang/214115086810248.zip && sudo unzip 214115086810248.zip && sudo rm -rf 214115086810248.zip | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment