Jump to content

14.上传IPS论坛程序、解压、站点目录权限设置


Recommended Posts

---------------------------------------------------
上传IPS论坛程序、解压、站点目录权限设置
---------------------------------------------------

将Nginx停止
/etc/init.d/nginx stop


将IPS论坛程序压缩为zip
SFTP上传到论坛目录
/home/wwwroot/论坛.com/


SSH进入论坛目录
cd /home/wwwroot/论坛.com/


如果你没有安装zip压缩及解压,就安装
yum -y install zip unzip


解压IPS论坛程序.zip
unzip 论坛.zip

 

命令
ls

查看已解压的所有IPS论坛目录与文件

SFTP进入查看,并删除 论坛.zip

 

 

-----------------------------------------------------
更改站点目录的拥有人/用户组 www www
-----------------------------------------------------

SFTP会看到 拥有人/用户组 是root root


命令
chown www:www -R /home/wwwroot/论坛.com/*

 

可看到已改为 www www
cd /home/wwwroot/论坛.com/
ls -l


SFTP进入查看
拥有人/用户组 已经改为 www www


将Nginx启动
/etc/init.d/nginx start

 

Edited by Jack
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...