nginx: [warn] 10280#0: the “user” directive makes sense only if the master process runs with super-user privileges

Byphunsanit

nginx: [warn] 10280#0: the “user” directive makes sense only if the master process runs with super-user privileges

การแก้ warning ของเอ็นจิ้นเอ็กซ์ ไม่ให้มันมีคำเตือน
[warn] 10280#0: the “user” directive makes sense only if the master process runs with super-user privileges, ignored in /opt/homebrew/etc/nginx/nginx.conf:1
สามารถทำได้ง่าย ๆ โดย

  1. เปิดไฟล์ที่เห็นใน warning เช่น
    /opt/homebrew/etc/nginx/nginx.conf
  2. ไปที่บรรทัด ที่เห็นใน warning เช่น
    :1
  3. ใส่ # หน้าบรรทัดนั้น เช่น
    user _www _www;
    เป็น
    #user _www _www;
  4. restart ใหม่ เช่น
    brew services restart nginx

หลังจากนี้ ทุกครั้งที่ start nginx แล้ว เอ็นจิ้นเอ็กซ์ล๊อคมันก็ไม่ควรจะมีคำเตือนเพิ่มขึ้นมา

About the author

phunsanit administrator