Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
6261 มุมมอง

Hello everyone

I've been working with Odoo for several years now but I still don't understand what is the use of Apache or nginx with Odoo?

I mean, Odoo runs perfectly without them on a local machine so why do we need to use them on a staging or production environment?

Maybe I don't really understand what is the use of a web server.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi, 
In your local instance  currently the Odoo may be running as a single process, and single thread will be handling all the incoming requests.


To handle multiple request and multiple users at a time, we have to enable workers in Odoo

And to configure workers we use revers proxy like nginx and apache


Refer this video for details: https://youtu.be/-hVYQd7A7PQ

and https://youtu.be/dQtIKmNdVgA


Check this post also: https://www.odoo.com/forum/help-1/odoo-worker-number-calculation-for-multiprocessing-172597


Hope this will help you 


Thank you 

อวตาร
ละทิ้ง
ผู้เขียน

So, as soon as I set worker=0, there is no need to use a Apache or Nginx?

This is exactly the kind of answer I was waiting for
Thank you

คำตอบที่ดีที่สุด

Hi, you can follow this: https://youtu.be/-3wV7A_4s-w

Hope it helps

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.ย. 24
1536
1
พ.ค. 24
2815
2
พ.ค. 24
13984
1
มิ.ย. 20
5875
0
ต.ค. 17
3204