- 工信部備案號 滇ICP備05000110號-1
- 滇公安備案 滇53010302000111
- 增值電信業務經營許可證 B1.B2-20181647、滇B1.B2-20190004
- 云南互聯網協會理事單位
- 安全聯盟認證網站身份V標記
- 域名注冊服務機構許可:滇D3-20230001
- 代理域名注冊服務機構:新網數碼
普通用戶在restart和reload nginx時,會報錯:
1 2 | the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /opt/nginx/conf/nginx .conf:1 |
我又不能給開發人員root權限,沒辦法,只好這么做。
原因是:默認情況下Linux的1024以下端口是只有root用戶才有權限占用
方法一:
所有用戶都可以運行(因為是755權限,文件所有者:root,組所有者:root)
1 2 3 4 | chown root:root nginx chmod 755 nginx chmod u+s nginx |
方法二:
僅 root 用戶和 reistlin 用戶可以運行(因為是750權限,文件所有者:root,組所有者:www)
1 2 3 4 5 | chown root:www nginx chmod 750 nginx chmod u+s nginx |
售前咨詢
售后咨詢
備案咨詢
二維碼
TOP