linux

Apache,Nginx 非 root 用户下启动 HTTP 80 端口(端口范围小于1024)

方法一:

所有用户都可以运行(因为是755权限,文件所有者:root,组所有者:root)

chown root:root nginx
chmod 755 nginx
chmod u+s nginx

方法二:

仅 root 用户和 reistlin 用户可以运行(因为是750权限,文件所有者:root,组所有者:reistlin)

chown root:reistlin nginx
chmod 750 nginx
chmod u+s nginx

标签: linux, apache, nginx