0
我遇到了nginx權限問題,我已經做了一些研究,但沒有一個我嘗試過的解決方案一直在工作。Nginx權限不能拒絕
這是我試過的錯誤,包括錯誤。
我在過去很多次安裝了nginx,所以我不確定爲什麼會產生這麼多問題。它可能是操作系統嗎?
[[email protected] ~]# service nginx start
Starting nginx: nginx: [emerg] chown("/home/yessir/cache", 498) failed (13: Permission denied)
[FAILED]
[[email protected] ~]# chmod +x /home/
[[email protected] ~]# service nginx start
Starting nginx: nginx: [emerg] chown("/home/yessir/cache", 498) failed (13: Permission denied)
[FAILED]
[[email protected] ~]# chown -R root:www-data /home/yessir/cache
chown: invalid group: `root:www-data'
[[email protected] ~]# service nginx start
Starting nginx: nginx: [emerg] chown("/home/yessir/cache", 498) failed (13: Permission denied)
[FAILED]
[[email protected] ~]# chown -R root:www-data /home/yessir/
chown: invalid group: `root:www-data'
[[email protected] ~]# chown -R root:nginx /home/yessir/
[[email protected] ~]# service nginx start
Starting nginx: nginx: [emerg] chown("/home/yessir/cache", 498) failed (13: Permission denied)
[FAILED]
[[email protected] ~]# chown -R root:nginx /home/yessir/cache
[[email protected] ~]# service nginx start
Starting nginx: nginx: [emerg] chown("/home/yessir/cache", 498) failed (13: Permission denied)
[FAILED]
[[email protected] ~]# chmod g+w -R /home/yessir/
[[email protected] ~]# service nginx start
Starting nginx: nginx: [emerg] chown("/home/yessir/cache", 498) failed (13: Permission denied)
[FAILED]
[[email protected] ~]# chmod g+w -R /home/yessir/cache
[[email protected] ~]# service nginx start
Starting nginx: nginx: [emerg] chown("/home/yessir/cache", 498) failed (13: Permission denied)
[FAILED]
[[email protected] ~]# chmod g+w -R^C
[[email protected] ~]# sudo -u nginx stat /home/yessir/
File: `/home/yessir/'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 802h/2050d Inode: 45088770 Links: 4
Access: (0777/drwxrwxrwx) Uid: ( 0/ root) Gid: ( 498/ nginx)
Access: 2016-02-09 10:27:05.438388374 -0800
Modify: 2016-02-09 10:08:15.818386811 -0800
Change: 2016-02-09 10:27:05.438388374 -0800
[[email protected] ~]# service nginx start
Starting nginx: nginx: [emerg] chown("/home/yessir/cache", 498) failed (13: Permission denied)
[FAILED]
[[email protected] ~]# sudo -u nginx stat /home/yessir/cahce
stat: cannot stat `/home/yessir/cahce': No such file or directory
[[email protected] ~]# sudo -u nginx stat /home/yessir/cache
File: `/home/yessir/cache'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 802h/2050d Inode: 45088772 Links: 2
Access: (0777/drwxrwxrwx) Uid: ( 0/ root) Gid: ( 498/ nginx)
Access: 2016-02-09 10:27:08.557388846 -0800
Modify: 2016-02-09 10:08:15.818386811 -0800
Change: 2016-02-09 10:27:08.557388846 -0800
[[email protected] ~]# service nginx start
Starting nginx: nginx: [emerg] chown("/home/yessir/cache", 498) failed (13: Permission denied)