nginx

在 Unix-like 系统上, 非 root 用户只能使用 1024 之上的端口。所以, 默认的 80 端口就无效了。
我在生产环境下使用的密码是64位随机密码,密码又臭又长,每次维护都需要sudo输入那串悲剧的密码。
要解决这个问题,我用如下方式搞定
1.
所有用户都可以运行
chown root:root nginx 
chmod 755 nginx 
chmod u+s nginx

2. 
仅 root 用户和 reistlin 用户可以运行
chown root:reistlin nginx 
chmod 750 nginx 
chmod u+s nginx 

你可能感兴趣的:(nginx)