; Set permissions for unix socket, if one is used. In Linux, read/write
; permissions must be set in order to allow connections from a web server. Many
; BSD-derived systems allow connections regardless of permissions.
; Default Values: user and group are set as the running user
; mode is set to 0666
listen.owner = nginx ;(or the user that the Nginx is running as)
listen.group = nginx ;(or the group that the Nginx is running as)
listen.mode = 0660
对于 UNIX 套接字,执行权限无关紧要,读写权限才是重要的。所以 0660 将套接字限制为所有者用户/组,或 0666 允许任何人连接到它。