cd ;
ls ;
rm -rf /user/install
zip -r beifen.zip /data/wwwroot/shuhantang
unzip /user/install.zip
chmod -R 777 /user/install
rm -rf /user/install.zip
压缩:tar -jcv -f filename.tar.bz2 要被处理的文件或目录名称
查询:tar -jtv -f filename.tar.bz2
解压:tar -jxv -f filename.tar.bz2 -C 欲解压缩的目录
nginx命令:
systemctl start nginx;
systemctl enable nginx;
systemctl restart nginx;
systemctl status nginx;
systemctl reload nginx;
systemctl -h nginx(查看命令帮助);
nginx -t(查看 Nginx 配置语法);
ps -ef | grep nginx; 查看nginx安装地址