????? nginx? ??? umask? 002?? ? ??? umask ?? ?? ?? PHP? ???? 022? ?????? ???? ??? ? ???? ??? ?? ???? ?????. ?????!
?? ??: ?? nginx ???? ?? umask? 002? ???? ????. ???? nginx ???? ???? ?? ??? mkdir? ??? ??? ??? ??? ??? ?? ? ??? ????. ? PHP ????? ?? umask? ????? 022? ??????. ??? ??? ??? ??? (? ???? nginx? ?? ?? ?? ??? ?? ??? ????)
New: ?? umask? 002? ?????? ??? ?? ???(? ?? ???? ???? /etc/php-fpm.conf?? ??? ??????)? ???? ????. ?? ??????? mkdir? ??? ??? ??? ??? ????
?? ?? ??? ??? ???? ???? /etc/init/ ??? php5-fpm.conf ??? ????. /etc/nginx/php5-conf? ???? umask? ??? ??? ???? ?????. /rtc/init/?? ?? ???? / ??? ??? ???? ? ??? ??? ??? ???? ????? ???? ??? ????(http://stackoverflow.com/questions/21248904/how-to- ?? ??-php5-fpm-umask-??-are-coming-from-on-ubuntu)
????? php-fpm? ??? ???
? ???? ?????. nginx ??. nginx ??? ???? ??? ??? ????. system user
身份向系統(tǒng)發(fā)起調(diào)用的的 php-fpm 。而不是 nginx 。修改nginx配置沒(méi)有作用的。
/etc/php-fpm的安裝發(fā)生不同,那么配置文件的位置也不一樣的。你需要自己找到php-fpm的配置文件。
可以通過(guò)產(chǎn)看 php-fpm 進(jìn)程狀態(tài),來(lái)查看配置文件
ps aux | grep php-fpm
就可以看出 php-fpm 當(dāng)前所使用的配置文件。
你隨便創(chuàng)建一個(gè)配置文件,并不會(huì)被程序讀取生效。
弄清楚這些再試試吧。祝你好運(yùn)。
廢一句話(huà),如今像 七牛
, 又拍
, 亞馬遜S3
php-fpm ???? ??? ?? ?? ??? ? ? ????
ps aux grep php-fpm
Qiniu
, Youpai
, Amazon S3
? ?? ???? ????? ??? ??? ??? ?????? ??? ??? ?? ????? ?? ??? ?? ?? ??? ???? ? ??? ??????? #????# #????#??? ??? ???? ????? ??? ??? ???? #????# #????#???? ?? ?? ?? ??? ?????? #????# #????#?? ?? ??? ??? ????? ?? ??? ???? #????# #????#???? ??? ??? ??? ? ?? ???? #????# ....#????# #????# #????#Dangren ?? ???? ????? ???? ??? ?? ??? ??? ???? ??? ?? ?? ?? ?? ??? ?????. ??? ? ??? ????. #????#