某个文件夹用户所有者改为apache

chown -R apache upload

[root@localhost range]# chcon -t httpd_sys_rw_content_t /var/www/html/range/upload -R

[root@localhost range]# chcon -t httpd_sys_rw_content_t /var/www/html/range/docx -R

[root@localhost range]# service httpd restart

 

posted @ 2022-08-25 11:42  秦0710  阅读(13)  评论(0编辑  收藏  举报